Installing Dependencies Required for Compiling Driver Source Code
Make Tool
Run the make -v command. If the version of Make is displayed, Make has been installed.
Ubuntu 18.04/Ubuntu 20.04/Debian 9.9/Debian 10.0
You need to install the DKMS, GCC, and linux-headers software packages.
Check whether the source has been set by referring to Checking the Source Validity.
Run the following commands to check whether these software packages have been installed:
dpkg-query -s dkms
dpkg-query -s gcc
dpkg-query -s linux-headers-$(uname -r)
If the dependencies are not installed, run the apt-get install -y dkms gcc linux-headers-$(uname -r) command to install them.
CentOS 7.6
You need to install the DKMS, GCC, kernel-headers, and kernel-devel software packages.
Check whether the source has been set by referring to Checking the Source Validity.
Run the following commands to check whether these software packages have been installed:
rpm -qa | grep dkms
rpm -qa | grep gcc
rpm -qa | grep kernel-headers-$(uname -r)
rpm -qa | grep kernel-devel-$(uname -r)
If the dependencies are not installed, run the yum install -y dkms gcc command to install them.
For the x86 architecture, click kernel-headers and kernel-devel to download the RPM packages. For the ARM architecture, click kernel-headers and kernel-devel to download the RPM packages.
After downloading the RPM packages, upload them to the server and run the rpm -ivh xxx.rpm command to install the RPM packages.
CentOS 8.2
You need to install the DKMS, GCC, kernel-headers, and kernel-devel software packages. For CentOS 8.2+x86, the elfutils-libelf-devel software package also needs to be installed.
Check whether the source has been set by referring to Checking the Source Validity.
Run the following commands to check whether these software packages have been installed:
rpm -qa | grep dkms
rpm -qa | grep gcc
rpm -qa | grep kernel-headers-$(uname -r)
rpm -qa | grep elfutils-libelf-devel (only for CentOS 8.2+x86)
rpm -qa | grep kernel-devel-$(uname -r)
If the dependencies are not installed, run the yum install -y dkms gcc elfutils-libelf-devel command to install them.
For the x86 architecture, click kernel-headers and kernel-devel to download the RPM packages. For the ARM architecture, click kernel-headers and kernel-devel to download the RPM packages.
After downloading the RPM packages, upload them to the server and run the rpm -ivh xxx.rpm command to install the RPM packages.
BC-Linux 7.6/BC-Linux 7.7
You need to install the DKMS, GCC, kernel-headers, and kernel-devel software packages.
Check whether the source has been set by referring to Checking the Source Validity.
Run the following commands to check whether these software packages have been installed:
rpm -qa | grep dkms
rpm -qa | grep gcc
rpm -qa | grep kernel-bek-headers-$(uname -r)
rpm -qa | grep kernel-bek-devel-$(uname -r)
If the dependencies are not installed, run the yum install -y dkms gcc kernel-bek-headers-$(uname -r) kernel-bek-devel-$(uname -r) command to install them.
SLES 12 SP4/SLES 12 SP5
You need to install the GCC, kernel-default, and kernel-default-devel software packages.
Check whether the source has been set by referring to Checking the Source Validity.
Run the following commands to check whether these software packages have been installed:
rpm -qa | grep gcc
rpm -qa | grep kernel-default
rpm -qa | grep kernel-default-devel
If the dependencies are not installed, run the sudo zypper install -y kernel-default kernel-default-devel command to install them.
Kylin V10 SP1
You need to install the DKMS, GCC, kernel-headers, and kernel-devel software packages. Run the following commands to check whether these software packages have been installed:
rpm -qa | grep dkms
rpm -qa | grep gcc
rpm -qa | grep kernel-headers-$(uname -r)
rpm -qa | grep kernel-devel-$(uname -r)
If the dependencies are not installed, run the yum install -y dkms gcc kernel-headers-$(uname -r) kernel-devel-$(uname -r) command to install them.
Tlinux 2.4
- Obtain the installation package of GCC 8.2.1 from https://mirrors.tencent.com/tlinux/2.4/arm64/tlinux-sclo/aarch64/tl/devtoolset-8/devtoolset-8-gcc-8.2.1-3.tl2.aarch64.rpm.
- Log in to the operating environment.
- Upload the GCC installation package to a specified path, for example, /tmp.
- Run the following command to install the GCC:
rpm -Uvh devtoolset-8-gcc-8.2.1-3.tl2.aarch64.rpm --force --nodeps
- After the installation is complete, run the following command to query the path of the executable file of GCC 8.2.1:
The red box in the following figure shows the path of the executable file.

- Configure environment variables.
- Run the following command to check whether the GCC is successfully installed:
If the following information is displayed, the GCC version is the same as the target version, indicating that the installation is successful:
