Temat: Problem z instalacją modułu compal-laptop
Sprawa ma się następująco:
Ściągnąłem pliki źródłowe do modułu compal-laptop 0.3.0, następnie zainstalowałem program Compal Laptop Control i otworzyłem wskazany w opisie na stronie internetowej programu Compal Laptop Control plik readme.
Zgodnie z tym co napisane w readme polskim rozpakowałem paczkę z źródłami wszedłem w nowoutworzony folder z plikami źródłowymi i następnie skompilowałem i chciałem zainstalować moduł. Niestety przy instalacji wyświetlił się błąd, podobnie zresztą już na etapie kompilacji (wcześniej nie zauważyłem bo jednak większość tego co konsola pokazuje nie rozumiem).
Oto zapis z konsoli:
shai@shaibook:~/Pulpit/compal-laptop-0.3.0$ make
Building Compal Laptop Extras...
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
CC [M] /home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.o
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c: In function ‘wlan_rfk_set’:
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:131: error: ‘RFKILL_STATE_UNBLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:131: error: (Each undeclared identifier is reported only once
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:131: error: for each function it appears in.)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:134: error: ‘RFKILL_STATE_SOFT_BLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c: In function ‘wlan_rfk_get’:
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:153: error: ‘RFKILL_STATE_HARD_BLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:156: error: ‘RFKILL_STATE_UNBLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:156: error: ‘RFKILL_STATE_SOFT_BLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c: In function ‘bluetooth_rfk_set’:
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:168: error: ‘RFKILL_STATE_UNBLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:171: error: ‘RFKILL_STATE_SOFT_BLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c: In function ‘bluetooth_rfk_get’:
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:190: error: ‘RFKILL_STATE_HARD_BLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:193: error: ‘RFKILL_STATE_UNBLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:193: error: ‘RFKILL_STATE_SOFT_BLOCKED’ undeclared (first use in this function)
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c: In function ‘compal_rfkill’:
/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.c:215: error: ‘struct rfkill’ has no member named ‘get_state’
make[2]: *** [/home/shai/Pulpit/compal-laptop-0.3.0/compal-laptop.o] Error 1
make[1]: *** [_module_/home/shai/Pulpit/compal-laptop-0.3.0] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
make: *** [compal-laptop] Error 2shai@shaibook:~/Pulpit/compal-laptop-0.3.0$ sudo make install
Installing Compal Laptop Extras...
cp compal-laptop.ko /lib/modules/`uname -r`/kernel/drivers/misc
cp: cannot stat `compal-laptop.ko': No such file or directory
make: *** [install] Error 1
shai@shaibook:~/Pulpit/compal-laptop-0.3.0$ sudo modrobe compal-laptop
sudo: modrobe: command not found
shai@shaibook:~/Pulpit/compal-laptop-0.3.0$ sudo modprobe compal-laptop
FATAL: Module compal_laptop not found.
shai@shaibook:~/Pulpit/compal-laptop-0.3.0$ sudo make install
Installing Compal Laptop Extras...
cp compal-laptop.ko /lib/modules/`uname -r`/kernel/drivers/misc
cp: cannot stat `compal-laptop.ko': No such file or directory
make: *** [install] Error 1Zapewne popełniłem jakiś podstawowy błąd/niedopatrzenie, prosze więc o pomoc.
Pozdrawiam shai~