本帖最後由 张无忌 於 2025-5-16 22:58 編輯
MediaTek MT7612U + OpenWrt 24.10.1
GRiS GE-LW09-4611AC USB 1200Mbps无线网卡内置MediaTek MT7612U,在OpenWrt有适当的内核kmod-mt76x2u。但是使用有点麻烦,主要是它当点亮是系统识别它是一个USB Mass Storage device,这个device要eject,但是怎样eject?都是个问题。
[1,2]说明不同牌子,包括GRiS。[3]@progandy说"You probably need an usb_modeswitch rule to eject the cd drive and show the "0e8d:7612" Wi-Fi interface.",在[4,5]都提及过usb_modeswitch。
[6] Two Wi-Fi adapters ComFast CF-926AC V2 and ComFast CF-953AX,在CF-926AC V2在Raspberry Pi 4B On RaspiOS Lite (64bits)是可以detected到,在"openwrt-22.03.2-bcm27xx-bcm2711-rpi-4-squashfs-factory.img.gz"都显示有"Bus 001 Device 003: ID 0e8d:2870"error。
In [7] In OpenWrt 19.07, the author installed kmod-mt76x2u for Comfast CF-926AC. It is USB 3.0 dual-band 2T2R Wi-Fi dongle with chipset Mediatek MT7612U is detected as mass storage device. "USB Mass Storage device detected" was first detected and ejected it became "USB disconnect", then "New USB device found, idVendor=0e8d, idProduct=7612"。@ghost mentioned "usb-modeswitch".
In [8] @fakemanhk showed three resistors to be removed, from USB drive to USB Wi-Fi. In [9] it gives a lot of information on USB Wi-Fi。In [10], @fakemanhk stopped using usb-modeswitch and applied the removal-three-resistor method to make USB Wi-Fi to the single state. 在[11] OpenWrt说明USB mode switch的使用。
经过上面资料收集,MT7612U在OpenWrt开机就到"USB Mass Storage device",显示"0e8d:2870";USB Wi-Fi adapter MT7612U先拔出,然后再插入便得到"0e8d:7612",下面说出怎样等到及加上其他firmware。
一开始OpenWrt 24.10.1要有lsusb:- opkg update
- opkg install usbutils
複製代碼 安装后usbutils,我们便有lsusb,去检查有什么usb device。- root@OpenWrt:~# lsusb
- Bus 002 Device 004: ID 0e8d:2870 Љ Љ
複製代碼 说明是USB drive,不是USB Wi-Fi。
下面是怎样我USB driver变换USB Wi-Fi。- opkg install usb-modeswitch
複製代碼 我们把USB Wi-Fi adapter拔出来,然后再插回去- root@OpenWrt:~# lsusb
- Bus 003 Device 002: ID 0e8d:7612 MediaTek Inc. 802.11ac WLAN
複製代碼 现在系统识别MediaTek Inc. 802.11ac WLAN,下一步就安装其他软件- opkg install kmod-mt76x2u
- opkg install wpad-openssl
複製代碼 一定要在GUI reboot,才有GUI "System"->"Wireless"。
为了方便日后操作,我们理由OpenWrt firmware,放进一起,成为新的firmware。Add modules to the firmware pulse WireGuard and AdGuared Home to form the final firmware.- usbutils usb-modeswitch kmod-mt76x2u wpad-openssl luci-proto-wireguard adguardhome
複製代碼
R3S + USB Wi-Fi adapter内置MediaTek MT7612U + OpenWrt
结论:
1、使用时要Wireless要disable and enable一次。
2、现在要reset reboot,USB Wi-Fi adapter又重回USB drive,要重复unplug and plug才能回复USB wireless,怎样多研究。
3、ImmortalWrt测试过都是一样的。
References:
[1] Windows下使用USB网卡抓WiFi报文/空口抓包(虚拟机+Wireshark抓包)
[2] Windows下捕获6GHz/WiFi7无线报文(自制程序+mt7921au网卡WiFi6E)
[3] [SOLVED]mt76x2u driver does not work properly
[4] COMFAST CF-WU782AC USB adapter linux support
[5] 联发科MediaTek WIFI适配 遇到的问题与解决
[6] ComFast CF-926AC V2 with OpenWRT #144
[7] Comfast CF-926AC does not change its USB ID #393
[8] Comfast CF-926AC does not change its USB ID #393
[9] USB-WiFi main menu
[10] Another two COMFAST MT7612U adaptors #403
[11] USB mode switch |