Setting up the TP-Link TL-WN725N v2 wifi adaptor

Once your raspberry pie is up and running you would want to experiment with it straightaway ,as was the case with me at least...

So the first thing I decided to experiment on was to try attaching a USB WiFi adaptor on the Pie, to make it portable, and see if it worked straight out of the box or not (as was the case with the wired USB keyboard and the mouse).

I found that I had such an adaptor lying around in my house. It was the TP-Link nano 150 Mbps USB wifi adaptor. Well with a lot of enthusiasm I connected it to my Pie but to my dismay it didn't work...... Heartbroken really....

So I decided to look around on the internet. Surprisingly one of the first infos that I got gave the impression that it worked straight out of the box for the Pie. I kept digging. Found out that there are in fact two versions of this same device in the market, TP-Link TL-WN725N v1 and TP-Link TL-WN725N v2. The one which was being reported as working out of the box was the v1 variant. The v2, which is the newer variant, needs drivers to be manually installed on the Pie. So I searched and searched and searched. What I present to you guys here is the procedure which eventually worked. So here it is...

Note: The OS working on my Pie is the Raspbian so the steps below work surely work for it. For others I can't say for sure.

STEP 1:  Open the terminal on the Raspbian


STEP 2:  Type the following in it:
       
               uname -a

This would give you the present kernel       version on your Pie.


STEP 3:  Download the file for your specific 
       kernel version from the list below:

                                    Kernel Version                              File
                              3.6.11+ #474 PREEMPT                                         8188eu.ko
                              3.6.11+ #538 PREEMPT                                         8188eu.ko
                              3.10.24+ #614 PREEMPT                                       8188eu.ko
                              3.10.25+ #622 PREEMPT                                       8188eu.ko
                              3.12.22+ #691 PREEMPT                                       8188eu.ko

The file which you would get is a .ko or a Kernel Object file. Simply put, it is a pre-complied driver file for your respective kernel version so it works as soon as you finish the procedure mentioned here.

STEP 4:  Copy this .ko file into this location:

/lib/modules/(your-kernel-version)/kernel/drivers/net/wireless

For example in my case the path was:

/lib/modules/3.12.22+/kernel/drivers/net/wireless

NOTE: Some people might face a problem while performing the copy operation using the GUI, that is using your mouse to right click and pressing paste into the folder opened. The error might be related to the permissions regarding the accessibility of this folder. To solve this you need to copy the file using the terminal, that is the command line interface of the OS. This can be done by reading this page.

Still you might face permission problems while copying into the 'wireless' folder. This can be solved by placing the prefix 'sudo' at the start of the command. For example:

$ sudo cp file1 ~directory


Now Re-insert the adaptor into any of the Pie's USB ports and it should work. Please provide your feedback in the comments below to let me know if it worked or not, or if you are facing any other difficulties regarding the same.



No comments:

Post a Comment