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:

  1. For details about how to configure software sources, see Checking Sources.
  2. Run the following command for installation:
    • openEuler series:
      1
      yum install -y net-tools pciutils
      
    • Debian OSs:
      1
      apt-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.

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:

  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 it 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