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

Tp-Link TL-WN822N V5 [4/19] Compile the driver
Ubuntu 16.04 LTS
1. Development Environment
The development environment in Ubuntu is required as follows:
Development Environment
OS Ubuntu 16.04 LTS
Kernel version 4.13.0-36-generic
Gcc version 5.4.0
2. Compile the Driver
2.1. Compilation tool and kernel sources
Before you compile the driver, please make sure you have the correct compile tool and
kernel sources. In Ubuntu 16.04 LTS, we can install compile tool gcc by command “apt-get
install gcc”
$ apt-get install gcc
Note: We recommend you install the same version tool to compile the driver.
For example:
According to the command “cat /proc/version”, you could see your Ubuntu 16.04 LTS
system is compiled by gcc5.4.0. By default, gcc5.4.0 is already installed in Ubuntu 16.04
LTS, you could use gcc5.4.0 to compile the driver directly.
Generally, compatible kernel headers are already built in Ubuntu 16.04 LTS, so you don’t
need to separately download and compile the kernel sources. However, if no related
kernel headers are integrated in your system, please install the kernel sources first.
2.2. Compile the Driver
Use Terminal to go to the driver directory and run the following commands to compile the
driver.
$ make clean
$ make
After compiling, you can see a name of the chip.ko file is stored in the directory of the
driver.
3

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

Скачать