Okay so, I followed a few lines on the kali website itself and it worked:
Kali on Raspberry Pi 5 - Tips and Tricks
To build external modules against the kernel, most instructions will state that you need to install header packages. This is not the case on the Raspberryi Pi 5 image, they are already included and are not a part of a package.
In order to make the headers usable however, you do need to run the following commands.
To build external modules that are from the Kali package repository, as an example realtek-rtl88xxau-dkms you need to tell it to install without also installing recommended packages.
Kali on Raspberry Pi 5 - Tips and Tricks
To build external modules against the kernel, most instructions will state that you need to install header packages. This is not the case on the Raspberryi Pi 5 image, they are already included and are not a part of a package.
In order to make the headers usable however, you do need to run the following commands.
Code:
kali@kali:~$ cd /usr/src/kernelkali@kali:/usr/src/kernel/$ sudo git clean -fdx && sudo make bcm2711_defconfig && sudo make modules_prepare
Code:
kali@kali:~$ sudo apt install --no-install-recommends realtek-rtl8188aus-dkms
Statistics: Posted by rudi911 — Thu Feb 29, 2024 11:27 am