Skip to content

Instantly share code, notes, and snippets.

@r15ch13
Last active August 25, 2023 11:34
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save r15ch13/78bc30d8dfb7c6ad0066e8627200265a to your computer and use it in GitHub Desktop.
Save r15ch13/78bc30d8dfb7c6ad0066e8627200265a to your computer and use it in GitHub Desktop.
Compile and install rtl8822bu for Raspberry Pi

Compiling rtl8822bu for Raspberry Pi

A small How-to for compiling the rtl8822bu wifi drivers on a Raspberry Pi.

Tested with the EDIMAX EW-7822UTC AC1200

Requirements

sudo apt install raspberrypi-kernel-headers

Get the code

cd ~
git clone https://github.com/EntropicEffect/rtl8822bu --depth 1
cd rtl8822bu

Compiling

Change architecture because uname -m return armv7l instead of arm

nano Makefile

Go to line ~1100 right after ifeq ($(CONFIG_PLATFORM_I386_PC) and change the following:

# change
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
# to
SUBARCH := arm
make -j`nproc`

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