Friday 23 March 2012

Installing TPLINK TL-WN722N on ubuntu 10.04 ( kernel 2.6.32-40 )

This tutorial is for those who are trying to make a wirelss usb adapter of the above said origin work over ubuntu. When i started this i thought it will be easy work but as it turned out to be making the ubuntu recognize the adapter was one hell of a task. ( dont forget to plugin in your device right at the beginning and donot disconnect )
Plus to check that if its working
Open terminal and put this command

#lsusb

This will list down that your device is recognized or not,
If recognized it will show something like this


As you can see its listed at Bus 001 Device 002: Atheros Communication
Once this is confirmed lets move further.

I will straight get to work.
Once booted and inside the gnome i want you to follow these steps to get to work.
Open your browser up and paste in the following link

http://www.orbit-lab.org/kernel/compat-wireless-2.6/2011/05/

Now i downloaded the latest one which was > compat-wireless-2011-05-31.tar.bz2
I have no idea for the other version they might be compatible aswell, if someone else do this dont forget to comment below.

The testing link is provided below and try to work with this aswell

http://linuxwireless.org/en/users/Download/stable#compat-wireless_2.6.39_stable_releases

Now i assume u downloaded it to  /home/user/Downloads

Now open terminal up and start putting in these commands

#sudo su
#cd Downloads
#tar xvf compat-wireless-2011-05-31.tar.bz2
#cd compat-wireless-2011-05-31
#./scripts/driver-select ath9k_htc
#make
#make install

Once this is all done download these four files

Very Important : google these files up and save them to your download folder.

ar7010.fw
ar9271.fw
htc_7010.fw ( Version 1.3 )
htc_9271.fw ( Version 1.3 )

Or get the 4 files from here :

http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree

And once done go back to terminal and do this

#sudo su
#cd Downlaods
#cp ar7010.fw /lib/firmware
#cp ar9271.fw /lib/firmware
#cp htc_7010.fw /lib/firmware
#cp htc_9271.fw /lib/firmware

When all this is done

Run this command in the terminal

ifconfig -a

Note down the mac address of your wireless usb adapter

Now do this

#gedit /etc/udev/rules.d/70-persistent-net.rules

And add these lines underneath which are already there in the file that opens up

# USB device 0x0cf3:0x9271 (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:e6:fc:94:91:35", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

Remember to keep them in 2 lines, i have shortened them so to keep the format in the blog,
Dont forget to alter the mac address according to your own which i pointed you to note down earlier, i.e. paste down your own.

Now back to the terminal and run this,

#sudo modprobe ath9k_htc
#sudo reboot

When you will log back do the #ifconfig and you will see your wlan0 listed and working.

Troubleshooting Tips : if it doesnt show up in the interfaces run this in the terminal

#dmesg | grep ath9k

It will list down any problem faced by the adapter to load.

This completes the tutorial to make TL-WN722N work with ubuntu 10.04

I hope i have explained the steps well and it will be useful for anybody out there reading this.

Comments and Feedback will be appreciated.

No comments:

Post a Comment