Installing KAE
The KAE installation includes applying for and installing the KAE license, installing dependencies, obtaining the KAE source package, installing KAE using the source code, and verifying the installation.
- Apply for and install the KAE license. For details, see "Obtaining a License" in the Kunpeng Accelerator Engine User Guide.
- Install the dependencies.
1yum -y install kernel-devel-$(uname -r) openssl-devel numactl-devel autoconf automake libtool
- Obtain the KAE 2.0 source package.
1 2
cd /home git clone https://gitee.com/kunpengcompute/KAE.git -b kae2

To download the KAE version described in (Only for Servers With Kunpeng 920 7280Z) Encryption and Decryption Performance Tuning With the KAE Software and Hardware Algorithm Combination, run the following command:
1git clone https://gitee.com/wizardWithSword/KAE.git -b dev_rsa_dispatch
- Install KAE using the source code.
The sh build.sh all installation command is used to install KAE in one-click mode. Before using this command, you are advised to run the sh build.sh cleanup command to clean up.
- Go to the KAE source code directory and perform cleanup operations before the installation.
1 2
cd KAE sh build.sh cleanup
- Install KAE in one-click mode.
1sh build.sh all
- Go to the KAE source code directory and perform cleanup operations before the installation.
- Check whether KAE is successfully installed.
- Check whether related PCI drivers exist in the /sys/bus/pci/drivers directory.
1ls /sys/bus/pci/driversIf files similar to hisi_hpre, hisi_sec2, and hisi_zip exist (his_rde not implemented at this step), the related drivers have been successfully installed.

- Check whether the KAE drivers contain virtualization devices. hisi_sec2 is used as an example here.
1ls -lt /sys/bus/pci/drivers/hisi_sec2
If the corresponding device files are listed, the hisi_sec2 driver is successfully associated with the PCI device.

- Check kae.so to see whether KAE is successfully installed.
1ll /usr/local/lib/engines-1.1Expected result:

KAE is successfully installed.
If KAE devices such as hisi_zip, hisi_sec2, and hisi_hpre cannot be found, restart the server and check again whether KAE is successfully installed.
1reboot
Check the KAE devices again.
1ls -al /sys/class/uacce

- Check whether related PCI drivers exist in the /sys/bus/pci/drivers directory.