我要评分
获取效率
正确性
完整性
易理解

Upgrade Using RPM Packages (KAE 1.0)

To upgrade KAE, run the rpm -Uvh command to install the new version. After the installation is complete, restart the system or manually uninstall the driver of the old version and reload the driver of the new version. This section describes upgrades within KAE 1.0 minor versions.

If KAE is installed using source code, skip this section because no upgrade is required.

Procedure

  1. Download the latest KAE software packages.
  2. Use an SSH tool to remotely log in to the Linux CLI as the root user.
  3. In the directory where the software packages are stored, upgrade the accelerator driver packages and engine library packages.
    1
    rpm -Uvh *.rpm
    

    The following command output is displayed:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    Preparing...                          ################################# [100%]
    checking installed modules
    uacce modules start to install
    Updating / installing...
       1:uacce-1.2.1-1.centos7.6          ################################# [  7%]
    uacce modules installed
       2:libwd-1.2.1-1.centos7.6          ################################# [ 14%]
       3:libkae-1.2.1-1.centos7.6         ################################# [ 21%]
    checking installed modules
    hisi_zip modules start to install
       7:hisi_zip-1.2.1-1.centos7.6       ################################# [ 50%]
    hisi_zip modules installed
    Cleaning up / removing...
         9:hisi_zip-1.2.0-1.centos7.6       ################################# [ 64%]
    hisi_zip modules uninstalled
      13:uacce-1.2.0-1.centos7.6          ################################# [ 93%]
    uacce modules uninstalled
      14:libwd-1.2.0-1.centos7.6          ################################# [100%]
    
  4. Restart the system or manually uninstall the drivers of the old version using the CLI, and then load the drivers of the new version. Check whether the drivers are successfully loaded. You are advised to perform operations using the CLI.
    1. Uninstall the old drivers.
      1. Query drivers that have been loaded to the kernel.
        1
        lsmod | grep uacce
        
        Command output:
        1
        uacce                 262144  5 hisi_qm
        
      2. Uninstall the drivers of the old version in sequence.
        1
        2
        3
        rmmod hisi_zip 
        rmmod hisi_qm
        rmmod uacce
        
      3. Run the following command again. If no result is displayed, the drivers of the old version have been uninstalled.
        1
        lsmod | grep uacce
        
    2. Load the new drivers.
      1. Load the UACCE driver.
        1
        modprobe uacce
        
      2. Load the hisi_zip driver to the kernel based on the configuration file in /etc/modprobe.d/hisi_zip.conf.
        1
        modprobe hisi_zip
        
      3. Query loaded drivers.
        1
        lsmod | grep uacce
        
        If the following information is displayed, the loading is successful.
        1
        uacce                36864  3 hisi_qm,hisi_zip
        
  5. Run the rpm -qa | grep command to check the software versions after the upgrade.
    1
    rpm -qa | grep -E "uacce|hisi_zip"
    
    If the target versions are displayed, the upgrade is successful.
    1
    2
    uacce-1.2.1-1.centos7.6.aarch64
    hisi_zip-1.2.1-1.centos7.6.aarch64