Skip to content

ChalesYu/buildroot_platform_hardware_wifi_mtk_drivers_mt7603

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MT7603 with USB interface

driver version from include/os/rt_linux.h is JEDI.L0.MP1.mt7603u.v1.14

this repo will deprecated while mt76 driver support mt7603 with usb interface.

Support chip include

MT7601U , MT7603U .

mt7603u: driver version JEDI.L0.MP1.mt7603u.v1.14 at this branch.

mt7601u: driver version JEDI.MP1.mt7601u.v1.11 at this branch.

If you got kernel panic when loading this driver, force-reboot and give more try can have a better luck.

Please note, this driver based on old ralink vendor driver, unstable.Void Warry. May cause kernel panic when loading is known issue.

If you have usb wifi based on mt7603u and interest on this , feel free to test this driver , and let mt76 driver support mt7603u ASAP.

branch mt76-03-usb is based on mt76 driver clone from OpenWRT. But this branch didn't complete. Only have driver compiled, need real hardware to debug and fix.

How to use

install linux-header

more USB ID can be add to common/rtusb_dev_id.c

place mt7603_firmware/MT7603USTA.dat to /lib/firmware/MT7603USTA.dat

place mt7603_firmware/mt7603_e2.bin to /lib/firmware/mt7603_e2.bin

get firmware mt7603_e1.bin,mt7603_e2.bin from OpenWRT mt76 repo and place to /lib/firmware/mt7603_e1.bin and /lib/firmware/mt7603_e2.bin

git clone https://gitlab.com/ChalesYu/buildroot_platform_hardware_wifi_mtk_drivers_mt7603.git
cd buildroot_platform_hardware_wifi_mtk_drivers_mt7603/
git checkout pub-test-v20220304
make KSRC=/lib/modules/$(uname -r)/build -j2
sudo cp mt7603_firmware/MT7603USTA.dat /lib/firmware/
sudo cp mt7603_firmware/mt7603_e2.bin /lib/firmware/
sudo cp os/linux/mt7603usta.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/
sudo depmod -a
sudo modprobe mt7603usta

load compiled driver (for reference)

sudo modprobe cfg80211
sudo insmod os/linux/mt7603usta.ko mac=XX:XX:XX:XX:XX:XX

and , maybe also need

service  NetworkManager restart

Should Supported Hardware (NOT TEST)

ogemray GWF-1D07
ogemray GWF-1M02
comfast CF-WU825N V2
lb-link BL-WN620A(7603)
lb-link BL-M7603NU1
mercury MW300UM V4

Build for OpenWRT

use Makefile.backports as Makefile

after compile and load the mt7603usta.ko, the netifd script will not work in OpenWRT.

So, to start an AP, need to make a config file like hostapd.conf, then using hostapd command manually.

Test New USB Device ID

If a USB device is based on mt7603u and device id is 0E8D:0DDF .

After insmod mt7603usta.ko , need to :

echo 0E8D 0DDF > /sys/bus/usb/drivers/mt_drv/new_id

to make driver actually load and work.

Disable Dark Mode

This driver enabled Dark Mode as default.

A way to disabled it

sed -i '1s/#define/\/\/#define/g'  common/rtusb_dev_id.c

Or use a more easy way when compile

make KSRC=/lib/modules/$(uname -r)/build  DARK_MODE=NO

About

unoffical driver for linux ( Support mt7603u and mt7601u )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.9%
  • Makefile 1.6%
  • Roff 0.3%
  • Yacc 0.1%
  • Lex 0.1%
  • Visual Basic 6.0 0.0%