Results 1 to 9 of 9

Thread: acerhk wont install?

  1. #1
    Just burned his ISO
    Join Date
    Jan 2008
    Posts
    2

    Default acerhk wont install?

    Hello (my first post )

    First off, im new at basically whole linux, i got interested in this because of my education, just started a new study (here) Network Forensic Research.

    I've been using backtrack3Beta for a couple of days now, im really pleased with it.

    Im running it in "Real" mode, after sorting out some problems with slapt-get etc. its running real stable, even on my old centrino 1ghz tabletpc.

    so my problem i've used (X)ubuntu on my notebook, and in order to get my wireless/bluetooth working i needed acerhk to be able to turn radio on/off.

    now i found acerhk (not sure if its really for slackware, or if thats a problem?)
    i think i got it from a link on this forum or just by google....
    the file is called "linux_acerhk-0.5.35.tgz" now i should be able to just:
    "installpkg linux_acerhk-0.5.35.tgz" right?
    well it doenst, it says:
    "installing packege linux_acerhk-0.5.35...
    PACKAGE DESCRIPTION:"

    and then i just get back to the command line...

    so i tried extracting it, and then run MAKE in the folder.
    it gives me
    {some tekst}
    make[1]entering directory '/usr/src/linux-2.6.21.5'
    make[1]*** no rule to make target "installation". Stop
    make[1]Leavging directory '/usr/src/linux-2.6.21.5'
    make: *** [acerhk.ko] error 2

    i think its got something to do with MAKE not understanding my version of linux?

    Hope someone can help me... (and that i made this thread according to the rules)

  2. #2

  3. #3
    Just burned his ISO
    Join Date
    Jan 2008
    Posts
    2

    Default

    thnx

    appart from not knowing how to install them(i'll search for that myself)
    i couldn't really find a simple explanation what kernel headers do, i saw something about that you need for "building packages" or something

    why do i need specifick these? why arent they standard installed, is it because they are specialy for acerhk?

    maybe even more important for me, how could you tell i needed these?

    sorry for such a noob question, but im hoping that i wont have to ask for kernel headers in the future if i understand when/why i need them.

    perhaps you know a site where i can read in normal human text what they are
    i tried wiki... did really find anything usefull..

    ok, well my previous post isnt approved yet, so i cant edit it yet
    but when i try to lzm2dir the file i get all sorts of errors,
    because file exists, because operation not permitted.

    i tried: lzm2dir kernel.lzm temp/

    used search + google, google only came up with a thread from this site, in wich i cant find an answer....

    ---- edit --------------------------------------------------------------------------------------------------------------------
    it does extract a lot of data.... but not sure it its all...
    2make files. couple of dirs, some files that start with sql

    it created the files in my temp dir in directory temp/usr/src/
    temp is where i said lzm2dir to extract the lzm file

    ---- edit 2 -------------------------------------------------------------------------------------------------------------------
    ok, apparently i shouldnt do lzm2dir kernel.lzm temp/ but i should use destination / right?
    when i did that i didnt get any errors!
    * when i did it to the temp/ destination i noticed a /usr/src/*/*/*/ directory structure, after googling and searching
    the forum for more info i saw that people used the command lzm2dir for kernels with / destination.
    i guess i've got all the kernel files now to get acerhk going.

    im still having questions to why i need these kernel headers? how will i know which kernel headers i need when i run into
    a similar problem?

    anyways, testing time
    ------------------------------
    still doenst work...
    according to the install.txt there a 3 ways to MAKE the acerhk package.

    bt acerhk-0.5.35 # make
    make -C /lib/modules/`uname -r`/build SUBDIRS=/mnt/hda1/slackware installation files/acerhk/test/acerhk-0.5.35 modules
    make[1]: Entering directory `/usr/src/linux-2.6.21.5'
    make[1]: *** No rule to make target `installation'. Stop.
    make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
    make: *** [acerhk.ko] Error 2

    bt acerhk-0.5.35 # make acerhk.o
    cc -I/lib/modules/`uname -r`/build/include -c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DMODVERSIONS -DMODULE -D__KERNEL__ -o acerhk.ko acerhk.c
    acerhk.c:39:26: error: linux/config.h: No such file or directory
    acerhk.c:3100:2: error: #error This driver is only available for X86 architecture
    make: *** [acerhk.o] Error 1

    bt acerhk-0.5.35 # make acerhk.ko
    make -C /lib/modules/`uname -r`/build SUBDIRS=/mnt/hda1/slackware installation files/acerhk/test/acerhk-0.5.35 modules
    make[1]: Entering directory `/usr/src/linux-2.6.21.5'
    make[1]: *** No rule to make target `installation'. Stop.
    make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
    make: *** [acerhk.ko] Error 2
    bt acerhk-0.5.35 #

    i have no idea what to do next......
    --------------
    ok reinstalling for more tests... hope to edit this again with the solution..

    ok fixt,
    didnt need the kernel headers,
    i had the acerhk module on a other partion in a dir with spaces in the name,
    the make process didnt understand this,
    i placed the extract tgz directory to /usr/src/, run make again, worked perfect,

    on to the next problem

  4. #4
    Just burned his ISO
    Join Date
    Feb 2008
    Posts
    1

    Default

    I'm using the latest Beta3 LiveCD and I own an Acer Aspire 3022 with a BCM4318 inside. The first time I bootet bt, I could use airodump etc, but now I can't do anymore. I don't know why it worked the first time because I should have activated the WLAN but I didn't

    To activate I need acerhk, too. But it doesn't compile! I extracted it to /usr/src/acerhk-0.5.35 and tried to run make but nothing happens!

    Could you add the acerhk module to the next release of bt? I think many user could use it!

    I had to download the kernel from the link in the wiki, extract it and modify the makefile to set the source dir.

    A feature request: please add the acerhk module in the next release. I've stored the files on my thumb drive but having it already on the CD would be great!

  5. #5
    Just burned his ISO
    Join Date
    Oct 2008
    Posts
    2

    Default

    I think its time someone with the time and knowledge make a little howto installer acerhk and to include it in your usbversion. Cause I have no idea how to do it and I have searched around. Anyone up for it ?

  6. #6
    Senior Member
    Join Date
    Apr 2008
    Posts
    2,008

    Default

    Quote Originally Posted by tigertailz View Post
    I think its time someone with the time and knowledge make a little howto installer acerhk and to include it in your usbversion. Cause I have no idea how to do it and I have searched around. Anyone up for it ?
    As far as I can see the steps for installing acerhk are covered in this very thread.

    I have installed acerhk myself back in the day, and can not recall the installation differing from any other simple linux installation in any way. Which steps have you taken so far to install it and at what exactly are you having problems with?
    -Monkeys are like nature's humans.

  7. #7
    Just burned his ISO
    Join Date
    Oct 2008
    Posts
    2

    Default

    basically it doesnt compile
    make[1]entering directory '/usr/src/linux-2.6.21.5'
    make[1]*** no rule to make target "installation". Stop
    make[1]Leavging directory '/usr/src/linux-2.6.21.5'
    make: *** [acerhk.ko] error 2

    I know basics of linux I use Arch but I dont know how slacks work with the lzm packages, but basically what I want to do is compile the driver. Add it to my backtrack live usb stick and thats it..

  8. #8
    Developer
    Join Date
    Mar 2007
    Posts
    6,126

    Default

    I'm pretty sure you just dont have the kernel headers installed. I dont have a acer so I cant tell if it worked or not however I tried it any way and seems to have worked. You can take a look...
    b4cktr4ck3 ~ # wget http://www.cakey.de/acerhk/archives/acerhk-0.5.35.tgz
    --22:16:12-- http://www.cakey.de/acerhk/archives/acerhk-0.5.35.tgz
    => `acerhk-0.5.35.tgz'
    Resolving www.cakey.de... 84.16.224.224
    Connecting to www.cakey.de|84.16.224.224|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 36,858 (36K) [application/x-tar]

    100%[================================================== ================================================== ============>] 36,858 54.01K/s

    22:16:13 (53.90 KB/s) - `acerhk-0.5.35.tgz' saved [36858/36858]


    b4cktr4ck3 ~ # tar xvf acerhk-0.5.35.tgz
    acerhk-0.5.35/
    acerhk-0.5.35/doc/
    acerhk-0.5.35/doc/FAQ
    acerhk-0.5.35/doc/IOCTL
    acerhk-0.5.35/doc/acertm.def
    acerhk-0.5.35/doc/md95400.def
    acerhk-0.5.35/doc/keycodes
    acerhk-0.5.35/NEWS
    acerhk-0.5.35/INSTALL
    acerhk-0.5.35/README
    acerhk-0.5.35/COPYING
    acerhk-0.5.35/AUTHORS
    acerhk-0.5.35/Makefile
    acerhk-0.5.35/acerhk.c
    acerhk-0.5.35/acerhk.h
    b4cktr4ck3 ~ # cd /acerhk-0.5.35/
    b4cktr4ck3 acerhk-0.5.35 # ls
    AUTHORS COPYING INSTALL Makefile NEWS README acerhk.c acerhk.h doc/
    b4cktr4ck3 acerhk-0.5.35 # cat INSTALL
    Installation
    ************

    1. You need the kernel sources (or kernel headers for your kernel)
    installed to compile the driver.

    2. Your kernel needs loadable module support with version information for
    modules enabled. Usage of procfs is highly recommended.
    If you want the driver to generate regular keyboard events using
    kernel version 2.4 you need the input system of the kernel enabled
    (Input core support AND keyboard support). In kernel version 2.6 all
    needed functionality should be available by default.

    In most cases you can skip the next step, the Makefile tries do determine
    the correct directory on its own. Change KERNELSRC only if the autodetection
    does not work for you. Otherwise proceed directly with step 4.

    3. Before you compile the driver, change KERNELSRC in the makefile to your
    path to the kernel build environment. If you are using a self compiled kernel,
    point it to the root of your sources. If you are using a packaged kernel of
    your distribution, install the package with kernel headers
    (Debian:kernel-headers) and point KERNELSRC to where the headers and config
    files are located. If you are using Debian, this
    would be "/lib/modules/<kernelversion>/build".

    4. Do:
    make
    to compile the driver. If you run into problems because of the makefile not
    recognizing your kernel version correctly, try this:
    make acerhk.o - kernel version 2.4
    make acerhk.ko - kernel version 2.6

    5. Do:
    make install
    to automatically copy the driver into the kernel module library. If you've
    done so, proceed directly with step 8. If you want to install the module
    binary yourself (because you want a different location), use steps 6 and 7
    instead.

    6. Copy the created file "acerhk.o" ("acerhk.ko" with version 2.6) to your
    kernel modules path. In Debian this could be
    "/lib/modules/<kernelversion>/kernel/drivers/extra/".

    7. Update module dependencies: depmod -a

    8. Try loading the module with:
    insmod/modprobe acerhk
    If it succeeds - congratulations! If you have procfs enabled, you can try the
    following to test the driver:

    Non-Dritek models:
    Press one of the special keys and after that:
    cat /proc/driver/acerhk/key
    to read the (hexadezimal) code of the key pressed. It should
    be different from 0x00.
    (Note: You mustn't have the polling feature enabled for this to work, so load
    the module with poll=0)

    Dritek-models:
    Press one of the special keys and look for the generated key with "xev". If
    there is none, then you should see at least kernel messages about using
    setkeycodes.

    If your notebook has a mail led you can try this:
    echo on > /proc/driver/acerhk/led
    This should sete the mail led to blinking mode.
    echo off > /proc/driver/acerhk/led
    turns it off again.
    See README for further usage information.

    If the module didn't load look into your kernel messages what went wrong. If
    you see something like the following lines:
    acerhk: could not find request handler
    acerhk: can't find ROM area
    acerhk: unloaded
    then your hardware is not recognized. See README for supported models. If it
    won't work on your notebook, please contact me and I will see if I can fix
    that.

    Integrating the driver into kernel tree version 2.6
    ************************************************** *

    If you want the driver to fully integrate into the kernel tree of version 2.6
    proceed as follows:
    1. Copy the acerhk directory into the source tree, for instance
    /usr/src/linux/drivers/misc/acerhk
    2. Include the driver directory in the config files. Add to the Kconfig
    file of the parent directory(/usr/src/linux/drivers/misc/Kconfig):

    config ACERHK
    tristate "Acerhk driver"
    depends on EXPERIMENTAL
    ---help---
    This is an experimental acer keyboard driver for
    acer laptops

    3. Include the acer directory in it's parents
    Makefile(/usr/src/linux/drivers/misc/Makefile):

    obj-$(CONFIG_ACERHK) += acerhk/

    4. In this case you also need to activate the misc drivers first
    (/usr/src/linux/drivers/Kconfig):

    source "drivers/misc/Kconfig"

    If that's done, you should be able to select the driver from the configuration
    programm and build the module.

    b4cktr4ck3 acerhk-0.5.35 # make
    make -C /lib/modules/`uname -r`/build SUBDIRS=/acerhk-0.5.35 modules
    make[1]: Entering directory `/usr/src/linux-2.6.21.5'
    CC [M] /acerhk-0.5.35/acerhk.o
    Building modules, stage 2.
    MODPOST 1 modules
    WARNING: /acerhk-0.5.35/acerhk.o - Section mismatch: reference to .init.text: from .text after 'acerhk_probe' (at offset 0x2bf1)
    CC /acerhk-0.5.35/acerhk.mod.o
    LD [M] /acerhk-0.5.35/acerhk.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
    b4cktr4ck3 acerhk-0.5.35 # make install
    mkdir -p /lib/modules/2.6.21.5/extra
    cp -v acerhk.ko /lib/modules/2.6.21.5/extra/
    `acerhk.ko' -> `/lib/modules/2.6.21.5/extra/acerhk.ko'
    depmod -a
    b4cktr4ck3 acerhk-0.5.35 #

  9. #9
    Just burned his ISO
    Join Date
    Jul 2009
    Posts
    1

    Default mmm it compiles but ..

    Hi,

    my doubt and problem is "how do i install an module as if it do "modpobre acerhk.ko" it wont work !
    root@osaka:~/acerhk-0.5.35# modprobe acerhk.ko
    FATAL: Module acerhk.ko not found.
    root@osaka:~/acerhk-0.5.35# ls *.ko
    acerhk.ko
    root@osaka:~/acerhk-0.5.35#


    root@osaka:~# tar -xvf acerhk-0.5.35.tgz
    acerhk-0.5.35/
    acerhk-0.5.35/doc/
    acerhk-0.5.35/doc/FAQ
    acerhk-0.5.35/doc/IOCTL
    acerhk-0.5.35/doc/acertm.def
    acerhk-0.5.35/doc/md95400.def
    acerhk-0.5.35/doc/keycodes
    acerhk-0.5.35/NEWS
    acerhk-0.5.35/INSTALL
    acerhk-0.5.35/README
    acerhk-0.5.35/COPYING
    acerhk-0.5.35/AUTHORS
    acerhk-0.5.35/Makefile
    acerhk-0.5.35/acerhk.c
    acerhk-0.5.35/acerhk.h
    root@osaka:~# cd acerhk-0.5.35 ; make ; make install
    make -C /lib/modules/`uname -r`/build SUBDIRS=/root/acerhk-0.5.35 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.29.4'

    WARNING: Symbol version dump /usr/src/linux-source-2.6.29.4/Module.symvers
    is missing; modules will have no dependencies and modversions.

    scripts/Makefile.build:46: *** CFLAGS was changed in "/root/acerhk-0.5.35/Makefile". Fix it to use EXTRA_CFLAGS.

    Stop.
    make[1]: *** [_module_/root/acerhk-0.5.35] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-2.6.29.4'
    make: *** [acerhk.ko] Error 2
    make -C /lib/modules/`uname -r`/build SUBDIRS=/root/acerhk-0.5.35 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.29.4'

    WARNING: Symbol version dump /usr/src/linux-source-2.6.29.4/Module.symvers
    is missing; modules will have no dependencies and modversions.

    scripts/Makefile.build:46: *** CFLAGS was changed in "/root/acerhk-0.5.35/Makefile". Fix it to use EXTRA_CFLAGS.

    Stop.
    make[1]: *** [_module_/root/acerhk-0.5.35] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-2.6.29.4'
    make: *** [acerhk.ko] Error 2

    so i modify the cflags


    CFLAGS+=-c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
    INCLUDE=-I$(KERNELSRC)/include

    to

    EXTRA_CFLAGS+=-c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
    INCLUDE=-I$(KERNELSRC)/include

    And it works.

    root@osaka:~/acerhk-0.5.35# make ; make install
    make -C /lib/modules/`uname -r`/build SUBDIRS=/root/acerhk-0.5.35 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.29.4'

    WARNING: Symbol version dump /usr/src/linux-source-2.6.29.4/Module.symvers
    is missing; modules will have no dependencies and modversions.

    CC [M] /root/acerhk-0.5.35/acerhk.o
    /root/acerhk-0.5.35/acerhk.c: In function 'init_input':
    /root/acerhk-0.5.35/acerhk.c:2227: warning: ignoring return value of 'input_register_device', declared with

    attribute warn_unused_result
    Building modules, stage 2.
    MODPOST 1 modules
    WARNING: modpost: Found 2 section mismatch(es).
    To see full details build your kernel with:
    'make CONFIG_DEBUG_SECTION_MISMATCH=y'
    CC /root/acerhk-0.5.35/acerhk.mod.o
    LD [M] /root/acerhk-0.5.35/acerhk.ko
    make[1]: Leaving directory `/usr/src/linux-source-2.6.29.4'
    mkdir -p /lib/modules/2.6.29.4/extra
    cp -v acerhk.ko /lib/modules/2.6.29.4/extra/
    `acerhk.ko' -> `/lib/modules/2.6.29.4/extra/acerhk.ko'
    depmod -a

    but as i need the ".KO" file so i did it again .. in another way.

    root@osaka:~/acerhk-0.5.35# make acerhk.ko ; make install
    make: `acerhk.ko' is up to date.
    mkdir -p /lib/modules/2.6.29.4/extra
    cp -v acerhk.ko /lib/modules/2.6.29.4/extra/
    `acerhk.ko' -> `/lib/modules/2.6.29.4/extra/acerhk.ko'
    depmod -a

    so we have it now.

    root@osaka:~/acerhk-0.5.35# ls -ltrh
    total 264K
    -rw-r--r-- 1 osaka osaka 18K May 8 2002 COPYING
    -rw-r--r-- 1 osaka osaka 415 Feb 28 2003 NEWS
    -rw-r--r-- 1 osaka osaka 3.1K Jun 16 2005 acerhk.h
    -rw-r--r-- 1 osaka osaka 4.1K Dec 7 2005 INSTALL
    -rw-r--r-- 1 osaka osaka 8.2K Nov 9 2006 README
    -rw-r--r-- 1 osaka osaka 28 Nov 9 2006 AUTHORS
    drwxr-sr-x 2 osaka osaka 4.0K Nov 12 2007 doc
    -rw-r--r-- 1 osaka osaka 90K Nov 12 2007 acerhk.c
    -rw-r--r-- 1 osaka osaka 2.1K Jul 23 05:31 Makefile
    -rw-r--r-- 1 root osaka 37 Jul 23 05:31 modules.order
    -rw-r--r-- 1 root osaka 47K Jul 23 05:31 acerhk.o <<<<<<
    -rw-r--r-- 1 root osaka 444 Jul 23 05:31 acerhk.mod.c
    -rw-r--r-- 1 root osaka 0 Jul 23 05:31 Module.symvers
    -rw-r--r-- 1 root osaka 1.4K Jul 23 05:31 acerhk.mod.o
    -rw-r--r-- 1 root osaka 48K Jul 23 05:31 acerhk.ko <<<<<<
    root@osaka:~/acerhk-0.5.35#

    and i belivie that 2 is off..

    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    2

    2 = suposed to be off as it dont work.
    so the funny thing is :

    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    3
    root@osaka:~/acerhk-0.5.35# echo 1 > /sys/bus/pci/drivers/ipw2200/*/rf_kill
    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    3
    root@osaka:~/acerhk-0.5.35# echo 0 > /sys/bus/pci/drivers/ipw2200/*/rf_kill
    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    2
    root@osaka:~/acerhk-0.5.35# echo -0 > /sys/bus/pci/drivers/ipw2200/*/rf_kill
    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    2
    root@osaka:~/acerhk-0.5.35# echo -1 > /sys/bus/pci/drivers/ipw2200/*/rf_kill
    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    2
    root@osaka:~/acerhk-0.5.35# echo -3 > /sys/bus/pci/drivers/ipw2200/*/rf_kill
    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    2
    root@osaka:~/acerhk-0.5.35# echo -2 > /sys/bus/pci/drivers/ipw2200/*/rf_kill
    root@osaka:~/acerhk-0.5.35# cat /sys/bus/pci/drivers/ipw2200/*/rf_kill
    2

    I apreciate ur help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •