So I've plugged the usb 2.0 wireless adapter in, download and extracted the drivers from the tp-link website, onto my desktop. Then I've gone into terminal, "cd Desktop/Driver", then I run "sudo make" to try and compile the driver.
After I do this I get an error in the terminal:
Code:
root@kali:~/Desktop/Driver# sudo make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.3.0-kali1-amd64/build M=/root/Desktop/Driver modules
make[1]: *** /lib/modules/4.3.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
So I dug around a bit, and /lib/modules/4.3.0-kali1-amd64/build only exists upto lib/modules/4.3.0-kali1-amd64. There is no "build" file or folder.
On the driver's readme pdf it states "Before compile, make sure the parameters in “makefile.c” is suitable for your
compile environment of your Linux system."
Code:
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
endif
Explanation:
· KSRC is used to specify the kernel source path for driver compilation.
· CROSS_COMPILE is used to specify the toolchain.
· ARCH is used to specify the target platform's CPU architectures such as arm, mips,
i386 and so on.
Where am I meant to be pointing the KSRC on my version of kali linux? 4.3.0-kali1-amd64