Monday, August 08, 2005

Linksys WUSB11 in Debian GNU/Linux

Been meaning to write this for a while now and by this point most of the information isn't even fresh in my mind so please bear with me...Hopefully this debian method will make your life a tad bit easier... So here we go...
I'm lazy so I'm using a stock kernel. If you are doing the same, get the matching kernel headers package (I'm using 2.6, should work with late 2.4s... I wouldn't even try 2.2). Another thing to note is that the verion of the WUSB11 I am using is ver 2.8. Hopefully this will be useful for WUSB11s in general. First, you can apt-get some important components.
# apt-get install gcc hotplug at76c503a-source atmel-firmware wireless-tools module-assistant modconf

That's about it for packages.. as far my recollection goes. Next you need to build the module. The easiest way to this is ..
# module-assistant auto-install at76c503a

This should compile the module against the matching headers for your kernel. If you want to compile it against another kernel .. I'm sure it's possible by editing stuff in the source directory for at76c503a. If all goes well, you should see a deb package for the kernel module in your /usr/src directory. Use dpkg -i to install this package. You might see the results of this in dmesg. Use modconf and make sure you select this module. This puts the module into /etc/modules to load when you startup. (yes, editing the file by hand also works..). It might not be quite there yet. There might be a line in hotplug that you need to change so it can properly load the firmware upon loading the module. Try running..
#/etc/init.d/hotplug restart

Then take a look at dmesg and proceed.

If things don't look right. The line you are looking for in /etc/init.d/hotplug is
#echo /sbin/hotplug > /proc/sys/kernel/hotplug .... you just need to uncomment this line and restart hotplug.

The line that needs to be edited in the hotplug startup script might be fixed by now. If so, you won't see any issues about not being able to find the firmware. Also, don't forget to update your /etc/network/interfaces with the information for your new interface.. such as the WEP the key. You can also put the info in /etc/network/if-pre-up.d/wireless-tools . Good luck.