PINE64
get wifi mt7601u mediatek usb dongle to work - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Rock64 Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=89)
+--- Thread: get wifi mt7601u mediatek usb dongle to work (/showthread.php?tid=12196)



get wifi mt7601u mediatek usb dongle to work - Johannes - 11-17-2020

Finally I got my usb wifi dongle working.

From linux kernel 4.xx on this chip is supported but I found out - after using several linux distributions - that it just doesn't work from the start.
Two patches are needed for the driver to get it to play.

First get the right kernel sources and headers for the linux distribution (kernel) you use.
In my case it was a 5.8.17 linux kernel (armbian 20.08.1). With 'apt ..' you can get the kernel sources, but command 'armbian-config' makes it easy to install them in /usr/src/ .
Note that a specific version number within the headers (see http://billauer.co.il/blog/2013/10/version-magic-insmod-modprobe-force/ ) should be exactly the same for the compiled driver.
In my case this was 5.8.17-rockchip64, but the installed headers contained only 5.8.17.
Update this so it is the same. (If you don't do that insmod fails.)
Then follow the 2 steps below:

1. php.c
follow this: 
https://github.com/kuba-moo/mt7601u/issues/64#issuecomment-352250127

2. mcu.c
follow this:
https://bbs.archlinux.org/viewtopic.php?id=224859

Command ifconfig should show a wifi device now.
'armbian-config' let you easily set the password and wifi access point for your wifi connection.

Regards,
Johannes