whitebatman2 / rtl8821CU

Realtek 802.11ac USB WLAN driver
GNU General Public License v2.0
310 stars 178 forks source link

PI4 Buster unrecognized command line option ‘-mgeneral-regs-only’ #38

Open username7291 opened 4 years ago

username7291 commented 4 years ago

This dont compile out of the box with Raspbian Buster. unrecognized command line option ‘-mgeneral-regs-only’ Aircrack 8812au driver(pretty same stuff but dont work with CU device) manual say do this on PI4: $ sed -i 's/^dkms build/ARCH=arm dkms build/' dkms-install.sh $ sed -i 's/^MAKE="/MAKE="ARCH=arm\ /' dkms.conf But still need "make ARCH=arm" to build the driver.

Monitor Mode is broken in this driver (iw says unsupported, iwconfig wlan0 mode monitor freeze the whole PI).

Dont testet if it work in managed mode.

rogerlucas-veea commented 4 years ago

I encountered the same problem... the issue is with CONFIG_PLATFORM_ARM_RPI3 selecting arm64.

If you're running your Raspberry Pi 3 in 32-bit mode rather than 64-bit mode, you need to configure:

CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ARM_RPI = y CONFIG_PLATFORM_ARM_RPI3 = n

I've tested this on my Raspberry Pi 3 model B v1.2 and the driver compiles and runs as expected.