I'm trying to get a driver installed for a USB Wifi adapter. I unpacked the file and try to
make clean
make
then this:
Code: Select all
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make clean
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# sudo m-a prepare
Getting source for kernel version: 4.9.0-kali1-686-pae
apt-get install linux-headers-4.9.0-kali1-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-kali1-686-pae
E: Couldn't find any package by glob 'linux-headers-4.9.0-kali1-686-pae'
E: Couldn't find any package by regex 'linux-headers-4.9.0-kali1-686-pae'
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Done!
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/4.9.0-kali1-686-pae/build M=/root/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 modules
make[1]: *** /lib/modules/4.9.0-kali1-686-pae/build: No such file or directory. Stop.
Makefile:1529: recipe for target 'modules' failed
make: *** [modules] Error 2