Re: Making module for WLAN stick on iBook
Lainaus Rogério Brito <rbrito@ime.usp.br>:
I suspect there is some very basic capability that I lack to build
modules. I mean, it's not just the A-Link WLAN module that cannot be
built - I don't think I can build *any* module with the current
setup.
The compilation script/makefile that came with your module is looking
for the kernel headers where /lib/modules/<version>/build is telling.
OK; persistent googling led me to
http://blog.calmblue.net/?p=105
Clearly, what was missing was this:
apt-get install linux-headers-2.6.26-2-powerpc
Once this was done, the correct version of the kernel headers appeared
in /usr/src, as did the crucial link in /lib/modules/<version>:
ibook:/home/sakari# ls -al /lib/modules/2.6.26-2-powerpc/build
lrwxrwxrwx 1 root root 39 2010-04-14 08:39
/lib/modules/2.6.26-2-powerpc/build ->
/usr/src/linux-headers-2.6.26-2-powerpc
So, 'make'ing the module for the WLAN stick starts up. However, it soon stops:
###################################################
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-powerpc'
................................
CC [M]
/home/sakari/rtl8192su_linux_2.6.0003.0810.2009/HAL/rtl8192u/r8192U_core.o
/home/sakari/rtl8192su_linux_2.6.0003.0810.2009/HAL/rtl8192u/r8192U_core.c: In
function ‘rtl8192_init_priv_variable’:
/home/sakari/rtl8192su_linux_2.6.0003.0810.2009/HAL/rtl8192u/r8192U_core.c:5328: error: implicit declaration of function
‘vmalloc’
/home/sakari/rtl8192su_linux_2.6.0003.0810.2009/HAL/rtl8192u/r8192U_core.c: In
function ‘rtl8192_usb_disconnect’:
/home/sakari/rtl8192su_linux_2.6.0003.0810.2009/HAL/rtl8192u/r8192U_core.c:11754: error: implicit declaration of function
‘vfree’
make[2]: ***
[/home/sakari/rtl8192su_linux_2.6.0003.0810.2009/HAL/rtl8192u/r8192U_core.o]
Error 1
make[1]: ***
[_module_/home/sakari/rtl8192su_linux_2.6.0003.0810.2009/HAL/rtl8192u]
Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-powerpc'
make: *** [all] Error 2
##################################################
I wish this was easier.
Reply to: