brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.58k stars 458 forks source link

[Solution] How to build on raspberry pi. #184

Open zoldaten opened 1 year ago

zoldaten commented 1 year ago

as i crashed many times with fail in kernel-headers here is the solution how to fix it:

sudo apt-get update
sudo apt-get install dkms
sudo apt-get update && sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel
sudo apt-get install raspberrypi-kernel-headers
reboot
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
sudo ./dkms-install.sh

work on rasberry pi arm7l.

have a nice day!

Sofronio commented 1 year ago

It works! Thanks!

matuzalemmuller commented 1 year ago

You, sir, are a gentleman and a scholar. Confirmed working on Rasp 3B+.

bdwilson commented 1 year ago

don't forget apt-get install bc

jdfin commented 1 year ago

This works on pi zero 2 w, with fresh bullseye image (2/7/2023); the only header-related problem I had was when I tried building after the full-upgrade but before rebooting (headers did not match old still-running kernel). I'm sure other variations work too, like maybe that last shutdown/boot is not needed.

$ sudo apt update
$ sudo apt full-upgrade

(reboot)

$ uname -a
Linux raspberrypi 5.15.84-v7+ #1613 SMP Thu Jan 5 11:59:48 GMT 2023 armv7l GNU/Linux
$ sudo apt install bc git
$ git clone https://github.com/brektrou/rtl8821CU.git
$ sudo apt install dkms
$ cd rtl8821CU/
$ sudo ./dkms-install.sh

(shutdown, plug in adapter, boot) ifconfig shows wlan1 in addition to wlan0

actraiser30 commented 1 year ago

Hi its not working in my raspberry pi 2 in latest raspbian bullseye