本帖最後由 张无忌 於 2025-4-29 00:39 編輯

回覆 10# fakeman

终于我买了GRiS GE-LW09-4611AC USB无线网卡1200Mbps,是内置MediaTek MT7612U,R3S用iStoreOS能识别Wi-Fi 5 AC 5GHz能有400Mbps,Wi-Fi 4 N 2.4GHz能有70Mbps;但是在official OpenWrt在R3S不能识别MediaTek MT7612U,在"下载适用于您设备的 OpenWrt 固件",点击"自定义预安装软件包"加了"kmod-mt76x2u",重新rebuilt firmware,再放进R3S里,都不能识别MediaTek MT7612U,不知道fakeman兄有何解救?

下面是MediaTek MT7612U的截图。

图一:是第一USB Wi-Fi插入
wi-fi1.PNG
2025-4-26 22:59


图二:用iStoreOS reboot就正常
wi-fi2.PNG
2025-4-26 22:59


图三:Single band 5GHz
wi-fi3.PNG
2025-4-26 23:00


图四:Dual band 5GHz and 2.4GHz,不能同时,只可以点单个
wi-fi4.PNG
2025-4-26 23:00

TOP

回覆  fakeman

终于我买了GRIS USB无线网卡1300Mbps,是内置MediaTek MT7612U,R3S用iStoreOS能识别Wi-Fi ...
张无忌 發表於 2025-4-26 23:09



    要睇 log file 先有得估喎,你插入支 USB WiFi 時 OpenWrt syslog 有乜?你有冇改 /etc/config/wireless?

另外,2.4GHz 同 5GHz 不能同時使用係正常,因為唔會有 USB WiFi 可以做到的

TOP

本帖最後由 张无忌 於 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:
  1. opkg update
  2. opkg install usbutils
複製代碼
安装后usbutils,我们便有lsusb,去检查有什么usb device。
  1. root@OpenWrt:~# lsusb
  2. Bus 002 Device 004: ID 0e8d:2870 Љ Љ
複製代碼
说明是USB drive,不是USB Wi-Fi。

下面是怎样我USB driver变换USB Wi-Fi。
  1. opkg install usb-modeswitch
複製代碼
我们把USB Wi-Fi adapter拔出来,然后再插回去
  1. root@OpenWrt:~# lsusb
  2. Bus 003 Device 002: ID 0e8d:7612 MediaTek Inc. 802.11ac WLAN
複製代碼
现在系统识别MediaTek Inc. 802.11ac WLAN,下一步就安装其他软件
  1. opkg install kmod-mt76x2u
  2. 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.
  1. usbutils usb-modeswitch kmod-mt76x2u wpad-openssl luci-proto-wireguard adguardhome
複製代碼
firmware.PNG
2025-4-29 10:22


R3S + USB Wi-Fi adapter内置MediaTek MT7612U + OpenWrt
wifi1.PNG
2025-4-29 10:22


结论:
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

TOP

本帖最後由 张无忌 於 2025-4-29 13:29 編輯

回覆 12# fakeman

你把USB Wi-Fi adapter打出PCB,removed three resistors,把multi states变做single state的USB Wi-Fi state,那么USB Wi-Fi adapter不会误判为USB drive。

而我想有什么方法不改动PCB(除去three resistors)?

因为你有不同的Wi-Fi 5、6、6E和7,有哪一种只有single state,不会像MT7612U有multi-state的USB Wi-Fi adapter?

TOP

回覆  fakeman

你把USB Wi-Fi adapter打出PCB,removed three resistors,把multi states变做single stat ...
张无忌 發表於 2025-4-29 12:09



    硬改一定最好,有傳聞話用 delayed start usb_modswitch 會有幫助但我唔知(因為硬改後無嘢可以試)

Multi-state 與否同 chipset 無關,係廠商自己決定(我 4 個 MT7612U 有 2 隻係 single state),所以只能夠賭下

TOP

谢谢你的回复。

1. 我会从你的思路在找找"delayed start usb_modswitch"。

2. 你说有"4 個 MT7612U 有 2 隻係 single state",请你说明哪里两个呢?请你说明一下。

3. 估计你有USB  Wi-Fi 6有什么牌子?

TOP

谢谢你的回复。

1. 我会从你的思路在找找"delayed start usb_modswitch"。

2. 你说有"4 個 MT7612U 有 2  ...
张无忌 發表於 2025-4-30 08:29



    我有一隻係淘寶嘅 MT7612U(冇牌子,只得 USB 2.0),一隻係新高登路過 2 樓見到嘅 Pix Link LV-UAC04(而家賣 $99,USB3.0 訊號強),兩者都係 Single state

另外比較出名而又 Single state Alfa Network 旗下嘅 MT7612U 都 work,同埋 Netgear A6210
美馬好多 Panda 牌子嘅 Mediatek USB 都係一樣但淘寶唔覺有

WiFi 6 我自己有 COMFAST CF-953AX 都係 single-state,呢個係 MT7921AU 所以實際上係有 6GHz 嘅!!!(但係而家要等 OpenWrt 有新嘅 hostapd 先可以用到)

TOP