aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling not working [MAKE]

paoloronco opened this issue · comments

cd Desktop

git clone https://github.com/aircrack-ng/rtl8812au.git

cd rtl8812au

make install
install -p -m 644 88XXau.ko /lib/modules/6.5.0-kali3-amd64/kernel/drivers/net/wireless/
install: cannot stat '88XXau.ko': No such file or directory
make: *** [Makefile:1737: install] Error 1

make install
install -p -m 644 88XXau.ko /lib/modules/6.5.0-kali3-amd64/kernel/drivers/net/wireless/
install: cannot stat '88XXau.ko': No such file or directory
make: *** [Makefile:1737: install] Error 1

Make not working

Same error did u find any way to fix it?

Yes, i changed Driver and I used those one
Those for me works so well and no errors at all

mkdir -p ~/src
cd ~/src
git clone https://github.com/morrownr/8812au-20210629.git
cd ~/src/8812au-20210629
gcc –version
sudo apt install gcc-12
sudo ./install-driver.sh   

Build package dependencies per README.md

The following steps fixed my issue on Kali VM with Intel hardware:

1)sudo apt update
2)apt-cache search linux-headers # Choose header files for Linux x.x.x-amd64 (Change X to the version that appears to you)
3)sudo apt install linux-headers-x.x.x-amd64 # (Replace X)
4)sudo shutdown -r 0 # Reboot
5)git clone https://github.com/aircrack-ng/rtl8812au.git # Download the driver
6)cd rtl8812au # Change directory
7)sudo make && make install # Install the driver
8)sudo shutdown -r 0 # Reboot

Done!!

image

I followed Louay112's steps and am still having the same issue. I have tried removing and reinstalling kernel headers, tried multiple different drivers, etc. My issue seems to come down to the /lib/modules/6.6.9-amd64/build/.

My error when using the make command:
make[1]: Entering directory '/usr/lib/modules/6.6.9-amd64/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/6.6.9-amd64/build'

My error when using the dkms_install command
Error! Your kernel headers for kernel 6.6.9-amd64 cannot be found at /lib/modules/6.6.9-amd64/build or /lib/modules/6.6.9-amd64/source.
Please install the linux-headers-6.6.9-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located.

The only thing that I notice is that the linux-headers-6.6.9-amd64 appears red when i do ls. Unsure if this is an issue.

All help greatly appreciated.

Never mind, it worked minuted after I posted.

I manually removed the entire 6.6.9 directory, sudo apt remove then sudo apt install again. Reboot and verify that the correct files are in place.

I did get an error "install: cannot create regular file '/lib/modules/6.6.9-amd64/kernel/drivers/net/wireless/88XXau.ko': Permission denied" when running the make command, but my Alfa card is working just fine now so I will ignore it.