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, 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.
1dpkg -r hisi-sec2
- 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 manually using the CLI.
- Uninstall the old drivers.
- Query drivers that have been loaded to the kernel.
1lsmod | grep uacce
Command output:1uacce 262144 4 hisi_hpre,hisi_sec2,hisi_qm
- Uninstall the drivers of the old version in sequence.
1 2 3 4
rmmod hisi_hpre rmmod hisi_sec2 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_sec2 driver to the kernel based on the configuration file in /etc/modprobe.d/hisi_sec2.conf.
1modprobe hisi_sec2 - Load the hisi_hpre driver to the kernel based on the configuration file in /etc/modprobe.d/hisi_hpre.conf.
1modprobe hisi_hpre - Query loaded drivers.
1lsmod | grep uacce
If the following information is displayed, the loading is successful:1uacce 36864 3 hisi_sec2,hisi_qm,hisi_hpre
- Load the UACCE driver.
- Uninstall the old drivers.
- Run the dpkg -s command to check the software versions after the upgrade.
1dpkg -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
Parent topic: Upgrading KAE