Announcement

Collapse
No announcement yet.

acerhk compilation problem kubuntu 10.4 [SOLVED]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    acerhk compilation problem kubuntu 10.4 [SOLVED]

    Hello There,

    I am struggling to configure my ACER Aspire 5630. The most important stuff is done. But I would like to make work my multimedia hot keys. In order to do it I need to install the kernel module acerhk. But when compiling It fails with message:

    "No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'."

    So far I have done this:

    Code:
    olmo@olmo-laptop:~$ sudo apt-get install acerhk-source
    Code:
    olmo@olmo-laptop:~$ sudo apt-get install build-essential linux-headers-$(uname -r)
    Code:
    olmo@olmo-laptop:~$ sudo apt-get install acerhk-source
    Code:
    olmo@olmo-laptop:~$ cd /usr/src
    olmo@olmo-laptop:/usr/src$ sudo tar -xvjf acerhk.tar.bz2
    olmo@olmo-laptop:/usr/src$ cd modules/acerhk
    olmo@olmo-laptop:/usr/src/modules/acerhk$ sudo make
    make -C /lib/modules/`uname -r`/build SUBDIRS= modules
    make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.32-22-generic'
     CHK   include/linux/version.h
     CHK   include/linux/utsrelease.h
     SYMLINK include/asm -> include/asm-x86
    make[2]: *** No hay ninguna regla para construir el objetivo `kernel/bounds.c', necesario para `kernel/bounds.s'. Alto.
    make[1]: *** [prepare0] Error 2
    make[1]: se sale del directorio `/usr/src/linux-headers-2.6.32-22-generic'
    make: *** [acerhk.ko] Error 2
    Which in English it does mean: "No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'."

    I have spend several hours in the Internet, I found someone with the same problem here

    https://bugs.launchpad.net/ubuntu/+s...hk/+bug/456123

    I followed the instructions given there, but I am still having the same problem. Even when following step by step the directions in the next below:

    http://www.edbl.no/karmic/amilo_1718...buntu_9.10.txt

    Code:
    olmo@olmo-laptop:/usr/src/modules/acerhk$ sudo apt-get install build-essential linux-headers-$(uname -r)
    ... (cut output)...
    olmo@olmo-laptop:~$ tar -xvjf acerhk-fixed.tar.bz2 
    ... (cut output)...
    olmo@olmo-laptop:~$ cd acerhk-0.5.35
    olmo@olmo-laptop:~/acerhk-0.5.35$ sudo make
    make -C /lib/modules/`uname -r`/build SUBDIRS= modules
    make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.32-22-generic'
     CHK   include/linux/version.h
     CHK   include/linux/utsrelease.h
     SYMLINK include/asm -> include/asm-x86
    make[2]: *** No hay ninguna regla para construir el objetivo `kernel/bounds.c', necesario para `kernel/bounds.s'. Alto.
    make[1]: *** [prepare0] Error 2
    make[1]: se sale del directorio `/usr/src/linux-headers-2.6.32-22-generic'
    make: *** [acerhk.ko] Error 2
    olmo@olmo-laptop:~/acerhk-0.5.35$
    As you can see, there is the same error, I am desperate. Does someone has any idea, any direction??

    I will much appreciate any help.

    Thanks.

    #2
    Re: acerhk compilation problem kubuntu 10.4

    Seems that eventually I found a solution.

    First I reinstalled my headers:

    Code:
    sudo apt-get --reinstall install linux-headers-`uname -r`
    Second I went to /usr/src/linux-headers-2.6.32-22-generic/Makefile and commented the line:

    #KBUILD_CFLAGS += -pg

    Third I come back to ~/acerhk-0.5.35, and:

    Code:
    make clean
    make
    sudo make install
    In the end, and after so many hours in front of the screen:

    Code:
    olmo@olmo-laptop:~/acerhk-0.5.35$ sudo modprobe acerhk force_series=290 usedritek=1
    olmo@olmo-laptop:~/acerhk-0.5.35$ lsmod |grep acer
    acerhk         27780 0 
    acer_wmi        13861 0 
    led_class        2864 4 acer_wmi,iwl3945,iwlcore,sdhci
    Now, I have to get the hot keys working... lets see.

    Comment


      #3
      Re: acerhk compilation problem kubuntu 10.4 [SOLVED]

      Confirmed, I have rebooted my laptop and the sound hot keys were working fine (turn up/down volume) automatically. I also was able to configure play/pause, and the other music controls for Amarok, etc.

      I hope someone can find useful for himself/herself my experience.

      Comment

      Working...
      X