I am the happy owner of an eee p701 from asus and I have been running Mandriva on it for a month now. I have chosen to use the 2008.1 version in order to get out of the box working drivers.
All is good but I can't manage to make some of the fn keys work (additional keys for acpi stuff).
So in order to enable them I am trying to install the modules for acpi from source.
I have the sources and have installed my kernel source too :
CODE
[root@localhost asus_acpi]# uname -r
2.6.24.2-laptop-4mdv
[root@localhost asus_acpi]# rpm -qa |grep kernel
madwifi-kernel-2.6.24.2-laptop-1mdv-0.9.3.3-1.r3114mdv2008.1
kernel-headers-2.6.24-5mdv2008.1
kernel-laptop-latest-2.6.24.2-4mdv2008.1
kernel-source-latest-2.6.24.2-4mdv2008.1
kernel-laptop-devel-2.6.24.2-4mdv-1-1mdv2008.1
kernel-source-2.6.24.2-4mdv-1-1mdv2008.1
kernel-laptop-2.6.24.2-4mdv-1-1mdv2008.1
madwifi-kernel-laptop-latest-0.9.3.3-1.20080211.1.r3114mdv2008.1
kernel-laptop-2.6.24.2-3mdv-1-1mdv2008.1
[root@localhost asus_acpi]#
2.6.24.2-laptop-4mdv
[root@localhost asus_acpi]# rpm -qa |grep kernel
madwifi-kernel-2.6.24.2-laptop-1mdv-0.9.3.3-1.r3114mdv2008.1
kernel-headers-2.6.24-5mdv2008.1
kernel-laptop-latest-2.6.24.2-4mdv2008.1
kernel-source-latest-2.6.24.2-4mdv2008.1
kernel-laptop-devel-2.6.24.2-4mdv-1-1mdv2008.1
kernel-source-2.6.24.2-4mdv-1-1mdv2008.1
kernel-laptop-2.6.24.2-4mdv-1-1mdv2008.1
madwifi-kernel-laptop-latest-0.9.3.3-1.20080211.1.r3114mdv2008.1
kernel-laptop-2.6.24.2-3mdv-1-1mdv2008.1
[root@localhost asus_acpi]#
I also made sure that the begining of the Makefile is ponting to the right places :
CODE
KERNEL_VERSION := $(shell uname -r)
KERNEL_DIR := /lib/modules/$(KERNEL_VERSION)/build
KERNEL_DIR := /lib/modules/$(KERNEL_VERSION)/build
But when I try to build the module here is what happens:
CODE
root@localhost asus_acpi]# make clean
rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers
rm -rf .tmp_versions
[root@localhost asus_acpi]# make
Building ASUS ACPI driver...
make[1]: Entering directory `/usr/src/linux-2.6.24.2-laptop-4mdv'
CC [M] /home/stephane/Desktop/acpi/asus_acpi/asus_acpi.o
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:164: warning: initialization from incompatible pointer type
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:550: warning: initialization from incompatible pointer type
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c: In function ‘asus_hotk_notify’:
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:1181: error: implicit declaration of function ‘acpi_bus_generate_event’
make[2]: *** [/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.o] Error 1
make[1]: *** [_module_/home/stephane/Desktop/acpi/asus_acpi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.2-laptop-4mdv'
make: *** [asus_acpi] Error 2
[root@localhost asus_acpi]#
rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers
rm -rf .tmp_versions
[root@localhost asus_acpi]# make
Building ASUS ACPI driver...
make[1]: Entering directory `/usr/src/linux-2.6.24.2-laptop-4mdv'
CC [M] /home/stephane/Desktop/acpi/asus_acpi/asus_acpi.o
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:164: warning: initialization from incompatible pointer type
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:550: warning: initialization from incompatible pointer type
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c: In function ‘asus_hotk_notify’:
/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:1181: error: implicit declaration of function ‘acpi_bus_generate_event’
make[2]: *** [/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.o] Error 1
make[1]: *** [_module_/home/stephane/Desktop/acpi/asus_acpi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.2-laptop-4mdv'
make: *** [asus_acpi] Error 2
[root@localhost asus_acpi]#
So here are my questions :
1- What have I done wrong ? Have I got the right source for a laptop-mdv version of kernel?
2- The acpi does not work out of the box but it is not really a bug, shall I report it on bugzilla anyway?
Thanks for your help, this is the last bit hindering me from completing my "how-to" on the Eee wiki ( http://wiki.eeeuser.com/mandiva_2008_on_eee_pc)in order to keep our distro at the front of the pack for he asus little marvel!
Stef