Re: Making module for WLAN stick on iBook
I wrote
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’
................................................
##################################################
I wish this was easier.
It *was* pretty easy. What was obviously missing was prototypes for
vmalloc() and vfree(). So, I added one line to r8192U_core.c:
.............................
#include <linux/usb.h>
#include <linux/vmalloc.h> /* include for Debian 5.0.4 iBook 2010-04-14 */
.............................
With this change, 'make' succeeded. 'make install' didn't, but all
that seemed to be needed was making directories /etc/acpi and
/etc/acpi/events, which didn't exist previously.
Everything looked OK, so I rebooted and mounted the WLAN stick.
Unfortunately, nothing seems to be happening with it. 'lsmod' shows
that module r8192s_usb has, in fact, been loaded (automatically), and
'dmesg' reports
.............................
Linux kernel driver for RTL8192 based WLAN cards
.............................
However, when I say 'ifconfig wlan0 up', the answer is
wlan0: ERROR while getting interface flags: No such device
Also, the two-computer (Network Manager?) icon at the top of the
screen that would normally drop down a setup dialog for a wireless
network stays inactive.
However, this is getting close, isn't it?
Reply to: