Asus WL167g V3 on Debian GNU/Linux
Posted on 11-03-2011 00:00
I recently bought this usb-wireless-adapter just because Asus mentions that provides linux support..
Well, it wasn't working under 2.6.32 debian's kernel, and the driver provided by the cd wouldn't compile on kernels newer than 2.6.31 ..
Several people manage to get it working on 2.6.32, just by tweaking some lines of driver's makefile , but that's on Ubuntu - it wouldn't work for my Debian.
After 2 days of searching and experimenting i found that the solution lies to the 2.6.37 kernel.
Ok let's see how we get this running!
- Download 2.6.37 source from here and extract it in your /usr/src/ folder.
- Then open up a terminal:
su apt-get install build-essentials fakeroot firmware-realtek cd /usr/src/linux-2.6.37 make gconfig
- In this window you can configure your kernel:
First you have to load your current configuration which is under /boot/config-kernel-you-currently-use.
Now all you have to do is to enable our usb's module: Locate under
Device Drivers-> Staging drivers -> RealTek RTL8712U (RTL8192SU) Wireless LAN NIC driver the Realtek RTL8712U AP code
and enable it. After that save and close the window.
- Now back to the terminal:
fakeroot make-kpkg --revision=custom1 kernel_image --initrd -j8
Replace custom1 with a name of your choice so you can keep a track ;) Also as you noticed i used -j8. You have to replace it with the number of the cores your processor has!!
It speeds up the process a lot so i don't think you should skip this, even if your machine has just 2 cores.
Well after this is over, you get a nice .deb file in /usr/src/
Run it with gdebi, or :
dpkg -i /usr/src/linux-image-2.6.37_custom1_amd64.deb
Reboot and plug in your usb.If it doesn't work then all you have to do is to load the module:
sudo modprobe r8712u
and the usb-led will start blinking! To load the module automatically with startup add r8712u in the end of the /etc/modules file.