Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Building RTL8821CU module

Featured Replies

Hello everybody,

 

I'd like build the module for my usb dongle with rtl8821cu. Im using the 4.4.154 version on rk3328 tvboxes. I need the kernel sources. Is the a repo on github for this build? Thanks and excuse me for my English

2 minutes ago, linoma said:

I need the kernel sources.

 

If you are using officially supported armbian, all you need to do is:

armbian-config -> software:
 

image.png
 

If you don't have official Armbian, you will need to do some research ...

 

Best way - adding https://github.com/brektrou/rtl8821CU here https://github.com/armbian/build/blob/master/lib/compilation-prepare.sh#L126-L249

  • Author

I have same problems during the installation with armbian-config. Anyway I have downloaded the kernel source, Renegade option in compile.sh, and Im using insmod and the 8821cu.ko is loaded. But the kernel freeze with nulla pointer in rtw_os_ndev_register. May Be there Is a bug in halmac routines. Iam already using the driver on x86 Ubuntu 1604 and It works well. Im using old version 4.4.154 on rk3228

22 hours ago, linoma said:

I have same problems during the installation with armbian-config. Anyway I have downloaded the kernel source, Renegade option in compile.sh, and Im using insmod and the 8821cu.ko is loaded. But the kernel freeze with nulla pointer in rtw_os_ndev_register. May Be there Is a bug in halmac routines.


Build image and try:
https://github.com/armbian/build/pull/1690

I don't have this hardware but it doesn't crash on loading:
 

[  119.107213] RTW: module init start
[  119.107222] RTW: rtl8821cu v5.4.1_28754.20180921_COEX20180712-3232
[  119.107225] RTW: build time: Dec 23 2019 21:19:20
[  119.107228] RTW: rtl8821cu BT-Coex version = COEX20180712-3232
[  119.107378] usbcore: registered new interface driver rtl8821cu
[  119.107382] RTW: module init ret=0

Running on Olimex Lime A64 http://ix.io/25kb

  • Author

Yes the module is ready. But as soon as the usb is ready it freezes. There are many problems in rtl8821c_read_efuse function. Im just detecting the problem, maybe there is a problem with country code. 

I started using armbian yesterday, I am really having fun. So I share my driver experience for rtl8821CU...

 

To get my CUDY  WU650   to work, I had to download   rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141.tar.gz

from the Cudy support page ( www.cudy.com/download ).  I followed their documentation, but got errors: No such file or directory for /lib/modules/5.10.21-meson64/build.

 

So I installed the kernel headers (linux-headers-current-meson64_21.02.3_arm64.deb)  and

dtb ( not sure if that is needed - linux-dtb-current-meson64)   using synaptic.

 

The make script from cudy  tries to use   arch/aarch64/Makefile, but fails:      No rule to make target 'arch/aarch64/Makefile'.  Stop.

 

So I copied   /lib/modules/5.10.21-meson64/build/arch/arm64  to  /lib/modules/5.10.21-meson64/build/arch/aarch64.

 

sudo make

sudo make install

sudo modprobe -r 8821cu

 

then worked  perfectly...

 

pls enjoy...  

   cic_as

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.