Hi i'm newbie for kali
I'm use usb Wifi NIC RTL8812BU and install driver from DKMS installation
Code:
[COLOR=var(--color-prettylights-syntax-constant)]cd[/COLOR] rtl88x2buVER=[COLOR=var(--color-prettylights-syntax-string)][COLOR=var(--color-prettylights-syntax-string)]$([/COLOR]sed -n [COLOR=var(--color-prettylights-syntax-string)][COLOR=var(--color-prettylights-syntax-string)]'[/COLOR]s/\PACKAGE_VERSION="\(.*\)"/\1/p[COLOR=var(--color-prettylights-syntax-string)]'[/COLOR][/COLOR] dkms.conf[COLOR=var(--color-prettylights-syntax-string)])[/COLOR][/COLOR]
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-[COLOR=var(--color-prettylights-syntax-storage-modifier-import)]${VER}[/COLOR]
sudo dkms add -m rtl88x2bu -v [COLOR=var(--color-prettylights-syntax-storage-modifier-import)]${VER}[/COLOR]
sudo dkms build -m rtl88x2bu -v [COLOR=var(--color-prettylights-syntax-storage-modifier-import)]${VER}[/COLOR]
sudo dkms install -m rtl88x2bu -v [COLOR=var(--color-prettylights-syntax-storage-modifier-import)]${VER}
[/COLOR]sudo modprobe 88x2bu
then build
Code:
$ sudo dkms build -m rtl88x2bu -v ${VER}                                           3 ⨯

Kernel preparation unnecessary for this kernel.  Skipping...


Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.9.0-kali5-amd64 KVER=5.9.0-kali5-amd64 src=/usr/src/rtl88x2bu-5.6.1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.9.0-kali5-amd64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.
and i see make.log for more infomation
Code:
DKMS make.log for rtl88x2bu-5.6.1 for kernel 5.9.0-kali5-amd64 (x86_64)Tue 12 Jan 2021 08:35:42 AM EST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.9.0-kali5-amd64/build M=/var/lib/dkms/>
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-kali5-amd64'


  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


make[2]: *** [/usr/src/linux-headers-5.9.0-kali5-common/Makefile:718: include/config/aut>
make[1]: *** [/usr/src/linux-headers-5.9.0-kali5-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-kali5-amd64'
make: *** [Makefile:2284: modules] Error 2

Someone help me pls
ps.sorry my english is broken.