Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the KAE by Compiling Source Code

  1. For details, see Installing the KAE Software Using Source Code in the KAE Developer Guide (KAE Encryption & Decryption).
  2. 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.
  1. Install KAE drivers.
    1. Obtain the KAE driver source package (version 1.3.11 is used as an example).
      1. Download the source package using a local browser.

        https://gitee.com/kunpengcompute/KAEdriver

      2. 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.
        1
        cd /home/
        
        1
        wget https://gitee.com/kunpengcompute/KAEdriver/repository/archive/v1.3.11.zip  --no-check-certificate
        
        1
        mv v1.3.11.zip KAEdriver-v1.3.11.zip
        
    2. Decompress the source package.
      1
      unzip KAEdriver-v1.3.11.zip
      
    3. Install the kernel-mode driver.
      1
      cd /home/KAEdriver-1.3.11/kae_driver
      
      1
      make
      
      1
      make install
      
    4. Install the user-mode driver.
      1
      cd /home/KAEdriver-1.3.11/warpdrive
      
      1
      sh autogen.sh
      
      1
      ./configure
      
      1
      make
      
      1
      make install
      
  2. Install the KAE.
    1. Obtain the KAE source package (version 1.3.11 is used as an example).
      1. Download the source package using a local browser.

        https://gitee.com/kunpengcompute/KAEdriver

      2. 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.
        1
        cd /home/
        
        1
        wget https://gitee.com/kunpengcompute/KAE/archive/refs/tags/v1.3.11.tar.gz --no-check-certificate
        
        1
        mv v1.3.11.tar.gz KAE-v1.3.11.tar.gz
        
    2. Decompress the source package.
      1
      tar -zxvf KAE-v1.3.11.tar.gz
      
    3. Install the kernel-mode driver.
      1
      cd /home/KAE-1.3.11
      
      1
      chmod 777 configure
      
      1
      ./configure
      
      1
      make
      
      1
      make install
      
  3. View library files.
    1. View the user-mode library file.
      1
      ll /usr/local/lib/ | grep libwd
      

    2. View the kernel-mode library file.
      1
      ll /usr/local/lib/engines-1.1/
      

  4. Configure the environment variables.
    1. Open profile.
      vi /etc/profile
    2. 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
    3. Make the environment variables take effect.
      source /etc/profile
    4. View the environment variables.
      env | grep OPENSSL_ENGINES
      env | grep LD_LIBRARY_PATH

      Restore the environment variables.

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

  7. Check KAE devices (virtual devices).
    1
    ls /sys/class/uacce/