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 "Preparing for the Installation" > "Obtaining a License" in the Kunpeng Accelerator Engine Developer Guide (KAE Encryption and Decryption).
- 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

- 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.
reboot
Check the KAE devices again.
ls -al /sys/class/uacce

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