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
Command output:
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
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_hpre modules start to install 4:hisi_hpre-1.2.1-1.centos7.6 ################################# [ 29%] hisi_hpre modules installed checking installed modules hisi_sec2 modules start to install 6:hisi_sec2-1.2.1-1.centos7.6 ################################# [ 43%] hisi_sec2 modules installed checking installed modules Cleaning up / removing... 7:libkae-1.2.0-1.centos7.6 ################################# [ 57%] 8:hisi_sec2-1.2.0-1.centos7.6 ################################# [ 71%] hisi_sec2 modules uninstalled 10:hisi_hpre-1.2.0-1.centos7.6 ################################# [ 86%] hisi_hpre modules uninstalled 11:uacce-1.2.0-1.centos7.6 ################################# [ 93%] uacce modules uninstalled 12: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_zip,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 rpm -qa | grep command to check the software versions after the upgrade.
1rpm -qa | grep -E "uacce|hisi_sec2|hisi_hpre"
If the target versions are displayed, the upgrade is successful.1 2 3
hisi_sec2-1.2.1-1.centos7.6.aarch64 uacce-1.2.1-1.centos7.6.aarch64 hisi_hpre-1.2.1-1.centos7.6.aarch64
Parent topic: Upgrading KAE Using RPM Packages