我要评分
获取效率
正确性
完整性
易理解

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.

  1. 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).
  2. Install the dependencies.
    1
    yum -y install kernel-devel-$(uname -r) openssl-devel numactl-devel autoconf automake libtool
    
  3. Obtain the KAE 2.0 source package.
    1
    2
    cd /home
    git clone https://gitee.com/kunpengcompute/KAE.git -b kae2
    

  4. 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.

    1. Go to the KAE source code directory and perform cleanup operations before the installation.
      1
      2
      cd KAE
      sh build.sh cleanup
      
    2. Install KAE in one-click mode.
      1
      sh build.sh all
      
  5. Check whether KAE is successfully installed.
    1. Check whether related PCI drivers exist in the /sys/bus/pci/drivers directory.
      1
      ls /sys/bus/pci/drivers
      

      If 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.

    2. Check whether the KAE drivers contain virtualization devices. hisi_sec2 is used as an example here.
      1
      ls -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.

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

      Expected 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