ygramoel
Posts: 9
Joined: Fri Oct 03, 2014 7:23 pm

RT5370 Wireless Adapter not working on Darkbasic

Sat Oct 25, 2014 9:07 pm

I just plugged in a RT5370 Wireless Adapter ( Ralink Technology) into a USB port of my RPi B+ running a DarkBasic image.
It is recognized as a USB device but the driver is not able to create a network interface.

Below is the output of lsconfig, lsusb and (part of) dmesg. The part that worries me most is the line
pcm512x 1-004d: Failed to reset device: -5
in the output of dmesg.

What could be wrong/missing here?

Code: Select all

root@cairon:~# ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:42:ec:34  
          inet addr:192.168.0.185  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fe42:ec34/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9486 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8255 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1074863 (1.0 MiB)  TX bytes:3087412 (2.9 MiB)

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:65536  Metric:1
          RX packets:14748 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14748 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3489452 (3.3 MiB)  TX bytes:3489452 (3.3 MiB)

Code: Select all

root@cairon:~# lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

Code: Select all

root@cairon:~# dmesg | tail -20
[    4.959819] bcm2708_i2c_init_pinmode(1,3)
[    5.043303] cfg80211: Calling CRDA to update world regulatory domain
[    5.088029] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[    5.473106] usb 1-1.2: reset high-speed USB device number 4 using dwc_otg
[    5.744081] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[    6.035971] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[    6.141656] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    6.143445] usbcore: registered new interface driver rt2800usb
[    6.526544] pcm512x 1-004d: Failed to reset device: -5
[    6.558540] pcm512x: probe of 1-004d failed with error -5
[    6.581122] pcm512x 1-004c: Failed to reset device: -5
[    6.593029] pcm512x: probe of 1-004c failed with error -5
[    7.846173] Adding 102396k swap on /dev/mmcblk0p3.  Priority:-1 extents:1 across:102396k SSFS
[    8.019678] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   13.121594] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   15.673930] NET: Registered protocol family 10
[   16.025907] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   16.037073] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.558664] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
[   17.585792] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: RT5370 Wireless Adapter not working on Darkbasic

Sun Oct 26, 2014 3:46 pm

The obvious question has to be, what happens if you use a new download of Raspbian instead ? That way we know if its hardware or software we should be chasing.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

ygramoel
Posts: 9
Joined: Fri Oct 03, 2014 7:23 pm

Re: RT5370 Wireless Adapter not working on Darkbasic

Sat Nov 01, 2014 5:24 pm

OK the wireless adapter works with full raspbian; the hardware is OK :-) . Something must be missing in darkbasic edition ...

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RT5370 Wireless Adapter not working on Darkbasic

Sat Nov 01, 2014 5:57 pm

ygramoel wrote:OK the wireless adapter works with full raspbian; the hardware is OK :-) . Something must be missing in darkbasic edition ...
Can you copy the /boot/* stuff (kernel and firmware stuff) and /lib/modules/`uname -r`/* kernel modules from Raspbian to your Darkbasic system so that you get a working version of the RT5730 driver?

Or look at getting a newer version from the Darkbasic owners.

Or wire your RPi to the network and use rpi-update to do that stuff automagically.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”