Tuesday, December 01, 2009

IdeaPad S9/S10 WiFi Ubuntu Voodoo

On Sunday I finally got my demicrosofted Lenovo IdeaPad S9 back. I installed Ubuntu Netbook Remix 9.10 (Karmic Koala) on it. Alas! WiFi didn't work. But I compiled a powerful voodoo spell to manage this issue and I am happy to share this magic with you.

First recite this verse.

sudo apt-get update
sudo apt-get install ndiswrapper-utils-1.9
mkdir ~/bcm43xx; cd ~/bcm43xx

wget http://myspamb8.googlepages.com/R174291-pruned.zip
unzip R174291-pruned.zip

sudo ndiswrapper -i bcmwl5.inf
ndiswrapper -l
sudo depmod -a
sudo modprobe ndiswrapper
sudo cp /etc/network/interfaces /etc/network/interfaces.orig
echo -e 'auto lo\niface lo inet loopback\n' | sudo tee /etc/network/interfaces
sudo ndiswrapper -m
echo 'ndiswrapper' | sudo tee -a /etc/modules
echo 'ENABLED=0' | sudo tee -a /etc/default/wpasupplicant

Then use this verse, but slightly modified to avoid warnings about deprecated filenames.

mkdir fixinitrd
cd fixinitrd
cp /boot/initrd.img-`uname -r` ./initrd.gz
mkdir initrd
cd initrd
gunzip < ../initrd.gz | cpio -i --make-directories
echo blacklist b43 >> ./etc/modprobe.d/blacklist.conf
echo blacklist ssb >> ./etc/modprobe.d/blacklist.conf
cd ..
find ./ | cpio -H newc -o > ../initrdfixed
cd ..
gzip initrdfixed
sudo cp ./initrdfixed.gz /boot/initrd.img-`uname -r`

Please backup your /boot/initrd.img-`uname -r` before casting the spell, for it is dangerous kernel magic that can backfire.

No comments: