Konfigure wifi atheros menggunakan madwifi setelah upgrade kernel

Hi blog, kali ini aku ingin mengupdate tulisanku sebeumnya yang mengenai wifi di acer aspire 4520. Sebenarnya tidak banyak si yang harus di update, tapi supaya lengkap, hasil output dari kompile sourcenya, aku sertakan juga.

Hari ini, setelah aku selesai mengupdate fedora 9, aku restart fedoraku. setelah masuk kembali ke fedora, ternyata wifiku tak kedetek. Oh no, kok ga kedetek yah .... Setelah kucek lagi, sepertinya kernel terbaru di fedora ku ini tidak memanggil madwifi yang ada di kernel terdahulu. Karena paket instaler yang lama masi ada, jadi ga perlu lagi donwload.

saat ini kernel yang kugunakan adalah

[root@rito ~]# uname -a
Linux rito 2.6.27.12-78.2.8.fc9.i686 #1 SMP Mon Jan 19 20:14:35 EST 2009 i686 athlon i386 GNU/Linux


Sebenarnya , ada keinginan juga siy untuk install kernel dari source langsung. Cuman yang jadi masalah kalau kompile kernel yang ada itu adalah, banyaknya modul yang harus kita pilih. Nah, berhubung fedora udah menyediakan updatenya, jadi mending download aja, menggunakan perintah yum update. lalu reboot fedoranya, dan kernel terbaru pun terpasang sudah.

OK, kita langsung ke langkah-langkahnya.
Seperti yang udah saya utarakan di atas, karena paket yang lama sudah saya ekstrak, maka saya tidak perlu lagi untuk mengekstrak ulang. Jadi cukup masuk ke direktornya saja


[root@rito rito]# cd madwifi-hal-0.10.5.6-r3875-20081105
[root@rito madwifi-hal-0.10.5.6-r3875-20081105]#


setelah masuk ke dalam direktory tersebut. kompile kembali sourcenya


[root@rito madwifi-hal-0.10.5.6-r3875-20081105]# make


