Upgrade Using RPM Packages (KAE 2.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 2.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 SSH to remotely log in to the Linux CLI as the root user.
- Uninstall the accelerator driver packages and engine library RPM package of the earlier version.
1 2
rpm -e kae-openssl rpm -e kae-driver
- Install the accelerator driver RPM package kae-driver of the new version.
1rpm -ivh kae-driver-2.0.3-1.aarch64.rpm
If the following information is displayed, the installation is successful:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Verifying... ################################# [100%] Preparing... ################################# [100%] Preprocessing before installing the driver checking installed modules uacce modules start to install checking installed modules hisi_sec2 modules start to install checking installed modules hisi_hpre modules start to install checking installed modules hisi_zip modules start to install Updating / installing... 1:kae-driver-2.0.3-1 ################################# [100%] installing driver... uacce modules installed hisi_sec2 modules installed hisi_hpre modules installed hisi_zip modules installed
- Install the engine library RPM package kae-openssl of the new version.
1rpm -ivh kae-openssl-2.0.3-1.aarch64.rpm
If the following information is displayed, the installation is successful:1 2 3 4 5
Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kae-openssl-2.0.3-1 ################################# [100%] installing openssl engine...
- Check whether the drivers are successfully loaded.Query drivers that have been loaded to the kernel.
1lsmod | grep uacce
Command output:1uacce 24576 3 hisi_sec2,hisi_qm,hisi_zip
- Run the rpm -qa | grep command to check the software versions after the upgrade.
1rpm -qa | grep -E "kae-driver|kae-openssl"
If the target versions are displayed, the upgrade is successful.1 2
kae-openssl-2.0.3-1.aarch64 kae-driver-2.0.3-1.aarch64
Parent topic: Upgrading KAE Using RPM Packages