Skip to content

Instantly share code, notes, and snippets.

@smac89
Last active May 22, 2023 06:52
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save smac89/6101a814e44562e0420712731f386438 to your computer and use it in GitHub Desktop.
Save smac89/6101a814e44562e0420712731f386438 to your computer and use it in GitHub Desktop.
BrosTrend wireless card adapter (Linux installation) #wireless

Content

  1. Installation
  2. Disable built-in wireless card
  3. Remove the driver
  4. Note
  5. Alternative installation

First to install the driver (Taken from rtl8812au):

sudo apt install build-essential git dkms rtl8812au-dkms
# git clone https://github.com/gnab/rtl8812au.git
git clone https://github.com/lwfinger/rtl8812au
cd rtl8812au
make
sudo make install

# load the module
sudo modprobe 8812au

# Add the module to dkms so that it is rebuilt and installed when the kernel updates
make clean
sudo mkdir -p /usr/src/8812au-4.2.2/
sudo cp -r . /usr/src/8812au-4.2.2/
sudo dkms add -m 8812au -v 4.2.2
sudo dkms build -m 8812au -v 4.2.2
sudo dkms install -m 8812au -v 4.2.2

# Restart network manager
sudo service network-manager restart

You might want to disable your built in card, so this is what you do:

Add the following line to /etc/network/interfaces:

iface wlan0 inet manual

NetworManager doesn't manage interfaces configured in the interfaces file. Replace wlan0 with the interface you want to disable, if it's not the name of the built-in interface.

Then restart network manager

sudo service network-manager restart

Honestly, I recommend disabling it from your BIOS. Gives a much cleaner feel overall.

To remove the driver

sudo modprobe -r 8812au
sudo make uninstall
sudo dkms remove -m 8812au -v 4.2.2 --all

...Completely

sudo apt remove --purge rtl8812au-dkms

Note

The reason why this works at all is because of a dkms.conf file in the folder. Mine looks like this:

PACKAGE_NAME=8812au
PACKAGE_VERSION=4.2.2

DEST_MODULE_LOCATION=/kernel/drivers/net/wireless
BUILT_MODULE_NAME=8812au

MAKE="'make'  all"
CLEAN="'make' clean"
AUTOINSTALL="yes"

Alternative installtion

Try this as another option for installing this driver


Hopefully, that should get you up and running. If not, Google is your friend 😃

@smac89
Copy link
Author

smac89 commented Jul 14, 2017

Check out these other drivers if the above is not working for you:

I recently updated my kernel to version 4.10 and the above does not work anymore, so this is the one I recommend now because it even works for kernel versions below 4.0

@ElectricRCAircraftGuy
Copy link

ElectricRCAircraftGuy commented Mar 8, 2021

See also my repo here for the BrosTrend Wifi adapter: https://github.com/ElectricRCAircraftGuy/BrosTrendWifiAdapterSoftware
One command to install the driver:

sh -c 'busybox wget deb.trendtechcn.com/install -O /tmp/install && sh /tmp/install'

@AlejandroAkbal
Copy link

There is an official website with an installation script for most distributions.

It is working for the following models

  • AC1L model
  • AC3L model
  • AC5L model

https://deb.trendtechcn.com/

@CEMoreno
Copy link

How is this driver supported for Ubuntu Arch64?
The reason I'm asking is because I am building but getting tons of warnings related to variable sizes and frame lengths. Might be nothing but just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment