Ralink Driver installation

Asked by joseMaestro

Hi There,

I'm trying to install the RT2860 Wireless Lan Linux Driver, and I have followed the README_STA as suggested before, but since I'm overwhelmed with confusion, I'd like to ask how to execute some of the steps, If you'd be so kind please:

1> $tar -xvzf DPB_RT2860_Linux_STA_x.x.x.x.tgz
    go to "./DPB_RT2860_Linux_STA_x.x.x.x" directory.
    ................................
2> In Makefile
 ............................
3> In os/linux/config.mk
 .....................
4> $make
     ...................................
5> $cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat
    ...................................
6> load driver
    #[kernel 2.4]
    # $/sbin/insmod rt2860sta.o
    # $/sbin/ifconfig ra0 inet YOUR_IP up

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

7> unload driver
    $/sbin/ifconfig ra0 down
 $/sbin/rmmod rt2860sta
-------------------------------------------------------------------------------------------------------
I believe (it's a dubious belief here) that I completed steps 1 through 5 successfully. Could someone please help me deciphering
What should I do in steps 6 and 7. I'm completely lost about those steps.
I don't understand if they're commands or what they are. and how should I use them..

Please help me, just a little help, no matter how small it is, would be huge for a newcomer like myself.

Thanks in advance and have a nice day !

Sincerely,

Jose.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You should be able to run:

sudo modprobe rt2860sta.ko; sudo ifconfig ra0 up

If you get no output, it has worked. Keep the source handy as after each new kernel install you will need to recompile the module.

After the modprobe you should then be able to use network manager as you expect.

Revision history for this message
Ubfan (ubfan1) said :
#2

The module is actually present in the ...staging area, and will be picked up (and wont taint the kernel). The piece that was lacking was the /etc/Wireless.... config file, which you have provided now. I may be wrong, but I think 10.10 will run successfully without this config file. Since the source package provides a generic config file, you might want to edit it and make sure things like the number of channels are legal for your location -- e.g. in the US, only channels 1-11 are legal, not 1-14.

Revision history for this message
joseMaestro (etherealhost) said :
#3

Hello guys,

this goes to actionparsnip, I tried to run the commands you just mentioned, and sadly the output was the following...

FATAL: Module rt2860sta.ko not found.
ra0: ERROR while getting interface flags: No such device

I'm by no means senseless, but I feel like I need a lot more guidance than usual, since I consider my linux knowledge to be minimal.

Please help me.

Revision history for this message
mycae (mycae) said :
#4

Jose,
1) you may need to provide the absolute path the the 2860 .ko file (did it build correctly? can you see it?); or alternatively:
2) was there a "make install" after make? At some point this .ko needs to be copied into the system area (/lib/modules/KERNELVERSION/SOMEWHERE), so that it is available for the kernel in the default paths. this cannot happen as a regular user, as a normal user does not have write access to /lib/modules/

Unless the modprobe command succeeds (does not spit out rt2860sta FATAL error), then ra0 will not be created (actually, on my rt2860sta, it creates wlan0 -- ra0 was used in an older module though -- once the modprobe command succeeds, you can see what interfaces are available with ifconfg -a; or just try both ra0 and wlan0).

Revision history for this message
joseMaestro (etherealhost) said :
#5

Hello there mycae !

Thanks for the reply, addressing your answer point by point and regarding point number 1), the absolute path for rt2860sta.ko is:

/lib/modules/2.6.32-27-generic-pae/kernel/drivers/staging/rt2860

Therefore I'm attempting the following:

$sudo modprobe /lib/modules/2.6.32-27-generic-pae/kernel/drivers/staging/rt2860/rt2860sta.ko

And the result is:

FATAL: Module /lib/modules/2.6.32_27_generic_pae/kernel/drivers/staging/rt2860/rt2860sta.ko not found.
----------------------------------------------------------------------------------------------------------------------------------------------

