Hi!
I've seen there are many requests about how to get ipw2200 and wpa working. So, as I've managed to get them to work, I've decided to write a howto.
We have to compile and install the latest ipw2200 1.0.4 driver from
http://ipw2200.sourceforge.net and we also have to install the firmware, as the ipw2200 0.19 included in the standard installation of Hoary doesn't support wpa.
Here are the steps:
First of all, download the firmware from
here.
Then install it:
Code:
sudo tar xvzf ipw2200-fw-2.3.tgz
sudo cp ipw-2.3-*.fw /usr/lib/hotplug/firmware/
Now download the latest driver from
here.
Then untar it and change your current directory into the driver's one:
Code:
sudo tar xvzf ipw2200-1.0.4.tgz
cd ipw2200-1.0.4
Now run the remove-old.sh script that comes with the driver package in order to make sure that any old module is deleted:
Since there's currently a bug in their location (in fact ipw2200 installs its modules in the first directory, while Ubuntu loads them from the second directory), you have two way to get around it:
1) Edit this line of the Makefile,
from
Code:
KMISC := /lib/modules/$(KVER)/drivers/net/wireless/
to
Code:
KMISC := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
Then install it:
Code:
make
sudo make install
2) Or just copy all the modules (ieee80211*.ko) it
installs from /lib/modules/$(KVER)/drivers/net/wireless/ to /lib/modules/$(KVER)/kernel/drivers/net/wireless/ieee80211 and /lib/modules/$(KVER)/drivers/net/wireless/ipw2200.ko to /lib/modules/$(KVER)/kernel/drivers/net/wireless/ipw2200/.
Now we have to download and install the wpa_supplicant package:
Code:
sudo apt-get install wpasupplicant
Then you have to create a wpa_supplicant.conf in /etc, so:
Code:
sudo gedit /etc/wpa_supplicant.conf
And paste the following lines in the text editor:
Code:
network={
ssid="your_network_name"
proto=WPA
scan_ssid=1
key_mgmt=WPA-PSK
psk="your_secret_key"
}
Anyway there are further configuration examples in /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz.
Then reboot to make sure that the new modules are loaded successfully and type:
to see if there are errors.
Then type the following command to configurate wpa_supplicant:
Code:
sudo wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w -dd
Note: "eth1" is your wireless device.
Now we have to create a small script (first provided by fulco and edited by me) in order to get wpa starting automatically at boot:
Code:
sudo gedit /etc/init.d/wifi_wpa.sh
Here's the script:
Code:
#! /bin/sh
# wifi: wpa_supplicant init
echo " * [Wifi]: Enabling WPA supplicant..."
if [ -x /usr/sbin/wpa_supplicant ]; then
/usr/sbin/wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w
fi
exit 0
Change the script's permissions to allow it to be executed:
Code:
sudo chmod +x /etc/init.d/wifi_wpa.sh
And create a symlink to define the relative service:
Code:
sudo ln -s /etc/init.d/wifi_wpa.sh /etc/rcS.d/S40netwifiwpa
Ok, that's all!
I hope this howto will be helpful.
Bookmarks