Etch as stable No.2

aya@popowa:~$ sudo apt-cache search madwifi

hostapd - user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
madwifi-tools - tools for the Multiband Atheros Driver for WiFi
madwifi-doc - documentation for the Multiband Atheros Driver for WiFi
madwifi-source - source for the Multiband Atheros Driver for WiFi

ふむふむ。取り合えずmadwifi-toolsをいれてみる。 それから

lspci

02:01.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controller
02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)

が入っている事を再度確認。madwifi.orgで検索したら、あった↓

意外に忘れている事が判明。これが役に立ちそう

  1. という訳で実行
  2. aya@popowa:~$ sudo m-a prepare
  3. aya@popowa:~$ sudo m-a a-i madwifi。入ったようなので、
  4. modprobe ath_pci を実行
  5. 入ったかどうかdmesgで確認
    ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
    wlan: 0.8.4.2 (0.9.3)
    ath_rate_sample: 1.2 (0.9.3)
    ath_pci: 0.9.4.5 (0.9.3)
    ACPI: PCI Interrupt 0000:02:02.0[A] -> GSI 21 (level, low) -> IRQ 217
    wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
    wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
    wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps  36Mbps 48Mbps 54Mbps
    wifi0: H/W encryption support: WEP AES AES_CCM TKIP
    wifi0: mac 5.9 phy 4.3 radio 3.6
    wifi0: Use hw queue 1 for WME_AC_BE traffic
    wifi0: Use hw queue 0 for WME_AC_BK traffic
    wifi0: Use hw queue 2 for WME_AC_VI traffic
    wifi0: Use hw queue 3 for WME_AC_VO traffic
    wifi0: Use hw queue 8 for CAB traffic
    wifi0: Use hw queue 9 for beacons
    wifi0: Atheros 5212: mem=0xd0200000, irq=217
    その他には
    lsmod | grep ath
    とすると確認出来る
  6. 無事に入っているようです :)
  7. WPA/WPA2を使う為に
    aptitude install wpasupplicant
  8. WPA/WPA2の設定をする
    wpa_passphrase SSID(FONのディフォルトだとMyPlace) パスフレーズ(FONだとルーターに書いてある) > /etc/wpa_supplicant/wpa_supplicant.conf
  9. /etc/wpa_supplicant/wpa_supplicant.confを編集
    emacs -nw /etc/wpa_supplicant/wpa_supplicant.conf
network={
	proto=WPA WPA2 #新たに追加
	key_mgmt=WPA-PSK #新たに追加
	pairwise=CCMP TKIP #新たに追加
	ssid="MyPlace" #SSID
	#psk="xxxxxxxxxx"
	psk=暗号化されたパスフレーズ
}
  1. /etc/network/interfacesに追加
    iface ath0 inet dhcp
    	wpa-driver madwifi
    	wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  2. その後
    ifup ath0
  3. ネットに接続!

エラー

[解決済]Could not unlink existing ctrl_iface socket '/var/run/wpa_supplicant/ath0'

bind(PF_UNIX): No such file or directory
unlink[ctrl_iface]: No such file or directory
Could not unlink existing ctrl_iface socket '/var/run/wpa_supplicant/ath0'
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

/etc/wpa_supplicant/functions.sh: line 156:  4699 Segmentation fault     
start-  stop-daemon --start --oknodo $DAEMON_VERBOSITY --name 
$WPA_SUP_PNAME  --startas $ WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE -- 
$WPA_SUP_OPTIONS -D $WPA_SUP_DRIVER $W PA_SUP_CONF
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

こんなのが出た。なのでifdown ath0をして、ifup ath0したら直った。

Etch as stable No.1: do not use it

aya@comuro:~$ sudo apt-cache search madwifi
hostapd - user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
madwifi-tools - tools for the Multiband Atheros Driver for WiFi
madwifi-doc - documentation for the Multiband Atheros Driver for WiFi
madwifi-source - source for the Multiband Atheros Driver for WiFi 
madwifi-ng-source - source for the Multiband Atheros Driver for WiFi
madwifi-ng-doc - documentation for the Multiband Atheros Driver for WiFi
madwifi-ng-tools - tools for the Multiband Atheros Driver for WiFi

packageに入っているのでいれてみる むむ、dpkg -l してみるとなんかインストール済だわ!(って自分で前入れたのでは。。)

  1. aya@comuro:~$ sudo aptitude show madwifi-ng-tools
  2. ipw2200-sourceを入れる
    1. aya@comuro:~$ sudo m-a a-i ipw2200-source
  3. それからipw2200-fw-3.0.tgzをダウンロードしてくる
    1. aya@comuro:$ sudo tar zCxvf /usr/lib/hotplug/firmware/ ipw2200-fw-3.0.tgz
  4. その後は書いてないので未完成(汗

参考URL


Last-modified: 2012-03-12 (月) 17:05:59 (166d)