Closed SeiV-K closed 2 weeks ago
Did you upgrade your compiler to GCC-14?
I don't think it's a kernel issue, but rather a compiling issue. GCC14 probably broke it.
Did you upgrade your compiler to GCC-14?
I don't think it's a kernel issue, but rather a compiling issue. GCC14 probably broke it.
might be. However also using the "all-in-one" apt install realtek-rtl88xxau-dkms instead of manually compiling dkms and the driver with make also fails at this stage
kernel 6.8 issue ![Uploading 微信图片_20240613193635.png…]()
gcc 13.2.0-15
[ 712.442095] 88XXau: loading out-of-tree module taints kernel.
[ 712.442145] 88XXau: module verification failed: signature and/or required key missing - tainting kernel
[ 712.556108] ------------[ cut here ]------------
[ 712.556115] WARNING: CPU: 0 PID: 14198 at /var/lib/dkms/realtek-rtl88xxau/5.6.4.2~git20240510.b44d288/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x44/0x70 [88XXau]
[ 712.556198] Modules linked in: 88XXau(OE+) cfg80211 snd_seq_dummy snd_hrtimer snd_seq snd_seq_device rfkill qrtr snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm vboxsf intel_rapl_msr intel_rapl_common snd_timer snd vboxguest joydev pcspkr soundcore ac evdev sg serio_raw sunrpc binfmt_misc efi_pstore loop dm_mod configfs nfnetlink ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid sd_mod t10_pi sr_mod cdrom crc64_rocksoft_generic crc64_rocksoft crc_t10dif crct10dif_generic crc32_pclmul crct10dif_pclmul crc64 ata_generic crct10dif_common crc32c_intel ahci vmwgfx ata_piix libahci drm_ttm_helper ttm ghash_clmulni_intel drm_kms_helper ohci_pci ehci_pci sha512_ssse3 ohci_hcd libata ehci_hcd sha512_generic sha256_ssse3 scsi_mod usbcore drm sha1_ssse3 video e1000 psmouse i2c_piix4 usb_common wmi scsi_common button aesni_intel crypto_simd cryptd
[ 712.556341] CPU: 0 PID: 14198 Comm: (udev-worker) Tainted: G OE 6.8.11-amd64 #1 Kali 6.8.11-1kali2
[ 712.556346] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 712.556349] RIP: 0010:rtw_odm_init_ic_type+0x44/0x70 [88XXau]
[ 712.556485] Code: 3e 00 00 80 fa 0e 76 17 8b 15 a4 d1 1a 00 85 d2 74 18 be 04 00 00 00 48 89 c7 e9 67 af 07 00 8b 14 95 70 2a 06 c1 85 d2 75 e8 <0f> 0b be 04 00 00 00 48 89 c7 e9 4d af 07 00 66 66 2e 0f 1f 84 00
[ 712.556488] RSP: 0018:ffffb081c4b9f9d8 EFLAGS: 00010246
[ 712.556493] RAX: ffffb081c0f9aed0 RBX: ffffb081c0048000 RCX: 0000000000000002
[ 712.556496] RDX: 0000000000000000 RSI: ffffffffc107301b RDI: ffffb081c0048000
[ 712.556499] RBP: ffff8f135b06f000 R08: 00
install Alfa AWUS036ACH (RTL8812AU) drivers on Kali Linux 2024.2 "morrownr/8812au" Drivers fix Monitor mode and Deauth problems on Kali Linux 2024 Commands:
sudo apt update && sudo apt upgrade
sudo apt install -y linux-headers-$(uname -r) build-essential bc dkms git libelf-dev rfkill iw mkdir -p ~/src
cd ~/src
git clone [https://github.com/morrownr/8812au-20...
sudo ./install-driver.sh
If you've installed the headers as blindows7 has suggested and it still doesn't work then try the manual install using the following:
CFLAGS="$CFLAGS $(INCLUDE)-D_GNU_SOURCE -Wno-error=return-mismatch -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-pointer-types" make
(the above ALL one line)
sudo make dkms_install
Providing the dkms build logs with be helpful too.
install Alfa AWUS036ACH (RTL8812AU) drivers on Kali Linux 2024.2 "morrownr/8812au" Drivers fix Monitor mode and Deauth problems on Kali Linux 2024 Commands:
sudo apt update && sudo apt upgrade
sudo apt install -y linux-headers-$(uname -r) build-essential bc dkms git libelf-dev rfkill iw mkdir -p ~/src
cd ~/src
git clone [https://github.com/morrownr/8812au-20...
sudo ./install-driver.sh
the setup works fine and the mod is installed, but even with the driver loaded, the adapter is not recognized at all:
If you've installed the headers as blindows7 has suggested and it still doesn't work then try the manual install using the following:
CFLAGS="$CFLAGS $(INCLUDE)-D_GNU_SOURCE -Wno-error=return-mismatch -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-pointer-types" make
(the above ALL one line)
sudo make dkms_install
Providing the dkms build logs with be helpful too.
compilation is successful, dkms_install is successful, but the adapter is not operational : neither on managed nor on monitor modes. It is shown on the adapters' list but it can't do anything
tried everything from https://docs.alfa.com.tw/Support/Linux/RTL8811AU/
The device appears to be loaded all good, BUT it is not operational on ANY mode
What does your dkms status say?
Your driver should be 8821au, not 88XXau?
You should be using https://github.com/morrownr/8821au-20210708 (ALFA AWUS036ACS)
NOT https://github.com/morrownr/8812au-20210820? ALFA AWUS036ACH ,ALFA AWUS036AC, ALFA AWUS036EAC
if your wifi driver is correct you should see Nickname:"WIFI@RTL8821AU" not WIFI@REALTEK?
I compiled 8812 earlier and yes it DOES recognize my usb stick BUT does the same things you mentioned above.
Best of luck,
Cheers
dkms status
rtl8812au/5.13.6-23, 6.8.11-amd64, x86_64: installed
Verify Driver Installation: Ensure the driver is correctly installed and recognized by the system.
sudo dkms status
You should see something like:
8812au, 5.6.4.2_35491.20191025, 6.8.11-amd64, x86_64: installed
Check Kernel Modules: Verify that the correct kernel module is loaded.
lsmod | grep 8812au
If the module is not listed, try loading it manually:
sudo modprobe 8812au
Check dmesg Logs: Look at the kernel log to see if there are any errors related to the adapter.
dmesg | grep 8812au
Look for any errors or messages that might indicate what the problem is.
Network Manager Configuration: Ensure NetworkManager is not conflicting with the adapter. Sometimes, NetworkManager might need to be restarted or configured to recognize the new adapter.
sudo systemctl restart NetworkManager
Monitor Mode Setup: To set up monitor mode, you can use the following commands:
sudo ip link set wlan0 down
sudo iw dev wlan0 set type monitor
sudo ip link set wlan0 up
Replace wlan0
with your actual wireless interface name, which can be found using:
iwconfig
Managed Mode Setup: To set up managed mode, ensure the adapter is up and scanning for networks:
sudo ip link set wlan0 down
sudo iw dev wlan0 set type managed
sudo ip link set wlan0 up
sudo iwlist wlan0 scan
Blacklist Conflicting Drivers: Sometimes, other wireless drivers might conflict with the 8812au driver. Blacklist these drivers if necessary.
Create or edit the blacklist file:
sudo nano /etc/modprobe.d/blacklist.conf
Add the following lines:
blacklist rtl8xxxu
blacklist r8188eu
Save and close the file, then update the initial ramdisk:
sudo update-initramfs -u
Reboot the System: After performing these steps, reboot the system to ensure all changes take effect.
sudo reboot
If the adapter still does not work, consider these additional steps:
Update the Kernel: Sometimes, updating the kernel to the latest version can resolve compatibility issues.
Use a Different Driver Repository: Some users have success with alternative repositories for the same chipset. For example:
git clone https://github.com/gnab/rtl8812au.git
cd rtl8812au
sudo make clean
sudo make
sudo make dkms_install
If you've followed all these steps and the adapter is still not functioning, please provide any error messages or logs from dmesg
and iwconfig
, and I'll help you further troubleshoot the issue.
To uninstall all Wi-Fi drivers, including the drivers installed through DKMS, and then reinstall the correct driver for your ALFA AWUS036ACU (AC1200), follow these steps:
List DKMS Modules: Check the installed DKMS modules to identify which Wi-Fi drivers are installed.
sudo dkms status
Remove DKMS Modules:
For each Wi-Fi driver listed (e.g., 8812au, 8821au), remove it. Replace module_name
and module_version
with the appropriate values from the dkms status
output.
sudo dkms remove module_name/module_version --all
Example for 8812au:
sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all
Example for 8821au:
sudo dkms remove 8821au/5.6.4.2_35491.20191025 --all
Remove Module Files:
Remove any residual module files from /usr/src
.
sudo rm -rf /usr/src/8812au-*
sudo rm -rf /usr/src/8821au-*
Blacklist Conflicting Drivers: Ensure conflicting drivers are blacklisted.
sudo nano /etc/modprobe.d/blacklist.conf
Add the following lines to blacklist other drivers that might interfere:
blacklist rtl8xxxu
blacklist r8188eu
Save and close the file, then update the initial ramdisk:
sudo update-initramfs -u
Reboot the System: Reboot the system to apply changes.
sudo reboot
Prepare the System:
sudo apt-get update
sudo apt-get upgrade
Install Dependencies:
sudo apt-get install build-essential dkms git
Download the Correct Driver:
git clone https://github.com/morrownr/8821au-20210708
cd 8821au-20210708
Build and Install the Driver:
sudo ./install-driver.sh
Reboot the System:
sudo reboot
Verify Driver Installation: Ensure the driver is correctly installed and recognized by the system.
sudo dkms status
You should see something like:
8821au, 5.6.4.2_35491.20191025, 6.8.11-amd64, x86_64: installed
Check Kernel Modules: Verify that the correct kernel module is loaded.
lsmod | grep 8821au
If the module is not listed, try loading it manually:
sudo modprobe 8821au
Check dmesg Logs: Look at the kernel log to see if there are any errors related to the adapter.
dmesg | grep 8821au
Look for any errors or messages that might indicate what the problem is.
Network Manager Configuration: Ensure NetworkManager is not conflicting with the adapter. Sometimes, NetworkManager might need to be restarted or configured to recognize the new adapter.
sudo systemctl restart NetworkManager
Monitor Mode Setup: To set up monitor mode, you can use the following commands:
sudo ip link set wlan0 down
sudo iw dev wlan0 set type monitor
sudo ip link set wlan0 up
Replace wlan0
with your actual wireless interface name, which can be found using:
iwconfig
Managed Mode Setup: To set up managed mode, ensure the adapter is up and scanning for networks:
sudo ip link set wlan0 down
sudo iw dev wlan0 set type managed
sudo ip link set wlan0 up
sudo iwlist wlan0 scan
Reboot the System: After performing these steps, reboot the system to ensure all changes take effect.
sudo reboot
By following these updated steps with the correct driver, your ALFA AWUS036ACU (AC1200) adapter should be operational in both managed and monitor modes. If you encounter further issues, please provide any error messages or logs from dmesg
and iwconfig
, and I'll assist you accordingly.
Based on the output from dkms status
, it looks like you have the rtl8812au
module installed with version 5.13.6-23
. Let's proceed with the uninstallation and then reinstall the correct driver for the RTL8821AU chipset.
Remove the RTL8812AU DKMS Module:
sudo dkms remove rtl8812au/5.13.6-23 --all
Remove Module Files:
sudo rm -rf /usr/src/rtl8812au-5.13.6-23
Unload Kernel Modules: Ensure the driver module is not loaded. If it is loaded, unload it.
lsmod | grep 8812au
sudo rmmod 8812au
Blacklist Conflicting Drivers: Edit or create the blacklist configuration file to ensure conflicting drivers are blacklisted.
sudo nano /etc/modprobe.d/blacklist.conf
Add the following lines if they are not already present:
blacklist rtl8xxxu
blacklist r8188eu
Save and close the file, then update the initial ramdisk:
sudo update-initramfs -u
Reboot the System: Reboot the system to ensure all changes take effect.
sudo reboot
Prepare the System:
sudo apt-get update
sudo apt-get upgrade
Install Dependencies:
sudo apt-get install build-essential dkms git
Download the Correct Driver:
git clone https://github.com/morrownr/8821au-20210708
cd 8821au-20210708
Build and Install the Driver:
sudo ./install-driver.sh
Reboot the System:
sudo reboot
Verify Driver Installation: Ensure the driver is correctly installed and recognized by the system.
sudo dkms status
You should see something like:
8821au, 5.6.4.2_35491.20191025, 6.8.11-amd64, x86_64: installed
Check Kernel Modules: Verify that the correct kernel module is loaded.
lsmod | grep 8821au
If the module is not listed, try loading it manually:
sudo modprobe 8821au
Check dmesg Logs: Look at the kernel log to see if there are any errors related to the adapter.
dmesg | grep 8821au
Network Manager Configuration: Ensure NetworkManager is not conflicting with the adapter. Sometimes, NetworkManager might need to be restarted or configured to recognize the new adapter.
sudo systemctl restart NetworkManager
Monitor Mode Setup: To set up monitor mode, you can use the following commands:
sudo ip link set wlan0 down
sudo iw dev wlan0 set type monitor
sudo ip link set wlan0 up
Replace wlan0
with your actual wireless interface name, which can be found using:
iwconfig
Managed Mode Setup: To set up managed mode, ensure the adapter is up and scanning for networks:
sudo ip link set wlan0 down
sudo iw dev wlan0 set type managed
sudo ip link set wlan0 up
sudo iwlist wlan0 scan
Reboot the System: After performing these steps, reboot the system to ensure all changes take effect.
sudo reboot
By following these updated steps, your ALFA AWUS036ACU (AC1200) adapter should be operational in both managed and monitor modes. If you encounter further issues, please provide any error messages or logs from dmesg
and iwconfig
, and I'll assist you accordingly.
@bilindows7 thank you very much for the detailed support! I appreciate it!
The problem ended up being the usage of a compatible, yet not functional for this specific device, driver.
After installing 8821au everything is as smooth as you describe:
I am closing this issue with a huge thanks to all guys for the support! Great community!
Based on the output from
dkms status
, it looks like you have thertl8812au
module installed with version5.13.6-23
. Let's proceed with the uninstallation and then reinstall the correct driver for the RTL8821AU chipset.Uninstall the RTL8812AU Driver
1. **Remove the RTL8812AU DKMS Module:** ```shell sudo dkms remove rtl8812au/5.13.6-23 --all ``` 2. **Remove Module Files:** ```shell sudo rm -rf /usr/src/rtl8812au-5.13.6-23 ``` 3. **Unload Kernel Modules:** Ensure the driver module is not loaded. If it is loaded, unload it. ```shell lsmod | grep 8812au sudo rmmod 8812au ``` 4. **Blacklist Conflicting Drivers:** Edit or create the blacklist configuration file to ensure conflicting drivers are blacklisted. ```shell sudo nano /etc/modprobe.d/blacklist.conf ``` Add the following lines if they are not already present: ```shell blacklist rtl8xxxu blacklist r8188eu ``` Save and close the file, then update the initial ramdisk: ```shell sudo update-initramfs -u ``` 5. **Reboot the System:** Reboot the system to ensure all changes take effect. ```shell sudo reboot ```
Install the Correct Driver for ALFA AWUS036ACU (AC1200)
1. **Prepare the System:** * Ensure your system is up-to-date. ```shell sudo apt-get update sudo apt-get upgrade ``` 2. **Install Dependencies:** * Install necessary packages for building the driver. ```shell sudo apt-get install build-essential dkms git ``` 3. **Download the Correct Driver:** * Clone the driver repository from GitHub for the RTL8821AU chipset. ```shell git clone https://github.com/morrownr/8821au-20210708 cd 8821au-20210708 ``` 4. **Build and Install the Driver:** * Compile and install the driver using DKMS. ```shell sudo ./install-driver.sh ``` 5. **Reboot the System:** * Reboot your system to load the new driver. ```shell sudo reboot ```
Verification Steps
1. **Verify Driver Installation:** Ensure the driver is correctly installed and recognized by the system. ```shell sudo dkms status ``` You should see something like: ``` 8821au, 5.6.4.2_35491.20191025, 6.8.11-amd64, x86_64: installed ``` 2. **Check Kernel Modules:** Verify that the correct kernel module is loaded. ```shell lsmod | grep 8821au ``` If the module is not listed, try loading it manually: ```shell sudo modprobe 8821au ``` 3. **Check dmesg Logs:** Look at the kernel log to see if there are any errors related to the adapter. ```shell dmesg | grep 8821au ``` 4. **Network Manager Configuration:** Ensure NetworkManager is not conflicting with the adapter. Sometimes, NetworkManager might need to be restarted or configured to recognize the new adapter. ```shell sudo systemctl restart NetworkManager ``` 5. **Monitor Mode Setup:** To set up monitor mode, you can use the following commands: ```shell sudo ip link set wlan0 down sudo iw dev wlan0 set type monitor sudo ip link set wlan0 up ``` Replace `wlan0` with your actual wireless interface name, which can be found using: ```shell iwconfig ``` 6. **Managed Mode Setup:** To set up managed mode, ensure the adapter is up and scanning for networks: ```shell sudo ip link set wlan0 down sudo iw dev wlan0 set type managed sudo ip link set wlan0 up sudo iwlist wlan0 scan ``` 7. **Reboot the System:** After performing these steps, reboot the system to ensure all changes take effect. ```shell sudo reboot ```
By following these updated steps, your ALFA AWUS036ACU (AC1200) adapter should be operational in both managed and monitor modes. If you encounter further issues, please provide any error messages or logs from
dmesg
andiwconfig
, and I'll assist you accordingly.
Hello sir, I have followed all your steps but I still have not been able to lift my device, it is awus036AC, when I execute the iwconfig command it shows me this wlan0 unassociated ESSID:"" Nickname:"WIFI@REALTEK" Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
and I can't find any network or put it in monitor mode, I would really appreciate it if you could give me a hand, thank you.
Hi, owner of AWUS036ACS here. Just updated to the latest kernel 6.8 on kali and attempted to install the driver for my adapter but it seems to be broken.