www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Ralink usb wireless card

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Wireless Networks
View previous topic :: View next topic  
Author Message
AlexMex



Joined: 20 Jul 2013
Posts: 4

PostPosted: Sat Jul 20, 2013 4:39 am    Post subject: Ralink usb wireless card Reply with quote

Hello,

I'm new to Zeroshell and I was trying to get my SMC usb card (RT2870 chip) working with it. Zeroshell detect it but when it try to load the drivers I got the error FATAL: Module rt2800lib, rt2x00usbm rt2x00lib not found.

After checking with find / -iname rt2* I can see such files (with .ko extension or not) in the disk.

I have tested with the 2.0RC2 iso file and 2G image file and got same error.

Can you please tell me where those files are supposed to be in order Zeroshell can load them?

Regards,
Back to top
View user's profile Send private message
AlexMex



Joined: 20 Jul 2013
Posts: 4

PostPosted: Sat Jul 20, 2013 5:22 am    Post subject: Reply with quote

I forgot to mention that I have read this page
http://www.renatomorano.net/?p=1799
so I have
cp /root/kerbynet.cgi/scripts/start-wifi /DB/patch
then added the line driver-load
but I don't know which script is the preboot one where I have to replace the start-wifi script by the modified one in /DB/patch

Any help is welcome.

Regards
Back to top
View user's profile Send private message
AlexMex



Joined: 20 Jul 2013
Posts: 4

PostPosted: Sat Jul 20, 2013 8:06 pm    Post subject: Reply with quote

I have found the preboot script.

issue is with the sequence rt2800usb, rt2x00lib, rt2800lib
start-wifi script get as MODULE this sequence rt2800usb, rt2x00lib, rt2800lib that make fail modprobe -r (modprobe is expecting only one module) then modprobe rt2800usb, rt2x00lib, rt2800lib fails for same reason. I have modified the MODULE variable to get sequence rt2800usb rt2x00lib rt2800lib and then modprobe -r now works. I got to replace modprobe by modprobe -a to get
modprobe -a rt2800usb, rt2x00lib, rt2800lib working. Unfortunately it fails a bit later. As I'm not a unix expert I don't understand anything to the script.

I can't go further Crying or Very sad
Back to top
View user's profile Send private message
AlexMex



Joined: 20 Jul 2013
Posts: 4

PostPosted: Sun Jul 21, 2013 3:42 am    Post subject: Reply with quote

I have finally replaced the MODULE evaluation in the start-wifi script by MODULE="rt2800usb" and I now it fails with the error rt2x00lib_request_firmware error - failed to request firmware
I saw that on debian there are firmwares that should be located in folder /lib/firmware
I found a deb file containing them for debian. Since this folder exists in Zeroshell I was thinking to extract the deb file here but zeroshell doesn't have dpkg command installed.


is there a way to extract the files into this deb file on Zeroshell? Which version of debian deb file should I take? There is one for each version of debian system but I have no idea on how to identify rt2x00 version

Any help is welcome
Back to top
View user's profile Send private message
dervih



Joined: 07 Dec 2013
Posts: 2

PostPosted: Sat Dec 07, 2013 10:24 pm    Post subject: Reply with quote

You were very close. I succeeded to run USB dongle based on RT5370.
Neigher I had to deal with preboot script nor set MODULE.
But I encountered the same error as you: "SIOCSIFFLAGS: No such file or directory"
and finally from dmesg "rt2x00lib_request_firmware error - failed to request firmware".
Googling a little I find out on
http://mitchtech.net/realtek-wireless-dongle-rt3070-on-the-raspberry-pi/
that it is enough to download rt2870.bin (the firmware for my chipset RT5370)
and deploy it into /lib/firmware. I recommend to obtain the newest one via
git clone http://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
Firmware files are independent on Linux flavours.
There is a small problem that '/lib/firmware' is readonly but it can be easily workarounded:
cp -a /lib/firmware /root
mount -o bind /root/firmware /lib/firmware

In my case ZeroShell is run under VirtualBox 4.3. And the USB dongle is very unstable.
I am seldom able to connect do AP. But I succeded both on Linux (x64) and Windows 7 (x86) hosts.
The first time I succeed only half an our so be patient.
I have the same problem with stability for 3G USB modems. VirtualBox has problems with USB support.
Also be carreful passing the password for WPA (under wifi-manger) because it is required to pass a password key (hex) instead of a password string.
It can be simply obtained via wpa_suplificant.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Wireless Networks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group