brektrou / rtl8821CU

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

New driver version 5.8.1 #30

Open brektrou opened 4 years ago

brektrou commented 4 years ago

I got this driver from here

Clone the driver: git clone -b 5.8.1 https://github.com/brektrou/rtl8821CU.git rtl8821CU-5.8.1

Build & install with make: cd rtl8821CU-5.8.1 make sudo make install

Or build & install with dkms: sudo cp -rvf rtl8821CU-5.8.1 /usr/src sudo dkms add rtl8821CU/5.8.1 sudo dkms install rtl8821CU/5.8.1 -k $(uname -r)

Driver info & changelog

Commits

birdofprey commented 4 years ago

its so big 牛逼

kylroma commented 4 years ago

Thank you! I've installed the driver in manjaro. I couldn't do this with the driver version 5.4.1.

igorferret commented 4 years ago

hi.... it works fine to navigate, but i cant packet injection.... packet injection not works.... can you help me?

I got this driver from here

Clone the driver: git clone -b 5.8.1 https://github.com/brektrou/rtl8821CU.git rtl8821CU-5.8.1

Build & install with make: cd rtl8821CU-5.8.1 make sudo make install

Or build & install with dkms: sudo cp -rvf rtl8821CU-5.8.1 /usr/src sudo dkms add rtl8821CU/5.8.1 sudo dkms install rtl8821CU/5.8.1 -k $(uname -r)

Driver info & changelog

Sirojio commented 4 years ago

I have this problem:

sudo dkms install rtl8821CU/5.8.1 -k $(uname -r)

Kernel preparation unnecessary for this kernel. Skipping...

Building module: cleaning build area... 'make' KVER=5.7.0-kali1-amd64....(bad exit status: 2) Error! Bad return status for module build on kernel: 5.7.0-kali1-amd64 (x86_64) Consult /var/lib/dkms/rtl8821CU/5.8.1/build/make.log for more information.

Kali on VirtualBox root@kali:~# grep VERSION /etc/os-release VERSION="2020.3" VERSION_ID="2020.3" VERSION_CODENAME="kali-rolling" root@kali:~# uname -v

1 SMP Debian 5.7.6-1kali2 (2020-07-01)

root@kali:~# uname -r 5.7.0-kali1-amd64

How can I decide this problem?

Sirojio commented 4 years ago

I got this driver from here Clone the driver: git clone -b 5.8.1 https://github.com/brektrou/rtl8821CU.git rtl8821CU-5.8.1 Build & install with make: cd rtl8821CU-5.8.1 make sudo make install Or build & install with dkms: sudo cp -rvf rtl8821CU-5.8.1 /usr/src sudo dkms add rtl8821CU/5.8.1 sudo dkms install rtl8821CU/5.8.1 -k $(uname -r) Driver info & changelog

Could you help?

devbharat commented 4 years ago

Hey! Does the driver+firmware+module support packet injection? I can get the monitor mode to work, but I can't seem to inject packets.

OfflineLubuntu commented 3 years ago

I'm a bit new to cloning stuff like git (I tried before with 8821au as a premade ZIP but that was wrong since mine is C not A) so I'm going to try and do that with GitHub desktop since my only internet connection is with windows and the whole point of doing the DWA-171 is to get internet on my lubuntu 32bit =/

once I copy and paste the folder (guess never zipped but it's small so who cares) then I guess I can follow steps from there, I hope...

luckylittle commented 3 years ago

@brektrou I am unable to compile it. Below are the details:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-240.1.1.el8_3.x86_64/build M=/home/USER/Downloads/WiFi/rtl8821CU-5.8.1  modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64'
  CC [M]  /home/USER/Downloads/WiFi/rtl8821CU-5.8.1/os_dep/linux/rtw_android.o
/home/USER/Downloads/WiFi/rtl8821CU-5.8.1/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/home/USER/Downloads/WiFi/rtl8821CU-5.8.1/os_dep/linux/rtw_android.c:669:62: error: macro "access_ok" passed 3 arguments, but takes just 2
  if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
                                                              ^
/home/USER/Downloads/WiFi/rtl8821CU-5.8.1/os_dep/linux/rtw_android.c:669:7: error: ‘access_ok’ undeclared (first use in this function)
  if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
       ^~~~~~~~~
/home/USER/Downloads/WiFi/rtl8821CU-5.8.1/os_dep/linux/rtw_android.c:669:7: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:316: /home/USER/Downloads/WiFi/rtl8821CU-5.8.1/os_dep/linux/rtw_android.o] Error 1
make[1]: *** [Makefile:1544: _module_/home/USER/Downloads/WiFi/rtl8821CU-5.8.1] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64'
make: *** [Makefile:2327: modules] Error 2

UPDATE: I was able to fix that on the line #666: From: #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)) To: #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0))

keil555 commented 3 years ago

It works! Thanks!

J-Rojas commented 2 years ago

I'm getting this error with kernel 5.13

rtl8821CU-5.8.1/os_dep/linux/recv_linux.c:358:55: error: ‘GRO_DROP’ undeclared (first use in this function)
  358 |    if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                       ^~~~~~~~
iamhere2 commented 2 years ago

@J-Rojas Have the same problem. Found appropriate patch here: https://github.com/RinCat/RTL88x2BU-Linux-Driver/issues/81

And for the next compilation problem: https://github.com/gordboy/rtl8812au-5.9.3.2/issues/10

And it now works!! :)

mozeus14 commented 2 years ago

Building module: cleaning build area... 'make' KVER=5.18.0-kali5-amd64.........................(bad exit status: 2) Error! Bad return status for module build on kernel: 5.18.0-kali5-amd64 (x86_64) Consult /var/lib/dkms/rtl8821CU/5.8.1/build/make.log for more information.