How do I install acerhdf?

Discussion in 'Linux' started by bailout, Apr 5, 2009.

  1. bailout

    bailout

    Joined:
    Jan 29, 2009
    Messages:
    51
    Likes Received:
    0
    I have downloaded the acerhdf fan control package. It is source code not a package. The readme gives instructions;

    Code:
    1.1: DISTRIBUTION
       Ensure you've installed everything to build a kernelmodule. For debian you
       need at least to do: 'apt-get install build-essentials linux-kernel-headers'
    
    1.2: ACERHDF
       Obtain the source of the latest version from [url]http://piie.net/?section=acerhdf[/url]
       Untar the sources:  'tar xfvz acerhdf_kmod-<version>.tar.gz'
       Compile: 'cd acerhdf_kmod && make'
       Install: 'sudo make install'
    What are the fedora equivalens to ' build-essentials linux-kernel-headers'?

    thanks
     
    bailout, Apr 5, 2009
    #1
  2. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    Code:
    su -c 'yum -y install kernel-devel gcc-c++ gcc binutils make' 
    
    should be enough for building just a module :)

    phil
     
    HappyHarry, Apr 7, 2009
    #2
  3. bailout

    bailout

    Joined:
    Jan 29, 2009
    Messages:
    51
    Likes Received:
    0
    Thanks phil, that worked :)
     
    bailout, Apr 8, 2009
    #3
  4. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    np bailout, glad to be of some help :)

    phil
     
    HappyHarry, Apr 9, 2009
    #4
  5. bailout

    herzzreh

    Joined:
    Jan 30, 2009
    Messages:
    11
    Likes Received:
    0
    Hey... I did the same but I get an error that headers aren't found. Any ideas?

    Thanks!

    Code:
    bash-3.2$ make
    make -C /lib/modules/2.6.27.5-117.fc10.i686/build  SUBDIRS=/home/mglipin/moo/acerhdf_kmod modules
    make: *** /lib/modules/2.6.27.5-117.fc10.i686/build: No such file or directory.  Stop.
    make: *** [default] Error 2
    
     
    herzzreh, Apr 12, 2009
    #5
  6. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    can you run this
    Code:
    rpm -qa|grep kernel
    
    and post what the output is here, also which os are you using? us it fully up to date?

    phil
     
    HappyHarry, Apr 12, 2009
    #6
  7. bailout

    herzzreh

    Joined:
    Jan 30, 2009
    Messages:
    11
    Likes Received:
    0
    Actually, I fixed it last night. Thanks for the assistance.
     
    herzzreh, Apr 12, 2009
    #7
  8. bailout

    Regsy

    Joined:
    Jan 9, 2009
    Messages:
    8
    Likes Received:
    0
    Location:
    Oxford, UK
    Hi Herzzreh,

    I've been having the same issues trying to install acerhdf, what was the fix?

    Thanks
     
    Regsy, Apr 13, 2009
    #8
  9. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    regsy post the output of typing this in the command line

    Code:
    rpm -qa|grep kernel
    
    phil
     
    HappyHarry, Apr 13, 2009
    #9
  10. bailout

    Regsy

    Joined:
    Jan 9, 2009
    Messages:
    8
    Likes Received:
    0
    Location:
    Oxford, UK
    Hi,

    I get the following:

    kernel-headers-2.6.26.8-57.fc8
    kernel-devel-2.6.26.8-57.fc8

    Hope this helps,
    Regs
     
    Regsy, Apr 14, 2009
    #10
  11. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    ok and what error message are you getting when you issue the make command?

    phil
     
    HappyHarry, Apr 14, 2009
    #11
  12. bailout

    Regsy

    Joined:
    Jan 9, 2009
    Messages:
    8
    Likes Received:
    0
    Location:
    Oxford, UK
    Hi,

    The error message is:

    make -C /lib/modules/2.6.23.9lw/build SUBDIRS=/home/user/acerhdf_kmod modules
    make: *** /lib/modules/2.6.23.9lw/build: No such file or directory. Stop.
    make: *** [default] Error 2

    Thanks,
    Regs
     
    Regsy, Apr 14, 2009
    #12
  13. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    that's strange, the make error states it's looking for the linpus kernel source/headers (/lib/modules/2.6.23.9lw/build is a symlink to /usr/src/kernels/2.6.23.9lw) yet your rpm list only gives

    kernel-headers-2.6.26.8-57.fc8
    kernel-devel-2.6.26.8-57.fc8

    but no kernel-2.6*
    where if you posted the full output it should have

    kernel-headers-2.6.26.8-57.fc8
    kernel-devel-2.6.26.8-57.fc8
    kernel-2.6.23.9lw

    and there the problem is and you should have noticed yourself ;), so you either need to install the correct kernel-headers and kernel-devel for your linpus 2.6.23.9lw kernel (might be able to get them from the acer source ftp) or install the correct kernel to match the kernel-headers and kernel-devel you have (kernel-2.6.26.8-57.fc8) and boot to it before running the make :)

    personally i would upgrade to fedora10 and leave linpus behind as it is a dead distro with no more updates as fedora 8 has reached eol :(, and when you have F10 installed, then start configuring it to suit your usage :)

    phil
     
    HappyHarry, Apr 14, 2009
    #13
  14. bailout

    Regsy

    Joined:
    Jan 9, 2009
    Messages:
    8
    Likes Received:
    0
    Location:
    Oxford, UK
    Thanks very much for your help & insight, I'm pretty new to Linux and have found this forum the best thing since sliced bread but I'm still flummoxed by even the simplest thing! ;)

    Now I'll have to consider my options, thanks again.

    Regsy
     
    Regsy, Apr 15, 2009
    #14
  15. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    if you want to stick with linpus while your learning this command should get you to the point where you can install acerhdf

    Code:
    su -c 'yum -y update kernel kernel-devel kernel-headers'
    
    this should install the above packages that are of the same version and are the latest for F8, after you have run the above command and it has completed reboot your one and when back to the desktop enter this

    Code:
    uname -r
    
    hopefully the output will mirror the kernel version just downloaded and installed, (if not post back and let me know) then you can carry on and install acerhdf :)

    i know linux can be daunting at first but stick with it as it is very rewarding, you might also want to bookmark these sites as they contain lots of good info

    http://www.howtoforge.com/
    http://www.linuxquestions.org/
    http://www.linuxnewbieguide.org/

    phil
     
    HappyHarry, Apr 15, 2009
    #15
  16. bailout

    Regsy

    Joined:
    Jan 9, 2009
    Messages:
    8
    Likes Received:
    0
    Location:
    Oxford, UK
    Hi,

    Sorry to say it's a no go!

    After the first command I get the following feedback:

    [user@localhost ~]$ su -c 'yum -y update kernel kernel-devel kernel-headers'
    Password:
    Setting up Update Process
    No Match for argument: kernel
    Package(s) kernel available, but not installed.
    No Packages marked for Update
    [user@localhost ~]$

    Obviously the system (kernel) has not been updated although available! :?

    Should I download and install the kernel (linux-2.6.23.9lw.zip) from fresh, if yes is it straight forward?

    Sorry to be a pain, your help is much appreciated.
     
    Regsy, Apr 15, 2009
    #16
  17. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    no you want the newer kernel to match the kernel-devel and kernel-headers you have, (unless you can find the kernel-devel and kernel-headers for linpus's kernel? as i think building them from source is a little advanced for you just yet, maybe soon though ;) ) what to do is download the kernel here >> http://archives.fedoraproject.org/pub/a ... 8.i686.rpm

    then open a terminal in the folder where you downloaded it to and install it using rpm like so
    Code:
    su -c 'rpm -ivh kernel-2.6.26.8-57.fc8.i686.rpm'
    
    then carry on in my previous instructions from there :)

    phil
     
    HappyHarry, Apr 15, 2009
    #17
  18. bailout

    Regsy

    Joined:
    Jan 9, 2009
    Messages:
    8
    Likes Received:
    0
    Location:
    Oxford, UK
    OK this where I'm at now:

    [user@localhost ~]$ rpm -qa|grep kernel
    kernel-2.6.26.8-57.fc8
    kernel-headers-2.6.26.8-57.fc8
    kernel-devel-2.6.26.8-57.fc8
    [user@localhost ~]$ su -c 'yum -y update kernel kernel-devel kernel-headers'
    Password:
    Setting up Update Process
    No Packages marked for Update
    [user@localhost ~]$ uname -r
    2.6.23.9lw
    [user@localhost ~]$ cd acerhdf_kmod
    [user@localhost acerhdf_kmod]$ make
    make -C /lib/modules/2.6.23.9lw/build SUBDIRS=/home/user/acerhdf_kmod modules
    make: *** /lib/modules/2.6.23.9lw/build: No such file or directory. Stop.
    make: *** [default] Error 2
    [user@localhost acerhdf_kmod]$

    Am I right in thinking I still have conflicting kernel & headers?
     
    Regsy, Apr 16, 2009
    #18
  19. bailout

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    no everything is fine so far, it just means that you are booting with the original linpus kernel and not the one you just downloaded, what i need you to do now is copy the contents of the grub.conf file

    /boot/grub/grub.conf

    and paste them here for me and i will tell you what modifications you need to make to it so that you boot to the newer kernel :)

    phil
     
    HappyHarry, Apr 16, 2009
    #19
  20. bailout

    Regsy

    Joined:
    Jan 9, 2009
    Messages:
    8
    Likes Received:
    0
    Location:
    Oxford, UK
    Hi,

    Contents of the grub.conf are:

    default=1
    timeout=0
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    hiddenmenu

    title Fedora (2.6.26.8-57.fc8)
    rootnoverify (hd0,0)
    kernel /boot/vmlinuz-2.6.26.8-57.fc8 ro root=/dev/sda1 vga=0x311 splash=silent loglevel=1 console=tty1 quiet nolapic_timer
    initrd /boot/initrd-2.6.26.8-57.fc8.img

    title Linpus Linux RCD

    :!:
    Thanks
     
    Regsy, Apr 17, 2009
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.