Atheros AR5005G su Fujitsu-Siemens Amilo A1650G: differenze tra le versioni
| Riga 1: | Riga 1: | ||
| − | =NDISWRAPPER: Atheros AR5005G su Fujitsu-Siemens Amilo A1650G= |
+ | =MADWIFI: Atheros AR5005G su Fujitsu-Siemens Amilo A1650G= |
==Introduzione== |
==Introduzione== |
||
<div style="text-align:justify;">Configurazione di una scheda pci con chipset Atheros |
<div style="text-align:justify;">Configurazione di una scheda pci con chipset Atheros |
||
| Riga 18: | Riga 18: | ||
</div> |
</div> |
||
| − | ==ndiswrapper== |
+ | ==Dowload madwifi via subversion== |
<div style="text-align:justify;"> |
<div style="text-align:justify;"> |
||
| − | Dopo aver scaricato i sorgenti di ndiswrapper da |
+ | Dopo aver scaricato i sorgenti via subversion dei driver's madifi |
| − | http://ndiswrapper.sourceforge.net <br/> |
||
| − | Decomprimiamoli ed entriamo nella directory con |
||
| − | Ora |
||
| − | <br/> |
||
<pre> |
<pre> |
||
| − | bash # tar -xvzf ndiswrapper-1.37.tar.gz && cd ndiswrapper-1.37 |
+ | bash # svn checkout http://svn.madwifi.org/trunk madwifi |
| − | </pre> |
||
| − | Ora compiliamo e installiamo i sorgenti con |
||
| − | <br/> |
||
| − | <pre> |
||
| − | bash # make && make install |
||
| − | </pre> |
||
| − | * NB se avete aggiornato il kernel, tenete presente che per il corretto funzionamento bisogna DISABILITARE L'OPZIONE DI UTILIZZO DI 4KB PER LO STACK |
||
| − | <br/> |
||
| − | <pre> |
||
| − | Nel menù di configurazione del kernel |
||
| − | Kernel Hacking -> [ ] Use 4Kb for kernel stacks instead of 8Kb |
||
</pre> |
</pre> |
||
</div> |
</div> |
||
| − | |||
==Installazione driver's== |
==Installazione driver's== |
||
| − | <div style="text-align:justify;">Ora scompattate l'archivio contenente i driver's per Windows ed entrate nella cartella. Dovreste trovare questi 3 file: |
+ | <div style="text-align:justify;">Ora scompattate l'archivio contenente i driver's per Windows ed entrate nella cartella. Dovreste trovare questi 3 |
| − | <br/> |
+ | <br/> Entriamo nella directory, compiliamo e installiamo il driver |
<pre> |
<pre> |
||
| − | bash # cd Atheros && ls |
+ | bash # cd madwifi |
| − | ar5211.sys* net5211.cat* net5211.inf |
+ | bash # make |
| − | bash # |
+ | bash # make install |
</pre> |
</pre> |
||
<br/> |
<br/> |
||
| − | Installiamo quindi i driver's con<br/> |
+ | A questo punto non ci resta che caricare il driver e controllare dmesg |
<pre> |
<pre> |
||
| − | bash # ndiswrapper -i net5211.inf |
+ | bash # modprobe ath_pci rfkill=0 |
| − | </pre> |
+ | bash # dmesg |
| − | Non preoccupatevi se forzerà qualche parametro, è abbastanza normale visto che i driver's non sono stati scritti per GNU/Linux. Ora controlliamo che sia stato installato Correttamente: <br/> |
+ | ath_pci: switching rfkill capability off |
| − | + | wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps |
|
| − | <pre> |
+ | wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps |
| − | bash # ndiswrapper -l |
+ | wifi0: H/W encryption support: WEP AES AES_CCM TKIP |
| − | net5211 : driver installed |
+ | wifi0: mac 7.8 phy 4.5 radio 5.6 |
| − | device (168C:001A) present |
+ | wifi0: Use hw queue 1 for WME_AC_BE traffic |
| − | bash # |
+ | wifi0: Use hw queue 0 for WME_AC_BK traffic |
| − | </pre><br/>Dopo un rapido riavvio ci troviamo a caricare il modulo e a controllarlo con dmesg |
+ | wifi0: Use hw queue 2 for WME_AC_VI traffic |
| − | + | wifi0: Use hw queue 3 for WME_AC_VO traffic |
|
| − | <pre> |
+ | wifi0: Use hw queue 8 for CAB traffic |
| − | bash # modprobe ndiswrapper && dmesg |
+ | wifi0: Use hw queue 9 for beacons |
| − | ndiswrapper: driver net5211 (,05/25/2005,4.1.2.56) loaded |
+ | wifi0: Atheros 5212: mem=0xc0200000, irq=16 |
| − | bash # |
||
| − | </pre> <br/> |
||
| − | Questo è segno che il driver è stato caricato correttamente! |
||
| − | <br/> |
||
| − | Ora non resterebbe che eseguire <br/> |
||
| − | <pre> |
||
| − | bash # iwconfig wlan0 |
||
| − | wlan0 IEEE 802.11b ESSID:off/any Nickname:"noteboo" |
||
| − | Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated |
||
| − | Bit Rate=54 Mb/s |
||
| − | Encryption key:off |
||
| − | Power Management max timeout:0us mode:All packets received |
||
| − | Link Quality:0 Signal level:0 Noise level:0 |
||
| − | Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 |
||
| − | Tx excessive retries:0 Invalid misc:0 Missed beacon:0 |
||
| − | </pre> |
||
| − | <br/> |
||
| − | e testarne il funzionamento con |
||
| − | <br/><pre> |
||
| − | bash # iwlist wlan0 scan |
||
| − | wlan0 Interface doesn't support scanning : Operation not supported |
||
| − | bash # |
||
</pre><br/> |
</pre><br/> |
||
| − | E questo è il punto principale! |
+ | Perfettamente riconosciuta! Ora per farla funzionare del tutto, Ripropongo la sezione già scritta in precedenza Sull'Attivazione Hardware della scheda |
| − | Infatti se guardate il Led Wireless-Status noterete che è spento! |
||
| − | <br/> |
||
| − | * NB In altre parole: la scheda Viene riconosciuta dal sistema solo che è spenta! |
||
| − | <br/> |
||
</div> |
</div> |
||
==Installazione Estensione ACPI== |
==Installazione Estensione ACPI== |
||
| Riga 124: | Riga 123: | ||
bash # echo "enabled : 0" > /proc/acpi/acer/wireless |
bash # echo "enabled : 0" > /proc/acpi/acer/wireless |
||
</pre><br/> |
</pre><br/> |
||
| − | |||
| − | "Ora siete pronti per l'uso" |
||
| − | |||
<br/> ir0c_ |
<br/> ir0c_ |
||
</div> |
</div> |
||
Versione delle 14:58, 24 feb 2007
Indice |
MADWIFI: Atheros AR5005G su Fujitsu-Siemens Amilo A1650G
Introduzione
Pre-requisiti
Situazione attuale
Slackware Linux 11.0
Kernel 2.6.20
Verifica del Chipset
bash # lspci | grep Atheros 02:05.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC (rev 01) bash #
Questa è la nostra scheda Wireless!
Dowload madwifi via subversion
Dopo aver scaricato i sorgenti via subversion dei driver's madifi
bash # svn checkout http://svn.madwifi.org/trunk madwifi
Installazione driver's
Entriamo nella directory, compiliamo e installiamo il driver
bash # cd madwifi bash # make bash # make install
A questo punto non ci resta che caricare il driver e controllare dmesg
bash # modprobe ath_pci rfkill=0 bash # dmesg ath_pci: switching rfkill capability off 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 7.8 phy 4.5 radio 5.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=0xc0200000, irq=16
Perfettamente riconosciuta! Ora per farla funzionare del tutto, Ripropongo la sezione già scritta in precedenza Sull'Attivazione Hardware della scheda
Installazione Estensione ACPI
Supponendo che voi abbiate il demone ACPI che si occupa della gestione dell'energia in esecuzione e sopratutto funzionante! Installiamo (in modo un po' "manuale") una sua estensione per i portatili dell'ACER, che si occupa della gestione dell'accensione dei led Wireless, Buetooth e Mail..
bash # wget http://www.archernar.co.uk/acer_acpi/acer_acpi-0.3.tar.gz bash # tar -xvzf acer_acpi-0.3.tar.gz bash # cd acer_acpi-0.3
Riporto dal README ufficiale:
Riporto dal readme ufficiale: 4. Do: make to compile the driver. If you run into problems because of the makefile not recognizing your kernel version correctly, try this: make acer_acpi.o - kernel version 2.4 make acer_acpi.ko - kernel version 2.6
Quindi noi procediamo per un kernel 2.6 con:
bash # make acer_acpi.ko
ora dobbiamo installarlo, e dato che il "make install" posiziona il modulo in una cartella errata lo installiamo a mano con:
bash # mkdir -p /lib/modules/2.6.20/extra bash # cp acer_acpi.ko /lib/modules/2.6.20/extra
Il flag '-p' di mkdir esegue solo il controllo se la directory passata come argomento esiste già!
- NB uso /lib/modules/2.6.20/extra perchè questa è la mia versione del kernel
A questo punto carichiamo il modulo con:
bash # modprobe acer_acpi
Questo modulo crea la directory "acer" in /proc/acpi/
ora entriamoci
bash # cd /proc/acpi/acer && ls bluetooth mailled version wireless bash #
Questi File servono all'attivazione/disattivazione dei Led sopra descritti
Riporto Dal README ufficiale
To enable a feature:
echo "enabled : 1" > /proc/acpi/acer/{feature}
To disable a feature:
echo "enabled : 0" > /proc/acpi/acer/{feature}
Where {feature} is either wireless, bluetooth, or mailled.
Perciò per attivare la scheda wireless diamo:
bash # echo "enabled : 1" > /proc/acpi/acer/wireless
e per disattivarla:
bash # echo "enabled : 0" > /proc/acpi/acer/wireless
ir0c_