Rate This Document
Findability
Accuracy
Completeness
Readability

Upgrading KAE Using DEB Packages

To upgrade KAE, you can use DEB packages 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. Currently, this method applies only to upgrades within KAE 1.0 minor versions.

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. Uninstall the KAE software packages.

    Due to the dependency relationships, the hisi_hpre and hisi_sec2 driver packages must be uninstalled before the UACCE driver package is uninstalled. The libkae engine package must be uninstalled before the libwd driver package is uninstalled.

    1
    dpkg -r hisi-sec2
    
  4. In the directory where the software packages are stored, reinstall the accelerator driver packages and engine library packages.
    1
    dpkg -i *.deb
    
  5. 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 manually 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  4 hisi_hpre,hisi_sec2,hisi_qm
        
      2. Uninstall the drivers of the old version in sequence.
        1
        2
        3
        4
        rmmod hisi_hpre
        rmmod hisi_sec2
        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_sec2 driver to the kernel based on the configuration file in /etc/modprobe.d/hisi_sec2.conf.
        1
        modprobe hisi_sec2
        
      3. Load the hisi_hpre driver to the kernel based on the configuration file in /etc/modprobe.d/hisi_hpre.conf.
        1
        modprobe hisi_hpre
        
      4. Query loaded drivers.
        1
        lsmod | grep uacce
        
        If the following information is displayed, the loading is successful:
        1
        uacce                36864  3 hisi_sec2,hisi_qm,hisi_hpre
        
  6. Run the dpkg -s command to check the software versions after the upgrade.
    1
    dpkg -s uacce hisi-sec2 hisi-hpre 
    
    If the target versions are displayed, the upgrade is successful.
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    Package: uacce
    Status: install ok installed
    Priority: optional
    Section: utils
    Installed-Size: 512
    Maintainer: HiSilicon Tech. Co., Ltd.
    Architecture: arm64
    Version: 1.3.1
    Description: This package contains the Unified/User-space-access-intended Accelerator Framework.
    URL: https://support.huawei.com 
     
    Package: hisi-sec2
    Status: install ok installed
    Priority: optional
    Section: utils
    Installed-Size: 512
    Maintainer: HiSilicon Tech. Co., Ltd.
    Architecture: arm64
    Version: 1.3.1
    Description: This package contains the Huawei HiSilicon SEC Accelerator Driver.
    URL: https://support.huawei.com
     
    Package: hisi-hpre
    Status: install ok installed
    Priority: optional
    Section: utils
    Installed-Size: 512
    Maintainer: HiSilicon Tech. Co., Ltd.
    Architecture: arm64
    Version: 1.3.1
    Description: This package contains the Huawei HiSilicon HPRE Accelerator Driver.
    URL: https://support.huawei.com