Tp-Link TL-WN822N V5 [8/19] Compile the driver source

Tp-Link TL-WN722N V3 [8/19] Compile the driver source
may take a few minutes.
$ make j4 zImage modules dtbs
$ sudo make modules_install
$ sudo cp arch /arm/boot/dts/*.dtb /boot/
$ sudo cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/
$ sudo cp arch/arm/boot/dts/overlays/README /boot/overlays/
$ sudo cp arch/arm/boot/zImage /boot/$KERNEL.img
Note: “-j4” refers to using Raspberry Pi3 and 4 to compile to accelerate the compilation
process.
Power off the development board of Raspberry Pi3 and then run the following command
to confirm the kernel version.
$ uname –a
or
$ cat /proc/version
2.2. Compile the Driver Source
Go to the driver’s directory, open the Makefile file to support Raspberry Pi3. By default, the
CONFIG_PLATFORM_I386_PC macro is enabled. Set the value for
CONFIG_PLATFORM_BCM2709 to y, and set the value for
CONFIG_PLATFORM_I386_PC to n.
CONFIG_PLATFORM_BCM2709 = y
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ANDROID_X86 = n
After setting the parameters, use Terminal to go to the directory in which the driver source
file is stored. Run the following commands to compile the driver.
$ make clean
$ make
3. Load the Driver
Here we show the 8192eu.ko wireless driver loading process as an example. Run the
following command to load the driver.
$ sudo cp 8192eu.ko /lib/modules/[kernel version]/kernel/drivers/net/wireless/
$ sudo depmod -a
$ sudo modprobe 8192eu
Or directly use insmod to load the driver.
$ sudo insmod 8192eu.ko
After loading the driver, run the following command to check if the driver is successfully
loaded.
7

Похожие устройства

Скачать