This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

(SOLVED) How to install a wireless driver.

su1cidalduck

Thu Aug 09, 2012 6:55:57 am

Okay, so I have a TP-LINK WN727N USB and I'm trying to install it onto my Zorin OS 6 Core computer. Unsurprisingly, TP-LINK did not supply a Linux driver but when I called customer support, they said that this driver would work on Linux operating systems. I downloaded it fine but I can't install it because the read me file makes no sense to me. (I'm a newbie). If you could help me understand what I'm supposed to do I will be eternally grateful :D Thanks, Tim.
-----------------------------------READ ME FILE---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Build Instructions:

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.

2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make
# compile driver source code
# To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

6> load driver, go to "os/linux/" directory.
#[kernel 2.4]
# $/sbin/insmod rt2870sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up

#[kernel 2.6]
# $/sbin/insmod rt2870sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2870sta
--------------------------------------------------------------END OF READ ME--------------------------------------------------------------------------------------------------------------------------------------------

If you could help me understand what I'm supposed to do I will be eternally grateful :D Thanks, Tim.

madvinegar

Thu Aug 09, 2012 7:09:48 am

Could you please give me the link to download the driver and check out the contents of the file? I will then prepare an easy guide for you.

Also, plug it in and post back the result of
Code:
lsusb


I want to check if we can make it work without installing any drivers.

su1cidalduck

Thu Aug 09, 2012 7:11:18 am

http://www.ralinktech.com/en/04_support ... hp?sn=5016

Sorry my bad should have done that beforehand

Wolfman

Thu Aug 09, 2012 7:11:51 am

Hi,

according to this, you must follow the advice on the reply:

http://askubuntu.com/questions/134170/h ... ck-working

MV will help you out with this problem as he is our Wifi expert.

Please be patient.

Regards Wolfman :D

madvinegar

Thu Aug 09, 2012 7:14:13 am

WM, before following your link's advise, I want to see the result of lsusb just to check that the ID of the adapter is the same.

su1cidalduck

Thu Aug 09, 2012 7:14:35 am

Hey Wolfman, just wondering: will I need an internet connection for this or will it install offline?

Thanks, Tim

su1cidalduck

Thu Aug 09, 2012 7:16:08 am

Bus 002 Device 007: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

That's what lsusb comes up with

madvinegar

Thu Aug 09, 2012 7:17:07 am

su1cidalduck wrote:Hey Wolfman, just wondering: will I need an internet connection for this or will it install offline?

Thanks, Tim


Hopefully it does not need an internet connection because I believe you just add the adapter ID in the modules list.

The ID is the same, so try out the solution in the link provided by WM, and let us know!

su1cidalduck

Thu Aug 09, 2012 7:33:59 am

Hi thanks for your help again.

To avoid any mistakes I copied and pasted the text into the terminal but it says:

-------------------------------------------------------
tee: invalid option -- ' v '
Try 'tee --help' for more information.
--------------------------------------------------------
(There weren't any spaces in between the v and apostrophes, I just added them for clarity.

madvinegar

Thu Aug 09, 2012 7:37:04 am

Its two (2) different commands!

Code:
echo 'install rt2800usb modprobe --ignore-install rt2800usb ; /bin/echo "148f 5370" > /sys/bus/usb/drivers/rt2800usb/new_id' | sudo tee /etc/modprobe.d/rt2800usb.conf

Code:
sudo modprobe -v rt2800usb


Insert them one by one and press enter after each one.

su1cidalduck

Thu Aug 09, 2012 7:38:58 am

Ahhhh I see. Just gonna try that now and I'll let you know when I'm done

Thansk, Tim

su1cidalduck

Thu Aug 09, 2012 7:55:47 am

madvinegar wrote:Its two (2) different commands!

Code:
echo 'install rt2800usb modprobe --ignore-install rt2800usb ; /bin/echo "148f 5370" > /sys/bus/usb/drivers/rt2800usb/new_id' | sudo tee /etc/modprobe.d/rt2800usb.conf

Code:
sudo modprobe -v rt2800usb


Insert them one by one and press enter after each one.


Well, I did what you asked and on the second command, the last line said

Code:
FATAL: Error running install command for rt2800usb


The line above said

Code:
sh: 1: cannot create /sys/bus/usb/drivers/rt2800usbnew_id: Directory nonexistant



thanks again,Tim

madvinegar

Thu Aug 09, 2012 8:22:58 am

Have you copied and pasted the lines exactly?

I see an error.

It is
/sys/bus/usb/drivers/rt2800usb/new_id

not
/sys/bus/usb/drivers/rt2800usbnew_id


There is a slash deviding rt2800usb and new_id.


Please copy and paste the commands again and check them for any errors before hitting enter.
If you still get an error, please copy and paste the whole error here so as to view it.

su1cidalduck

Thu Aug 09, 2012 8:34:38 am

Okay, I'll do that when I get beack and post the results, thanks for your help. Tim.

su1cidalduck

Thu Aug 09, 2012 6:22:35 pm

Okay back now and this time it didn't throw up any errors but it didn't really seem to do anything. This is my terminal stuff:

Code:
tim@tim:~$ echo 'install rt2800usb modprobe --ignore-install rt2800usb ; /bin/echo "148f 5370" > /sys/bus/usb/drivers/rt2800usb/new_id' | sudo tee /etc/modprobe.d/rt2800usb.conf
[sudo] password for tim:
install rt2800usb modprobe --ignore-install rt2800usb ; /bin/echo "148f 5370" > /sys/bus/usb/drivers/rt2800usb/new_id
tim@tim:~$ sudo modprobe -v rt2800usb
tim@tim:~$


So I don't know whether it installed correctly so any help to setup the wireless network if it has installed correctly would be great.

Thanks, Tim.

su1cidalduck

Thu Aug 09, 2012 7:54:46 pm

Hey no worries, I just had to do it again and it worked perfectly :D#

THANK YOU ALL SOOOO MUCH FOR YOUR HELP. I OWE YOU BIIIIIIIIIIG TIME. YOU GUYS ARE THE BEST!!!!!!!!!!!

Regards, Tim.

madvinegar

Fri Aug 10, 2012 5:24:13 am

Great!
Glad to be of assistance! I will mark this topic as solved!