Tutorial: Installation of Ralink/MediaTek MT7601 based USB Wifi modules on BeagleBone Black

We just published a tutorial for installation of the UWN100 an UWN200 Compact USB Wifi Adapters on the BeagleBone Black. These adapters are based on the relatively new Ralink/MediaTek MT7601 chipset, so drivers are not widely available yet. The tutorial provides step-by-step instructions for downloading and installing the drivers.

Tutorial: http://www.logicsupply.com/blog/2013/07/22/usb-wifi-adapter-installation-beaglebone-black/

Roland Groeneveld
Logic Supply
www.logicsupply.com
Follow us on Google+ for news and updates

Are there similar instructions for ArchLinux? I’m attempting to apply your recipe there, it compiles fine, but insmod is failing with a “invalid module format” error.

Because those are not for Arch. Also I am sure there are for a much
different Kernel than you are running :wink: That was made on the Angstrom OS.

get his patches and then build a PKGBUILD for it, make your package and
off you go.

You can find a repo for Arch Linux here: https://github.com/archlinuxarm/PKGBUILDs/tree/master/alarm/dkms-mt7601

See this for more details: http://archlinuxarm.org/forum/viewtopic.php?f=5&t=5921&p=33939#p33939

Roland

even easier solution the PKGBUILD is already there for you :slight_smile: But
doesn't that mean its being built already if its in their master tree or
available as a installable package?

According to this, it seems that the next official ArchLinux build for the BeagleBone should contain this then, and all I need is wait? Or am I misunderstanding this?

Thanks,

Johannes.

I like the form factor of this adaptor and I’m interested in trying it out with Ubuntu and Linaro, but I’m concerned about the mystery driver. Who develops it? What is the license? Is there a version control repo for it? Is it going to be in the mainline Linux tree any time soon?

The UWN100 and UWN200 adapters are based on the MediaTek MT7601 chipset. The drivers have recently been published on the MediaTek website. They are published under the GNU General Public License (as you’ll see when you click on the download link).

Thanks. Any plans to get it into the upstream kernel?

UWN200 works well for me. Plug and play. Thank you Jesus, what a pain in the ass it has been to get wifi on my BBB. On the bright side I now have one of every wifi dongle ever made.

I did this, I hope I don’t really need the upgrade though since I’m trying to create a minimal build.

opkg update

opkg upgrade

Now I have these drivers etc.:

ifconfig
ra0 Link encap:Ethernet HWaddr 00:0C:43:00:14:41
inet addr:10.0.1.23 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:43ff:fe00:1441/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1333634 errors:0 dropped:2 overruns:465 frame:465
TX packets:1194015 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:185513558 (176.9 MiB) TX bytes:1018927693 (971.7 MiB)

root@beaglebone:~# lsmod | grep 7601
mtnet7601Usta 25701 1
mt7601Usta 753921 1 mtnet7601Usta
mtutil7601Usta 65890 2 mt7601Usta,mtnet7601Usta

unique modules:
mtnet7601Usta
mtutil7601Usta

mt7601Usta

root@beaglebone:~# modinfo mtutil7601Usta
filename: /lib/modules/3.8.13/kernel/drivers/net/wireless/mtutil7601Usta.ko
license: GPL
srcversion: E14FD79D6D622DB12CC3F6D
depends:
vermagic: 3.8.13 SMP mod_unload modversions ARMv7 thumb2 p2v8

root@beaglebone:~# modinfo mtnet7601Usta
filename: /lib/modules/3.8.13/kernel/drivers/net/wireless/mtnet7601Usta.ko
license: GPL
version: 3.0.0.3
description: RT2870 Wireless Lan Linux Driver
author: Paul Lin <paul_lin@ralinktech.com>
license: GPL
srcversion: B2652578024467A64684B82
alias: usb:v148Fp7601ddcdscdpiciscipin
alias: usb:v148Fp6370ddcdscdpiciscipin
alias: usb:v148Fp7650ddcdscdpiciscipin
depends: mtutil7601Usta,mt7601Usta
vermagic: 3.8.13 SMP mod_unload modversions ARMv7 thumb2 p2v8
parm: mac:rt28xx: wireless mac addr (charp)

root@beaglebone:~# modinfo mt7601Usta
filename: /lib/modules/3.8.13/kernel/drivers/net/wireless/mt7601Usta.ko
srcversion: 9EF4492CF4EB832D5955C16
depends: mtutil7601Usta
vermagic: 3.8.13 SMP mod_unload modversions ARMv7 thumb2 p2v8