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, you must uninstall the hisi_zip driver package before uninstalling the UACCE driver package, and uninstall the libkaezip engine package before uninstalling the libwd driver package.

    1
    dpkg -r hisi-zip
    
  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 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_zip,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
        
  6. Run the dpkg -s command to check the software version after the upgrade.
    1
    dpkg -s uacce  hisi-zip
    
    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
    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-zip
    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 ZIP Accelerator Driver.
    URL: https://support.huawei.com