1 Star 0 Fork 0

咸鱼外传 / RTL88x2BU

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

REALTEK RTL88x2B USB Linux Driver

Current Driver Version: 5.13.1 Support Kernel: 2.6.24 ~ 5.18 (with unofficial patches)

Linux in-tree rtw8822bu driver is working in process, check this patchset.

Official release note please check ReleaseNotes.pdf

Note: if you believe your device is RTL8812BU or RTL8822BU but after loaded the module no NIC shows up, the device ID maybe not in the driver whitelist. In this case please submit a new issue with lsusb result, and your device name, brand, website, etc.

Linux 5.18+ and RTW88 Driver

Starting from Linux 5.18, some distributions have added experimental RTW88 USB support (include RTW88x2BU support). It is not yet stable but if it works well on your system, then you no longer need this driver. But if it doesn't work or is unstable, you need to manually blacklist it because it has a higher loading priority than this external drivers.

Check the currently loaded module using lsmod. If you see rtw88_core, rtw88_usb, or any name beginning with rtw88_ then you are using the RTW88 driver. If you see 88x2bu then you are using this RTW88x2BU driver.

To blacklist RTW88 8822bu USB driver, run the following command:

echo "blacklist rtw88_8822bu" > /etc/modprobe.d/rtw8822bu.conf

And reboot your system.

Supported Devices

ASUS
  • ASUS AC1300 USB-AC55 B1
  • ASUS U2
  • ASUS USB-AC53 Nano
  • ASUS USB-AC58
Dlink
  • Dlink - DWA-181
  • Dlink - DWA-182
  • Dlink - DWA-183 D Version
  • Dlink - DWA-185
Edimax
  • Edimax EW-7822ULC
  • Edimax EW-7822UTC
  • Edimax EW-7822UAD
NetGear
  • NetGear A6150
TP-Link
  • TP-Link Archer T3U
  • TP-Link Archer T3U Plus
  • TP-Link Archer T4U V3
  • TP-Link Archer T4U Plus
TRENDnet
  • TRENDnet TEW-808UBM
ZYXEL
  • ZYXEL NWD6602

And more.

How to use this kernel module

  • Ensure you have C compiler & toolchains, e.g. build-essential for Debian/Ubuntu, base-devel for Arch, etc.
  • Make sure you have installed the corresponding kernel headers
  • All commands need to be run in the driver directory
  • You need rebuild the kernel module everytime you update/change the kernel if you are not using DKMS

Manual installation

Clean

  • Make sure you cleaned old build files before builds new one
make clean

Building module for current running kernel

make

Building module for other kernels

make KSRC=/lib/modules/YOUR_KERNEL_VERSION/build

Installing

sudo make install

Uninstalling

sudo make uninstall

Manual DKMS installation

git clone "https://github.com/RinCat/RTL88x2BU-Linux-Driver.git" /usr/src/rtl88x2bu-git
sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
dkms add -m rtl88x2bu -v git
dkms autoinstall

USB 3.0 Support

You can try use modprobe 88x2bu rtw_switch_usb_mode=1 to force the adapter run under USB 3.0. But if your adapter/port/motherboard not support it, the driver will be in restart loop. Remove the parameter and reload the driver to restore. Alternatively, modprobe 88x2bu rtw_switch_usb_mode=2 let's it run as USB 2 device.

Notice: If you had already loaded the moduel, use modprobe -r 88x2bu to unload it first.

If you want to force a given mode permanently (even when switching the adapter across devices), create the file /etc/modprobe.d/99-RTL88x2BU.conf with the following content: options 88x2bu rtw_switch_usb_mode=1

Debug

Set debug log use echo 5 > /proc/net/rtl88x2bu/log_level or modprobe 88x2bu rtw_drv_log_level=5

Distribution

MIT License Copyright (c) 2024 咸鱼外传 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

liunx x86架构下的网卡驱动 展开 收起
C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/R-T-F-M/rtl88x2-bu.git
git@gitee.com:R-T-F-M/rtl88x2-bu.git
R-T-F-M
rtl88x2-bu
RTL88x2BU
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891