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
- Download the latest KAE software packages.
- Use an SSH tool to remotely log in to the Linux CLI as the root user.
- 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.
1dpkg -r hisi-zip
- In the directory where the software packages are stored, reinstall the accelerator driver packages and engine library packages.
1dpkg -i *.deb
- 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.
- Uninstall the old drivers.
- Query drivers that have been loaded to the kernel.
1lsmod | grep uacce
Command output:1uacce 262144 5 hisi_zip,hisi_qm
- Uninstall the drivers of the old version in sequence.
1 2 3
rmmod hisi_zip rmmod hisi_qm rmmod uacce
- Run the following command again. If no result is displayed, the drivers of the old version have been uninstalled.
1lsmod | grep uacce
- Query drivers that have been loaded to the kernel.
- Load the new drivers.
- Load the UACCE driver.
1modprobe uacce - Load the hisi_zip driver to the kernel based on the configuration file in /etc/modprobe.d/hisi_zip.conf.
1modprobe hisi_zip - Query loaded drivers.
1lsmod | grep uacce
If the following information is displayed, the loading is successful.1uacce 36864 3 hisi_qm,hisi_zip
- Load the UACCE driver.
- Uninstall the old drivers.
- Run the dpkg -s command to check the software version after the upgrade.
1dpkg -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
Parent topic: Upgrading KAE