Driver Installation Errors

Error 1

Symptom: An error message similar to the following is displayed when you run the command to install the driver.

1
[ERROR]The list of missing tools: lspci,ifconfig

Possible cause: The lspci and ifconfig command tools are missing.

Solution:

Perform the installation.
  • Debian, Ubuntu, and veLinux:
    1
    apt-get install -y net-tools pciutils
    
  • openEuler, CentOS, Kylin, BC-Linux, UOS V20, AntOS, AliOS, CTyunOS, CULinux, Tlinux, MTOS:
    1
    yum 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.

Error 2

Symptom:

Error messages 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:

  • The driver fails to be compiled due to a DKMS tool error. As a result, residual DKMS-related files exist.
  • The driver fails to be compiled due to the GCC version.

Solution:

  1. Go to the /var/lib/dkms directory.
    1
    cd /var/lib/dkms
    
  2. Delete the davinci_ascend directory.
    1
    rm -rf davinci_ascend
    
  3. 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 the example path with the actual installation path.
    1. 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
      
    2. 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