English version:
It has finally been released the ath9k_htc linux driver! It was needed for the AR9271 chipset used by atheros usb dongle on the following devices: TP LINK TL-WN722N, TL-WN721N, TL-WN422G.
Actually the driver has just been released as a module of compact wireless in the tarball.
Here there’s what you need to compile and install it.
If you’re using ubuntu, you have to uninsinstall the package linux-backports-modules-karmic.
sudo apt-get remove linux-backports-modules-karmic
Check there is not any compact wireless on your sistem. If there is one, you have to erase or move it.
sudo mv /lib/modules/$(uname -r)/updates/cw/ ~
sudo depmod -a
Download the last compact wireless version (this tutorial was made with the first tarball including ath9k_htc module i.e. compat-wireless-2010-03-28)
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
Expand the tarball
tar -xjvf compat-wireless-2.6.tar.bz2
Enter in the expanded directory
cd compat-wireless-DATE-OF-THE-VERSION-YOU-DOWNLOADED
This may seem to be useless but I belive that (at least for the version I took) there is a bug in the choosing driver script (I mean that compiling athk9k_htc driver should include ath9k driver too, but it doesnt seem to work), so I advise to compile all the drivers (it could also be useful in future). Type the following to restore the selection of every driver in case you already selected one.
./scripts/driver-select restore
Now compile and install
make
sudo make install
You must get the firmware from http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree
The file to download is ar9271.fw (click on raw! or here) and it has to be placed in /lib/firmware .
Reboot.
Plug in the usb dongle and run iwconfig
If everything went good you can see the new interface
If you have problems run
for i in ath9k_hw ath9k_common ath9k ath9k_htc ; do modprobe -l $i; done
The output should be something like the following
updates/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
updates/drivers/net/wireless/ath/ath9k/ath9k_common.ko
updates/drivers/net/wireless/ath/ath9k/ath9k.ko
updates/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
If some of the files are not in the same directory there is a problem of modules redundancy that must be fixed erasing the modules (or better backup them). The output from the previous command it’s a list of files included in a directory under /lib/modules/$(uname -r)/ .
Some reference links for more details:
http://www.linuxwireless.org
http://www.linuxwireless.org/en/users/Drivers/ath9k_htc
http://www.linuxwireless.org/en/users/Download
http://www.linuxwireless.org/en/users/Documentation
Versione italiana:
Finalmente è uscito il driver linux ath9k_htc tanto atteso (almeno da me) per la penna wireless 802.11 TP Link TL-WN722N, che è un dongle usb dotato di attacco antenna esterna.
Il driver è per il chipset atheros AR9271, quindi oltre alla TL-WN722N ci rientrano anche i seguenti dispositivi: TL-WN721N e TL-WN422G v2.
In realtà il driver già c’era, ma stava in una patch del kernel, ora è stato messo come modulo nel pacchetto compact wireless.
Cmq ecco cosa fare per installarlo:
Se avete ubuntu, dovete prima di tutto disinstallare il pacchetto linux-backports-modules-karmic.
sudo apt-get remove linux-backports-modules-karmic
Verificate che non ci sia cmq una versione di compat wireless nel sistema, in caso eliminatela o quantomeno spostatela
sudo mv /lib/modules/$(uname -r)/updates/cw/ ~
sudo depmod -a
Scaricare l’ultima versione di compat wireless (questo tutorial è stato fatto con il primo tarball comprendente il modulo ath9k_htc ovvero la compat-wireless-2010-03-28 ):
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
Decomprimere il tarball con
tar -xjvf compat-wireless-2.6.tar.bz2
Entrare nella directory estratta
cd compat-wireless-DATA-DELLA-VERSIONE-SCARICATA
Anche se può sembrare inutile, ritengo che (almeno per la versione che ho preso io) ci sia un bug sulla scelta del driver da compilare (nel senso che compilando ath9k_htc dovrebbe essere incluso anche l’ath9k ma così non sembra essere), nel dubbio consiglio di compilare tutti i drivers (anche in vista di un futuro acquisto). Per ripristinare la selezione di tutti i drivers qualora ne sia stato selezionato qualcuno digitare quanto segue.
./scripts/driver-select restore
Adesso compilate ed installate
make
sudo make install
A questo punto dovete scaricare il firmware da http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree
Il file da prendere è ar9271.fw (clicka su raw! Oppure QUI) e deve essere messo in /lib/firmware .
A questo punto riavviate.
Inserite la penna e lanciate un bell’iwconfig.
Se tutto è andato bene vedrete la nuova interfaccia
Qualora ci siano problemi lanciate
for i in ath9k_hw ath9k_common ath9k ath9k_htc ; do modprobe -l $i; done
L’output dovrebbe essere il seguente
updates/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
updates/drivers/net/wireless/ath/ath9k/ath9k_common.ko
updates/drivers/net/wireless/ath/ath9k/ath9k.ko
updates/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
Se tutti i files non dovessero essere nelle stesse directory c’è un problema di sovrabbondanza di moduli che dovete correggere eliminandoli (o meglio backuppandoli). L’output ottenuto dal comando precedente è una lista di file contenuti in una directory sotto a /lib/modules/$(uname -r)/ .
Ecco i link di riferimento per ulteriori delucidazioni:
http://www.linuxwireless.org
http://www.linuxwireless.org/en/users/Drivers/ath9k_htc
http://www.linuxwireless.org/en/users/Download
http://www.linuxwireless.org/en/users/Documentation