berikut adalah proses kompilenya

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.27.12-78.2.8.fc9.i686/build SUBDIRS=/home/rito/madwifi-hal-0.10.5.6-r3875-20081105 modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.12-78.2.8.fc9.i686'
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath/if_ath.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath/if_ath_radar.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath/if_ath_hal_extensions.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath/if_ath_pci.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath/ath_pci.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal/ah_os.o
HOSTCC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal/uudecode
UUDECODE /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal/i386-elf._hal.o
UNMANGLE /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal/i386-elf.hal.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal/ath_hal.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/amrr/amrr.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/amrr/ath_rate_amrr.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/minstrel/minstrel.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/minstrel/ath_rate_minstrel.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/onoe/onoe.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/onoe/ath_rate_onoe.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/sample/sample.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/sample/ath_rate_sample.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/if_media.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_skb.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_beacon.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_crypto.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_crypto_none.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_input.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_node.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_output.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_power.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_proto.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_scan.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_wireless.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_linux.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_monitor.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_rate.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_acl.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_crypto_ccmp.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_scan_ap.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_scan_sta.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_crypto_tkip.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_crypto_wep.o
CC [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/ieee80211_xauth.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_wep.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_tkip.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_ccmp.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_acl.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_xauth.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_scan_sta.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_scan_ap.o
Building modules, stage 2.
MODPOST 14 modules
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath/ath_pci.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath/ath_pci.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal/ath_hal.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal/ath_hal.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/amrr/ath_rate_amrr.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/amrr/ath_rate_amrr.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/minstrel/ath_rate_minstrel.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/minstrel/ath_rate_minstrel.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/onoe/ath_rate_onoe.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/onoe/ath_rate_onoe.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/sample/ath_rate_sample.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/sample/ath_rate_sample.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_acl.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_acl.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_ccmp.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_ccmp.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_scan_ap.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_scan_ap.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_scan_sta.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_scan_sta.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_tkip.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_tkip.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_wep.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_wep.ko
CC /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_xauth.mod.o
LD [M] /home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211/wlan_xauth.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.27.12-78.2.8.fc9.i686'
make -C ./tools all || exit 1
make[1]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools'
for d in ath_info; do \
make -C $d || exit 1; \
done
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
make[1]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools'



Setelah proses make selesai, dan tidak ada eror, maka selanjutnya adalah install madwifi ke dalam kernel


[root@rito madwifi-hal-0.10.5.6-r3875-20081105]# make install


berikut adalah prosesnya

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.27.12-78.2.8.fc9.i686/build SUBDIRS=/home/rito/madwifi-hal-0.10.5.6-r3875-20081105 modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.12-78.2.8.fc9.i686'
Building modules, stage 2.
MODPOST 14 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.27.12-78.2.8.fc9.i686'
sh scripts/find-madwifi-modules.sh -r 2.6.27.12-78.2.8.fc9.i686
for i in ath/ ath_hal/ ath_rate/ net80211/; do \
make -C $i install || exit 1; \
done
make[1]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath'
test -d //lib/modules/2.6.27.12-78.2.8.fc9.i686/net || mkdir -p //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
install -m 0644 ath_pci.ko //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
make[1]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath'
make[1]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal'
test -d //lib/modules/2.6.27.12-78.2.8.fc9.i686/net || mkdir -p //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
install -m 0644 ath_hal.ko //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
make[1]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_hal'
make[1]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate'
for i in amrr/ onoe/ sample/ minstrel/; do \
make -C $i install || exit 1; \
done
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/amrr'
test -d //lib/modules/2.6.27.12-78.2.8.fc9.i686/net || mkdir -p //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
install -m 0644 ath_rate_amrr.ko //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/amrr'
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/onoe'
test -d //lib/modules/2.6.27.12-78.2.8.fc9.i686/net || mkdir -p //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
install -m 0644 ath_rate_onoe.ko //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/onoe'
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/sample'
test -d //lib/modules/2.6.27.12-78.2.8.fc9.i686/net || mkdir -p //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
install -m 0644 ath_rate_sample.ko //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/sample'
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/minstrel'
test -d //lib/modules/2.6.27.12-78.2.8.fc9.i686/net || mkdir -p //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
install -m 0644 ath_rate_minstrel.ko //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate/minstrel'
make[1]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/ath_rate'
make[1]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211'
test -d //lib/modules/2.6.27.12-78.2.8.fc9.i686/net || mkdir -p //lib/modules/2.6.27.12-78.2.8.fc9.i686/net
for i in wlan.o wlan_wep.o wlan_tkip.o wlan_ccmp.o wlan_acl.o wlan_xauth.o wlan_scan_sta.o wlan_scan_ap.o; do \
f=`basename $i .o`; \
install -m 0644 $f.ko //lib/modules/2.6.27.12-78.2.8.fc9.i686/net; \
done
make[1]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/net80211'
(export KMODPATH=/lib/modules/2.6.27.12-78.2.8.fc9.i686/net; /sbin/depmod -ae 2.6.27.12-78.2.8.fc9.i686)
make -C ./tools all || exit 1
make[1]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools'
for d in ath_info; do \
make -C $d || exit 1; \
done
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
make[1]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools'
make -C ./tools install || exit 1
make[1]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools'
for d in ath_info; do \
make -C $d || exit 1; \
done
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
install -d /usr/local/bin
for i in athstats 80211stats athkey athchans athctrl athdebug 80211debug wlanconfig wpakey; do \
install $i /usr/local/bin/$i; \
strip /usr/local/bin/$i; \
done
install -d /usr/local/man/man8
install -m 0644 man/*.8 /usr/local/man/man8
install ../scripts/madwifi-unload /usr/local/bin/madwifi-unload
for d in ath_info; do \
make -C $d install || exit 1; \
done
make[2]: Entering directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
install -d /usr/local/bin
install -m 755 ath_info /usr/local/bin
install -d /usr/local/share/man/man8
install -m 644 ath_info.8 /usr/local/share/man/man8
make[2]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools/ath_info'
make[1]: Leaving directory `/home/rito/madwifi-hal-0.10.5.6-r3875-20081105/tools'


OK, sampai tahap ini, module madwifi telah masuk ke dalam kernel. kita cek kembali di /etc/modprobe.d, apakah sudah ada madwifinya


root@rito madwifi-hal-0.10.5.6-r3875-20081105]# more /etc/modprobe.d/madwifi
alias wifi0 ath_pci
alias ath0 ath_pci
options ath_pci autocreate=sta


Ah .. sudah ada rupanya. sekarang reboot laptopku.

Setelah muncul lagi di windows, cek menggunakan iwconfig


[root@rito ~]# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

pan0 no wireless extensions.

wifi0 no wireless extensions.

ath0 IEEE 802.11g ESSID:"IM2-WLAN" Nickname:""
Mode:Managed Frequency:2.412 GHz Access Point: 00:1D:2E:15:B1:D8
Bit Rate:48 Mb/s Tx-Power:16 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:0761-B235-F56D-9C84-4459-0C65-E2F6-9B93 Security mode:restricted
Power Management:off
Link Quality=72/70 Signal level=-24 dBm Noise level=-96 dBm
Rx invalid nwid:2242 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


sip udah muncul, cek kembali dengan modinfo untuk memastikan driver sudah terpasang


[root@rito madwifi-hal-0.10.5.6-r3875-20081105]# modinfo ath_pci
filename: /lib/modules/2.6.27.12-78.2.8.fc9.i686/net/ath_pci.ko
license: Dual BSD/GPL
version: svn r3875
description: Support for Atheros 802.11 wireless LAN cards.
author: Errno Consulting, Sam Leffler
srcversion: 53828DCE2B2CEC52C9E9103
alias: pci:v0000168Cd00009013sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000024sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000023sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Dsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Csv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Bsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00000019sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000018sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000017sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000016sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000015sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000101Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00001014sv*sd*bc*sc*i*
alias: pci:v000010B7d00000013sv*sd*bc*sc*i*
alias: pci:v0000A727d00000013sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000013sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000012sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000007sv*sd*bc*sc*i*
depends: ath_hal,wlan
vermagic: 2.6.27.12-78.2.8.fc9.i686 SMP mod_unload 686 4KSTACKS
parm: beacon_cal:int
parm: countrycode:Override default country code. Default is 0. (int)
parm: maxvaps:Maximum VAPs. Default is 4. (int)
parm: outdoor:Enable/disable outdoor use. Default is 0. (int)
parm: xchanmode:Enable/disable extended channel mode. (int)
parm: rfkill:Enable/disable RFKILL capability. Default is 0. (int)
parm: hal_tpc:Disables manual per-packet transmit power control and lets this be managed by the HAL. Default is OFF. (int)
parm: autocreate:Create ath device in [sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use 'none' to disable (charp)
parm: ratectl:Rate control algorithm [amrr|minstrel|onoe|sample], defaults to 'sample' (charp)
parm: intmit:Enable interference mitigation by default. Default is 0. (int)
parm: ath_debug:Load-time driver debug output enable (int)
parm: ieee80211_debug:Load-time 802.11 debug output enable (int)


nah, karena sudah terbaca dan terdeteksi, sekarang tinggal menggunakannya.

Selamat Mencoba

Salam
Rito

Komentar

Postingan Populer