Regarding point 2), I suppose everything would be correct, given the absolute path I just mentioned, and the file being there, right?
Now, I don't think I can try anything else from your last response until I figure this one out, I'm stuck :(

Please help me, I don't know what could I possibly be doing wrong. and I'm aware this must be really annoying to you since I'm a complete ignorant on the subject, but please, help me, I'll owe you guys a big deal !

Best Regards,

Jose

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Did you run:

sudo make install

once the make had completed ok?

Revision history for this message
joseMaestro (etherealhost) said :
#7

Hi actionparsnip,

Maybe not, the only reason could be it's not clearly mentioned in the README, Could please tell me at which point should I issue that command?

Can I do it right now ? Or is there a step that has to be done at this point ?

Thank you very much, and sorry once more If my queries are so basic/fundamental, I'm truly as novice as it gets.

Good Luck,

Jose.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Run it in the same folder you ran: make

Should be ok

Revision history for this message
joseMaestro (etherealhost) said :
#9

Ok, actionparsnip,

I wish I could say: "Yay, That worked!" But it hasn't,... yet !

Here's what I did: the folder/directory I which I previously ran 'make' was this one:

/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217

so, I just ran the 'sudo make install' from here like so:

jose@jarvis:~/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217$ sudo make install

And the result was this:

make -C /home/jose/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/os/linux -f Makefile.6 install
mkdir: cannot create directory `/etc/Wireless': File exists
make[1]: Entering directory `/home/jose/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/os/linux'
rm -rf /etc/Wireless/RT2860STA
mkdir /etc/Wireless/RT2860STA
cp /home/jose/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/RT2860STA.dat /etc/Wireless/RT2860STA/.
install -d /lib/modules/2.6.32-27-generic-pae/kernel/drivers/net/wireless/
install -m 644 -c rt3562sta.ko /lib/modules/2.6.32-27-generic-pae/kernel/drivers/net/wireless/
/sbin/depmod -a 2.6.32-27-generic-pae
make[1]: Leaving directory `/home/jose/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/os/linux'

now I did: 'cd /' an then executed:

jose@jarvis:/$ sudo modprobe rt2860sta.ko

and the result was:

FATAL: Module rt2860sta.ko not found.

:( once again I think I'm doing something terriby wrong, or I'm out of luck.

I hope you can tell me where's my mistake here,
I can't thank you enough, but I can start:

THANK YOU !

Sincerely,

Jose.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Try:

sudo modprobe rt2860sta

May just work

No output == it worked

Revision history for this message
joseMaestro (etherealhost) said :
#11

Hi actionparsnip, it's me again ! he he

Well, the latest command you suggested to me Did work, but unfortunately, it just gave a new error; detailed bellow:

 FATAL: Error inserting rt2860sta (/lib/modules/2.6.32-27-generic-pae/kernel/drivers/staging/rt2860/rt2860sta.ko): Device or resource busy

I'm so frustrated, but not as frustrated as having to ask for your kind help once more, I know how valuable your time is...

But I hope you can continue to help me out, I really do, I feel we're close to solving this one.

infinite thanks,

Jose.

Revision history for this message
mycae (mycae) said :
#12

You are pretty much there.

Your wireless card is currently running another driver; you will have to remove the module that is blocking the new module from being inserted.

can you provide a list of installed modules with

lsmod

?

Revision history for this message
joseMaestro (etherealhost) said :
#13

But Of Course, mycae, sir,
Here you go:

Module Size Used by
joydev 8740 0
usbhid 36206 0
hid 67032 1 usbhid
binfmt_misc 6587 1
snd_hda_codec_realtek 203344 1
fbcon 35102 71
tileblit 2031 1 fbcon
font 7557 1 fbcon
bitblit 4707 1 fbcon
softcursor 1189 1 bitblit
vga16fb 11385 0
vgastate 8961 1 vga16fb
snd_hda_intel 22101 2
snd_hda_codec 74201 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 5412 1 snd_hda_codec
snd_pcm_oss 35308 0
snd_mixer_oss 13746 1 snd_pcm_oss
snd_pcm 70918 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy 1338 0
snd_seq_oss 26722 0
snd_seq_midi 4557 0
snd_rawmidi 19056 1 snd_seq_midi
snd_seq_midi_event 6003 2 snd_seq_oss,snd_seq_midi
snd_seq 47263 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
rt3562sta 916025 1
snd_timer 19098 2 snd_pcm,snd_seq
snd_seq_device 5700 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
i915 288305 4
drm_kms_helper 29329 1 i915
drm 163098 5 i915,drm_kms_helper
ppdev 5259 0
snd 54180 16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
parport_pc 26250 1
lp 7028 0
psmouse 63245 0
serio_raw 3978 0
intel_agp 24671 2 i915
soundcore 6620 1 snd
snd_page_alloc 7172 2 snd_hda_intel,snd_pcm
i2c_algo_bit 5028 1 i915
video 17375 1 i915
output 1871 1 video
agpgart 31788 2 drm,intel_agp
parport 32635 3 ppdev,parport_pc,lp
floppy 53080 0
r8169 34364 0
mii 4381 1 r8169

Thanks for the support my friend,

Best Regards,

Jose.

Revision history for this message
Best mycae (mycae) said :
#14

Try removing rt3562sta .

sudo rmmod rt3562sta

then do your modprobe with your new rt2860sta module

Revision history for this message
mycae (mycae) said :
#15

Oh, make sure that your wlan interface is down with :

ifconfig INTERFACE down

(appropriately substituting INTERFACE) for your actual network interface, eg "wlan0" or "ra0" or whatever. You can get alist of active interfaces with:

ifconfig

Revision history for this message
joseMaestro (etherealhost) said :
#16

Sir,
Just in case you need to see the output of the ifconfig command, here it is...

eth0 Link encap:Ethernet HWaddr 70:71:bc:b1:77:87
          inet addr:192.168.0.18 Bcast:192.168.0.255 Mask:255.255.255.0
          inet6 addr: fe80::7271:bcff:feb1:7787/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:52700 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45542 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:60414501 (60.4 MB) TX bytes:5937992 (5.9 MB)
          Interrupt:27 Base address:0x2000

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:43 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4867 (4.8 KB) TX bytes:4867 (4.8 KB)

ra0 Link encap:Ethernet HWaddr 5c:d9:98:08:a5:87
          inet6 addr: fe80::5ed9:98ff:fe08:a587/64 Scope:Link
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:166614 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1705 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14003937 (14.0 MB) TX bytes:0 (0.0 B)
          Interrupt:21

Well, I'm showing you this for another reason actually, I'd like to know which one of those interfaces as you call them would be my wireless card ?

Thank again, sir,

Sincerely,

Jose.

Revision history for this message
joseMaestro (etherealhost) said :
#17

Ok,

Now the command sudo modprobe rt2860sta ran without giving any output whatsoever, so I according to what you previously said, it worked. THANK YOU !

Now, I know this may come as a total surprise for you (or maybe not) ...but I have no idea about what to do next ?

The commands have executed correctly, and I can only guess I may use my new hardware now, right?

The question is; how do I go and configure it? I still don't see any way to connect wirelessly when I look at the widget on the upper panel (and to the right, (hope you know what I'm talking about.))

Another thing, when I go to: System -> Administration -> Hardware Drivers; it states the following:

"The driver (rt3592sta) is activated but not currently in use."

Thought I'd mention it. what does it mean ?

Can you help setting up a wireless network using what I have just installed, I don't mean to be annoying, I just don't know what to do next.

Like I said, I can't thank you enough...

Best Regards,

Jose.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#18

you need to run:

sudo -i; echo "rt2860sta" >> /etc/modules; exit

This will make your OS load the module (just like you did with the modprobe command) at bootup.

Reboot to test.

As I said, you will need to rerun the make and make install command whenever you get a new kernel so it gets compiled against the new headers

Revision history for this message
joseMaestro (etherealhost) said :
#19

YES ! ! ! ! !

SUCCESS ! ! ! ! !

THANK YOU ! THANK YOU ! THANK YOU ! THANK YOU ! THANK YOU !
THANK YOU ! THANK YOU ! THANK YOU ! THANK YOU ! THANK YOU !
THANK YOU ! THANK YOU ! THANK YOU ! THANK YOU !

Thanks to all of you guys, it's been a collaborative effort, and this results could not have been achieved if it wasn't for all you help.

Keep up the fantastic work you're all doing here. I can't thank you enough, but rest assured, your work is fantastic and is totally appreciated.

God bless you,

See you next time, and good luck,

Sincerely,

Jose.

Revision history for this message
joseMaestro (etherealhost) said :
#20

Thanks mycae, that solved my question.