Tp-Link TL-WN822N V5 [7/19] Download and install tools

Tp-Link TL-WN823N V3 [7/19] Download and install tools
2. Compile the Driver
Before you compile the driver, please make sure you have the correct compile tool and
kernel sources.
2.1. Compile Kernel source
Here we illustrate the instructions for local building to compile the driver for Linux.
2.1.1. Download and Install Tools
Note: Before local building, make sure your raspberrypi system is connected to the
internet.
Install Git, bc and other related tools.
$ sudo apt-get install git bc
2.1.2. Get Kernel source
Click the following links to download raspberrypi kernel source and other related tools.
https://github.com/raspberrypi/linux
https://github.com/raspberrypi/tools
Before local building, make sure if you need to update the kernel. If your adapter supports
the current kernel version, you don’t need to update the kernel, and just download the
kernel sources of this version. If you have to update the kernel, choose the kernel sources
of the desired version. Here we download the version 4.9 kernel sources.
Create Linux-src directory in the local user’s root directory to store kernel sources. If you
have installed Git, you can use Git to obtain Linux kernel sources from Github; if you
directly download the .zip file, use the following jar command to decompress this file.
$ sudo jar xf XXX.zip
Note: It is recommended not to use the unzip software to decompress the .zip file.
2.1.3. Modify Kernel
Run the following commands to modify Linux kernel. You can also modify the kernel
according to your demands.
$ cd linux /* go the directory of kernel sources */
$ KERNEL=kernel7
$ make bcm2709_defconfig
Note: The instructions for Raspberry Pi3 and other versions of Raspberry are slightly
different, for details of other versions, please refer to the instructions on Raspberry official
website.
2.1.4. Compile the Kernel
Run the following commands to compile and install the kernel and related device tree. It
6

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

Скачать