# rtl88x2bu **Repository Path**: lxztyf/rtl88x2bu ## Basic Information - **Project Name**: rtl88x2bu - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: 5.6.1.6_35492.20191025_COEX20180928-6a6a - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-13 - **Last Updated**: 2022-02-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Administrative Note As of upstream version 5.6.1, I'm moving away from individual repositories for each upstream version in favor of a single repository with version-based branches. Hopefully, this will help with clutter and URL consistency moving forward. The archived repositories are available here: * [rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959](https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959) * [rtl88x2BU_WiFi_linux_v5.2.4.4_26334.20180126_COEX20171012-5044](https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.2.4.4_26334.20180126_COEX20171012-5044) * [rtl88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044](https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044) * [rtl88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613](https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613) # Driver for rtl88x2bu wifi adaptors Updated driver for rtl88x2bu wifi adaptors based on Realtek's source distributed with myriad adapters. Realtek's 5.6.1.6 source was found bundled with the [Cudy WU1200 AC1200 High Gain USB Wi-Fi Adapter](https://amzn.to/351ADVq) and can be downloaded from [Cudy's website](http://www.cudytech.com/wu1200_software_download). Build confirmed on: ``` Linux version 5.4.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 9.2.1 20200203 (Debian 9.2.1-28)) #1 SMP Debian 5.4.19-1 (2020-02-13) ``` ## Using and Installing the Driver ### Simple Usage In order to make direct use of the driver it should suffice to build the driver with `make` and to load it with `insmod 88x2bu.ko`. This will allow you to use the driver directly without changing your system persistently. It might happen that your system freezes instantaneously. Ensure to not loose important work by saving and such beforehand. ### DKMS installation If you want to have the driver available at startup, it will be convenient to register it in DKMS. An executable explanation of how to do so can be found in the script `deploy.sh`. Since registering a kernel module in DKMS is a major intervention, only execute it if you understand what the script does. ### Known Problems Some users reported problems due to `Unkown symbol in module`. This can be caused by old deployments of the driver still being present in the systems directories. One solution reported was to forcefully remove all old driver modules: sudo dkms remove rtl88x2bu/5.8.7.4 --all find /lib/modules -name cfg80211.ko -ls sudo rm -f /lib/modules/*/updates/net/wireless/cfg80211.ko This can also be caused by cfg80211 module not being present in the kernel. You can remedy this by running: sudo modprobe cfg80211 ## Raspberry Pi Access Point ```bash # Update all packages per normal sudo apt update sudo apt upgrade # Install prereqs sudo apt install git dnsmasq hostapd bc build-essential dkms raspberrypi-kernel-headers # Reboot just in case there were any kernel updates sudo reboot # Pull down the driver source git clone https://github.com/cilynx/rtl88x2bu cd rtl88x2bu/ # Configure for RasPi sed -i 's/I386_PC = y/I386_PC = n/' Makefile sed -i 's/ARM_RPI = n/ARM_RPI = y/' Makefile # DKMS as above VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} sudo dkms add -m rtl88x2bu -v ${VER} sudo dkms build -m rtl88x2bu -v ${VER} # Takes ~3-minutes on a 3B+ sudo dkms install -m rtl88x2bu -v ${VER} # Plug in your adapter then confirm your new interface name ip addr # Set a static IP for the new interface (adjust if you have a different interface name or preferred IP) sudo tee -a /etc/dhcpcd.conf <" Mode:Master Frequency:5.18 GHz Access Point: 74:EE:2A:E2:40:62 Bit Rate:144.4 Mb/s Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=-100 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 ``` If you want to setup masquerading or bridging, check out [the official Raspberry Pi docs](https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md).