Rate This Document
Findability
Accuracy
Completeness
Readability

Applying the Binaries

Apply the Kbox binary file package into the AOSP source package.

  1. After downloading source packages according to Software Environment, decompress the binary package BoostKit-boostcph-kbox_*_15.zip to obtain the Kbox-*-aosp15.0-binary.zip package. Upload the product_prebuilt and products directories in the Kbox-*-aosp15.0-binary.zip package to the ~/dependency directory.

    Assign appropriate permissions on the uploaded files and directories. You are not advised to assign the write permission for other user groups.

  2. Copy the binary files to the root directory of the AOSP source code.
    1
    2
    cd ~/dependency
    cp -rf product_prebuilt ~/aosp/
    
  3. Create a vendor/kbox directory in the AOSP source code directory. Then copy the products directory to vendor/kbox.
    1
    2
    3
    4
    mkdir -p ~/aosp/vendor/kbox
    chmod -R 700 ~/aosp/vendor/kbox
    cd ~/dependency
    cp -rf products ~/aosp/vendor/kbox
    
  4. In the ~/aosp/vendor/kbox/products directory, run the following command to change the DNS address in the kbox.mk file.

    Replace xxx.xxx.xxx.xxx in the command with the DNS address of the container. Ensure that the configured address is available. Otherwise, the compiled image may be unavailable.

    1
    sed -i "s|net.dns1=.*|net.dns1=xxx.xxx.xxx.xxx \\\\|" ~/aosp/vendor/kbox/products/kbox.mk
    
    • The example is for reference only. Configure an available public DNS address to ensure that the container is connected to the network.
    • You can also configure the DNS address in the /system/vendor/build.prop file of the Kbox container. The configuration takes effect after the container is restarted.
    • If you have any questions about the configuration, contact Huawei O&M engineers.