Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: labioAnto on May 27, 2014, 08:39:22 PM

Title: How to compile MOD-WIFi-R5370-ANT module [SOLVED]
Post by: labioAnto on May 27, 2014, 08:39:22 PM
Hi people, i I bought an A20 olinuxino and a MOD-WIFi-R5370-ANT.
The board running with kernel 3.4.90+ and a small debian rootfs. The board work very well, but i have problem using the wifi dongle. I try to compile the Mediatek driver (http://www.mediatek.com/en/downloads/rt8070-rt3070-rt3370-rt3572-rt5370-rt5372-rt5572-usb-usb/) but i fail. There is anyone that can drive me to a solution?
Thanks a lot
Title: Re: How to compile MOD-WIFi-R5370-ANT module
Post by: scout_3pm on May 27, 2014, 11:49:23 PM
You don't need to build the driver separately.
There is a driver for this chipset in the linux kernel.
You need to build the module or to recompile the kernel
with build-in module.

In the .config file you must have this set
either to =y or = m

CONFIG_RT2800USB_RT53XX=?

In your current running linux run
the following commands AS root:


cp /proc/config.gz /tmp
gunzip /tmp/config.gz
grep RT5 /tmp/config


You will see if you have this option
enabled in any way. You could try also:


grep RT2800USB config


In the default A20 kernel configuration
used by Olimex this option is set to n
or omitted which is equal to n ;-)

https://docs.google.com/file/d/0B-bAEPML8fwldEVvU1hCZ29DODQ/edit?pli=1
Quote
# CONFIG_RT2800USB_RT53XX is not set

For instructions how to recompile a kernel for A20:
http://olimex.wordpress.com/2013/09/18/7795/

Good Luck :-)
Title: Re: How to compile MOD-WIFi-R5370-ANT module
Post by: labioAnto on May 28, 2014, 03:54:52 PM
scout_3pm thanks for your help. I have recompiled the kernel with the RT2800USB module. Now i can see the wireless network, but i'm not able to use it.

ifconfig -a

wlan6     Link encap:Ethernet  HWaddr 00:87:34:5d:5f:a1 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

iwlist scan

lo        Interface doesn't support scanning.

wlan6     Interface doesn't support scanning : Network is down

tunl0     Interface doesn't support scanning.

eth0      Interface doesn't support scanning.


ifconfig wlan6 up

SIOCSIFFLAGS: No such file or directory



Title: Re: How to compile MOD-WIFi-R5370-ANT module
Post by: labioAnto on May 28, 2014, 04:18:12 PM
Quote from: labioAnto on May 28, 2014, 03:54:52 PM
scout_3pm thanks for your help. I have recompiled the kernel with the RT2800USB module. Now i can see the wireless network, but i'm not able to use it.

ifconfig -a

wlan6     Link encap:Ethernet  HWaddr 00:87:34:5d:5f:a1 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

iwlist scan

lo        Interface doesn't support scanning.

wlan6     Interface doesn't support scanning : Network is down

tunl0     Interface doesn't support scanning.

eth0      Interface doesn't support scanning.


ifconfig wlan6 up

SIOCSIFFLAGS: No such file or directory
I have installed ralink-firmware, and after reboot i'm able to use the wireless. Thanks for help!!
Title: Re: How to compile MOD-WIFi-R5370-ANT module
Post by: scout_3pm on May 28, 2014, 04:19:56 PM
I'm glad I could help :-)

Edit your first post and put in front of title "[SOLVED]" ;-)
Title: Re: How to compile MOD-WIFi-R5370-ANT module [SOLVED]
Post by: gschmottlach on August 16, 2014, 11:56:12 PM
Could you share with me where to find the firmware and how to install it? Does it come with the Linux kernel already? I've enabled the driver in the kernel and re-built it but don't know where to obtain the firmware and how to install it.

Thanks. . .
Title: Re: How to compile MOD-WIFi-R5370-ANT module [SOLVED]
Post by: scout_3pm on November 25, 2014, 01:39:22 AM
apt-get install <package>

for Debian(-based)

where package depending on Debian version is  ralink-firmware or firmware-linux-nonfree and firmware-linux-free depending what firmware you actually need, better to have them both if for personal/home/non-business use :-)