MOD-WIFI-R5370-ANT crash OlinuXino [SOLVED]

Started by fromcologne, March 22, 2014, 08:21:48 PM

Previous topic - Next topic

fromcologne

I bought a MOD-WIFI-R5370-ANT because of better antenna.

First try I build a new kernel with rt2800usb support and edited /etc/network/interfaces.
WLAN connection to my AP works fine.
But if I cause heavy traffic on the WLAN (with FTP or CIFS) my OlinuXino crashs after
30-60 seconds and reboots.

I get this messages on the UART:

<1>Unable to handle kernel paging request at virtual address 8001a8c0
[ 4840.163294] Unable to handle kernel paging request at virtual address 8001a8c0
<1>pgd = eebe4000
[ 4840.172214] pgd = eebe4000
<1>[8001a8c0] *pgd=00000000[ 4840.177286] [8001a8c0] *pgd=00000000

<0>Internal error: Oops: 805 [#1] PREEMPT SMP ARM
[ 4840.185520] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
<d>Modules linked in:[ 4840.192852] Modules linked in: lcd lcd rt2800usb rt2800usb rt2800lib rt2800lib rt2x00usb rt2x00usb rt2x00lib rt2x00lib


Next I tried the official Debian kernel (with video acceleration).
Same effect. Crash after 30-60 seconds.

My environment:
U-Boot SPL 2014.01-rc1-09161-gaf9f405 (Feb 08 2014 - 13:47:22)
Board: A20-OLinuXino_MICRO
Image Name:   Linux-3.4.79+

Some WLAN driver messages during boot:

[    1.747717] NET: Registered protocol family 24
rtusb init rt2870 --->
[    1.754263] rtusb init rt2870 --->
sw_usb_enable_hcd: usbc_num = 2
[    1.760537] sw_usb_enable_hcd: usbc_num = 2
<6>usbcore: registered new interface driver rt2870
...
[    <2.769051]  rt2870_probe ====> pm_usage_cnt 1
...
[   10.445928] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
<7>Registered led device: rt2800usb-phy0::radio
[   10.459546] Registered led device: rt2800usb-phy0::radio
<7>Registered led device: rt2800usb-phy0::assoc
[   10.469463] Registered led device: rt2800usb-phy0::assoc
<7>Registered led device: rt2800usb-phy0::quality
[   10.479491] Registered led device: rt2800usb-phy0::quality
<6>usbcore: registered new interface driver rt2800usb
[   10.490295] usbcore: registered new interface driver rt2800usb
<30>udevd[220]: renamed network interface wlan0 to wlan7
[   10.587223] udevd[220]: renamed network interface wlan0 to wlan7
[ ok done.
...
[   26.256941] wlan7: authenticate with d4:ca:6d:26:38:bf
<7>wlan7: send auth to d4:ca:6d:26:38:bf (try 1/3)
[   26.329538] wlan7: send auth to d4:ca:6d:26:38:bf (try 1/3)
<7>wlan7: authenticated
[   26.345113] wlan7: authenticated
<7>wlan7: associate with d4:ca:6d:26:38:bf (try 1/3)
[   26.384447] wlan7: associate with d4:ca:6d:26:38:bf (try 1/3)
<7>wlan7: RX AssocResp from d4:ca:6d:26:38:bf (capab=0x431 status=0 aid=6)
[   26.405279] wlan7: RX AssocResp from d4:ca:6d:26:38:bf (capab=0x431 status=0 aid=6)
<6>ADDRCONF(NETDEV_CHANGE): wlan7: link becomes ready
[   26.452123] ADDRCONF(NETDEV_CHANGE): wlan7: link becomes ready
<7>wlan7: associated
[   26.460013] wlan7: associated


Any idea what´s going wrong?

Javier

Hi fromcologne,

I am not sure if rt2800usb is the right driver for this device.  Certainly lots of Raspberry Pi people use it (e.g. https://www.modmypi.com/blog/how-to-set-up-the-ralink-rt5370-wifi-dongle-on-raspian), and the Debian wiki lists it in the supported devices for that driver (https://wiki.debian.org/rt2800usb#supported).

But the kernel documentation says not: http://wireless.kernel.org/en/users/Drivers/rt2800usb#Unsupported_chips.  It suggests using the manufacturer's driver instead: http://www.mediatek.com/en/downloads/rt8070-rt3070-rt3370-rt3572-rt5370-rt5372-rt5572-usb-usb/.

If you want to try that driver instead, please let us know how you get on.

Best wishes,
Javier.

jhomann

Hi,

did you manage to get the ralink driver running? Is the driver able to work in 80211n mode? Is the connection stable on heavy load?

regards,
Jan

fromcologne

I think the original Ralink driver is part of the official Olimex Debian kernel.
But it crashes too.
To compile the ralink driver is quiet difficult. I have to edit a lot of parameters
in makefile and config.mk. Documentation is difficult to understand. :-\
The MOD-WIFI-RTL8188 is running well, but it´s incredible slow.
I search for a better supported chipset or use a cable instead.


fromcologne

Maybe I solved the problem with the MOD-WIFI-R5370-ANT.

If I plug in this WLAN dongle I see an error message on TTY

<3>ERROR: 256 KiB atomic DMA coherent pool is too small!
Please increase it with coherent_pool= kernel parameter!


Same message appears if the boards reboots with plugged in dongle.

I edited the file uEnv.txt on /dev/mmcblk0p1 and added one line

coherent_pool=1M

After a reboot the dongle works.