Openwrt 驱动 usb 网卡

  • OpenWrt 下 QCA9880 使用.

  • 参考资料

    https://forum.openwrt.org/t/rtl8812au-and-or-rtl8814au-drivers/67/158

  • 更新

    1
    20.08.15 初始

导语

手头还有俩 usb 的无线网卡,rtl-8812au 和 rt3070.折腾 qca9880 顺道也研究下 usb 网卡使用.

编译

基础的编译等就不提了.

添加 Usb 支持

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 添加USB相关支持

Kernel modules -> USB Support ->

kmod-usb-core
kmod-usb-ohci
kmod-usb-storage
kmod-usb-storage-extras
kmod-usb-uhci
kmod-usb-wdm # usb 无线网卡支持
kmod-usb2
kmod-usb2-pci
kmod-usb3

# scsi 支持
Kernel modules -> Block Device -> kmod-scsi-core

# 添加USB挂载
Base system —> <*>block-mount

# 添加自动挂载工具
Utilities —> Filesystem —> <*> badblocks

Rt3070

1
2
3
4
Kernel modules -> Wireless Drivers
kmod-rt2800-pci
kmod-rt2800-soc
kmod-rt2800-usb

rtl-8812au

1
2
3
4
5
6
7
8
9
10
11
12
13
# rtl8812au
Kernel modules -> Wireless Drivers

kmod-rtl8812au-ct

# 或 8812au-ac
wget https://github.com/1Jeff1/openwrt/commit/af426db0e78c3880a6bfe26fa97ae03caccce783.patch
# op 根目录
patch -p 1 -i af426db0e78c3880a6bfe26fa97ae03caccce783.patch

Kernel modules -> Wireless Drivers

kmod-rtl8812au-ac

补充:

  • ct 和 ac 的驱动我都试了,开 ap 没有问题,但是作为客户端一直重启.但是这个硬件在 win/linux 下直接驱动是没问题的.
  • 翻开 openwrt 的论坛,发现也有人遇到相同的问题,大概率是手头的硬件版本和这俩驱动不适配.
  • gordboy 这是翻看论坛说是能用的版本,但是没啥时间搬到 openwrt.

测试

装完 usb 的一堆加上驱动,基本可以热插拔,就是 rtl8812-au 有点遗憾,还需要再换个网卡.