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
- Download the latest KAE software packages.
- Use an SSH tool to remotely log in to the Linux CLI as the root user.
- In the directory where the software packages are stored, upgrade the accelerator driver packages and engine library packages.
1rpm -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%]
- 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_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 rpm -qa | grep command to check the software versions after the upgrade.
1rpm -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
Parent topic: Upgrading KAE Using RPM Packages