Lime + MOD-WIFI-R5370-ANT problem

Started by Dinde, February 18, 2014, 11:20:19 PM

Previous topic - Next topic

Dinde

Hi,

I have purchased a Lime and the MOD-WIFI-R5370-ANT usb adapter.
I downloaded the Debian image: a10_Lime_debian_second_release.img.
Debian seems to not recognize the MOD-WIFI-R5370-ANT.
ifconfig -a only lists eth0, lo and tun10, but no wlan interface.

USB seems to be working OK, I can access a memory stick after inserting it without problems.
However, after inserting the memory stick I keep getting messages on the terminal (via UART) like this:

===>rt_ioctl_giwscan. 6(6) BSS returned, data->length = 1080
[  980.156806] ===>rt_ioctl_giwscan. 6(6) BSS returned, data->length = 1080
===>rt_ioctl_giwscan. 8(8) BSS returned, data->length = 1474
[ 1040.159498] ===>rt_ioctl_giwscan. 8(8) BSS returned, data->length = 1474
===>rt_ioctl_giwscan. 8(8) BSS returned, data->length = 1474
[ 1100.159805] ===>rt_ioctl_giwscan. 8(8) BSS returned, data->length = 1474

Could anybody get me on track solving this problem?

Thanks!

adam-charlie

I bought same wifi dongle just without the external antena and I have same problem. I googled for the drivers, and they are available from manufacurer's page as source files, so you need to compile them. They have compiled fine on Ubuntu running on 32bit computer, so now I will try to cross-compile them for arm, then maybe it will work. If you want to give it a try yourself, here is the link for the driver sources:
http://www.mediatek.com/en/downloads/rt8070-rt3070-rt3370-rt3572-rt5370-rt5372-rt5572-usb-usb/
you will need to give your e-mail address there to get the package but it is complete.

adam-charlie

I hve compiled the drier so now I got the RT5370STA.ko module, I load it and lsusb shows the right module name, also lsmod shows that the module is loaded. ifconfig -a shows new interface ra0, which corresponds to the documentation, but then I got stuck, because when I try to bring the interface up, it fails. dmesg shows some errors:
[  143.675229] rtusb init rt2870 --->
[  143.683418]
[  143.683425]
[  143.683431] === pAd = e0856000, size = 520584 ===
[  143.683440]
[  143.697458] <-- RTMPAllocAdapterBlock, Status=0
[  143.705434] Efuse Size=0x2d [2d0-2fc]
[  143.710779] NVM is EFUSE
[  143.726417] usbcore: registered new interface driver rt2870
[  161.642191] NICLoadFirmware: We need to load firmware
[  161.914609] <-- ERROR in Alloc Bulk buffer for HTTxContext!
[  161.924413] <-- RTMPAllocTxRxRingMemory, Status=3
[  161.929932] ERROR!!! RTMPAllocTxRxMemory failed, Status[=0x00000003]
[  161.944078] ---> RTMPFreeTxRxRingMemory
[  161.950469] <--- RTMPFreeTxRxRingMemory
[  161.957719] !!! rt28xx Initialized fail !!!
[  161.970706] RtmpAsicLoadFirmware: ver 21/21, sum cdf7/cdf7, mac cdf72100
[  161.981849] NICLoadFirmware: firmware loaded already
[  161.993224] <-- ERROR in Alloc Bulk buffer for HTTxContext!
[  162.002709] <-- RTMPAllocTxRxRingMemory, Status=3
[  162.008707] ERROR!!! RTMPAllocTxRxMemory failed, Status[=0x00000003]
[  162.021974] ---> RTMPFreeTxRxRingMemory
[  162.028883] <--- RTMPFreeTxRxRingMemory
[  162.036211] !!! rt28xx Initialized fail !!!
[  162.047951] RtmpAsicLoadFirmware: ver 21/21, sum cdf7/cdf7, mac cdf72100
[  162.059482] NICLoadFirmware: firmware loaded already
[  162.071103] <-- ERROR in Alloc Bulk buffer for HTTxContext!
[  162.080628] <-- RTMPAllocTxRxRingMemory, Status=3
[  162.086632] ERROR!!! RTMPAllocTxRxMemory failed, Status[=0x00000003]
[  162.100285] ---> RTMPFreeTxRxRingMemory
[  162.107111] <--- RTMPFreeTxRxRingMemory
[  162.114278] !!! rt28xx Initialized fail !!!
[  162.154473] RtmpAsicLoadFirmware: ver 21/21, sum cdf7/cdf7, mac cdf72100
[  162.165984] NICLoadFirmware: firmware loaded already
[  162.177480] <-- ERROR in Alloc Bulk buffer for HTTxContext!
[  162.186985] <-- RTMPAllocTxRxRingMemory, Status=3
[  162.192987] ERROR!!! RTMPAllocTxRxMemory failed, Status[=0x00000003]
[  162.206612] ---> RTMPFreeTxRxRingMemory
[  162.213001] <--- RTMPFreeTxRxRingMemory
[  162.220238] !!! rt28xx Initialized fail !!!
Does anyone have a clue what is going on and how to make this module work?

LubOlimex

Hey Guys,

In the kernel there is a ready driver module for the R5370. It is disabled in the current release.

We would enable it by default for the next official Debian release for the A10 Lime which would be out very soon.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

jpr

Hi Olimex,

could you also probably add the module for RealTek RTL8191SU ?
Tried several howto's but I never did get it to work.
Instead I bought MOD-WIFI-RTL8188 but the Connection is not very reliable. It Drops several times for no obvious reasons.

Thanks!
JP

a_vlad

Just for not open new topic

yesterday receive A10, and try connect it to internet over WiFi using MOD-WIFI-R5370-ANT

Card work perfect on my other A20, A10 detect card with lsusb and also ifconfig, but

- HWAddr 00:00:00:00:00
- device not managed

ifup and restart networking not help

Any body can suggest a some idea?

Regards, Vlad