An Error Is Reported During Driver Installation
Symptom 1
Symptom: The following error message is displayed when a command is executed to install the driver:
1 | [ERROR]The list of missing tools: lspci,ifconfig |
Possible cause: The lspci and ifconfig command tools are missing.
Solution:
- For details about how to configure software sources, see Checking Sources.
- Run the following command for installation:
- openEuler series:
1yum install -y net-tools pciutils
- Debian OSs:
1apt-get install -y net-tools pciutils
The ifconfig command is contained in the net-tools installation package, and the lspci command is contained in the pciutils installation package.
- openEuler series:
Symptom 2
Problem description:
An error message similar to the following is displayed during the driver installation.
1 2 | [ERROR]Dkms install failed, details in : var/log/ascend_seclog/ascend_install.log. [ERROR]Driver_ko_install failed, details in : /var/log/ascend_seclog/ascend_install.log. |
Possible Causes
- Due to the DKMS problem, DKMS-related files remain after the driver compilation fails.
- The driver fails to be compiled due to the GCC version.
Solution:
- Go to the /var/lib/dkms directory.
1cd /var/lib/dkms
- Delete the davinci_ascend directory.
1rm -rf davinci_ascend
- Reinstall the driver. If the error persists, perform the following operations:The following uses GCC 7.3.0 as an example. Run the following command to create a soft link to control the GCC version. For other GCC versions, replace it with the actual installation path.
- Back up the soft link of the old version.
1 2 3 4
mv /usr/bin/gcc /usr/bin/gcc.bak mv /usr/bin/g++ /usr/bin/g++.bak mv /usr/bin/c++ /usr/bin/c++.bak mv /usr/bin/cc /usr/bin/cc.bak
- Create a soft link for the new version.
1 2 3 4
ln -s /usr/local/gcc7.3.0/bin/gcc /usr/bin/gcc ln -s /usr/local/gcc7.3.0/bin/g++ /usr/bin/g++ ln -s /usr/local/gcc7.3.0/bin/c++ /usr/bin/c++ ln -s /usr/local/gcc7.3.0/bin/gcc /usr/bin/cc
- Back up the soft link of the old version.
Parent topic: Appendix C: Installation Troubleshooting