Installing the KAE by Compiling Source Code
- For details, see Installing the KAE Software Using Source Code in the KAE Developer Guide (KAE Encryption & Decryption).
- The installation method varies with the KAE version and release mode. For details about the installation method, see README.md in https://gitee.com/kunpengcompute/KAE/#kunpeng-accelerator-engine.
- Install KAE drivers.
- Obtain the KAE driver source package (version 1.3.11 is used as an example).
- Download the source package using a local browser.
- Upload the source package to the /home/ directory on the server.
If the server is connected to the network, run the wget command to download the source package.1cd /home/
1wget https://gitee.com/kunpengcompute/KAEdriver/repository/archive/v1.3.11.zip --no-check-certificate
1mv v1.3.11.zip KAEdriver-v1.3.11.zip
- Decompress the source package.
1unzip KAEdriver-v1.3.11.zip - Install the kernel-mode driver.
1cd /home/KAEdriver-1.3.11/kae_driver
1make
1make install - Install the user-mode driver.
1cd /home/KAEdriver-1.3.11/warpdrive
1sh autogen.sh1./configure
1make
1make install
- Obtain the KAE driver source package (version 1.3.11 is used as an example).
- Install the KAE.
- Obtain the KAE source package (version 1.3.11 is used as an example).
- Download the source package using a local browser.
- Upload the source package to the /root directory on the server.
If the server is connected to the network, run the wget command to download the source package.1cd /home/
1wget https://gitee.com/kunpengcompute/KAE/archive/refs/tags/v1.3.11.tar.gz --no-check-certificate
1mv v1.3.11.tar.gz KAE-v1.3.11.tar.gz
- Decompress the source package.
1tar -zxvf KAE-v1.3.11.tar.gz
- Install the kernel-mode driver.
1cd /home/KAE-1.3.11
1chmod 777 configure
1./configure
1make
1make install
- Obtain the KAE source package (version 1.3.11 is used as an example).
- View library files.
- View the user-mode library file.
1ll /usr/local/lib/ | grep libwd

- View the kernel-mode library file.
1ll /usr/local/lib/engines-1.1/
- View the user-mode library file.
- Configure the environment variables.
- Open profile.
vi /etc/profile
- Add the following content to the file:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export OPENSSL_ENGINES=/usr/local/lib/engines-1.1
- Make the environment variables take effect.
source /etc/profile
- View the environment variables.
env | grep OPENSSL_ENGINES env | grep LD_LIBRARY_PATH

Restore the environment variables.
- Open profile.
vi /etc/profile
- Delete the following content:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export OPENSSL_ENGINES="/usr/local/lib/engines-1.1"
- Make the environment variables take effect.
source /etc/profile
- Run the unset commands.
unset OPENSSL_ENGINES unset LD_LIBRARY_PATH
- View the environment variables.
env | grep OPENSSL_ENGINES env | grep LD_LIBRARY_PATH
- Open profile.
- Open profile.
- Load the drivers.
1modprobe uacce1modprobe hisi_hpre - Check the drivers.
1 2
lsmod | grep uacce lsmod | grep hisi_hpre

- Check KAE devices (virtual devices).
1ls /sys/class/uacce/
Parent topic: Installing the KAE Software