Mounting an Android Image
The official Kbox demo image provided by Huawei Mirrors repository does not contain the Android Kbox binary. Therefore, containers cannot be normally started using this image. If you use this demo image, download the Android Kbox binary to the local host and use the script to create an original Kbox image that can start containers properly.
Image Name + Tag |
How to Obtain |
Usage |
|---|---|---|
Set by the user |
Compiled by the user |
Compile the image based on Software Compilation. This image contains the Android Kbox binary, and containers can be started properly. |
kbox:demo |
Official Kbox demo image provided by Huawei Mirrors repository |
This image does not contain the Android Kbox binary, and containers cannot be started properly. The user needs to perform operations in Creating a Kbox Image and Applying Commercial Binaries. |
kbox:origin |
Created using a script |
This image is created based on kbox:demo and the Android Kbox binary, and containers can be started properly. |
Mounting the Kbox Demo Image
Upload the Kbox demo image package to the ~/dependency directory (this directory is only an example and can be customized) and mount the image package.
The image name and tag can contain only digits and letters. The image name must start with a digit or lowercase letter.
1 2 | cd ~/dependency docker import android.tar kbox:demo |
Creating a Kbox Image and Applying Commercial Binaries
If you use the official Kbox demo image provided by Huawei Mirrors repository, perform the operations in this part to ensure that the image contains the Android Kbox binary.
If you use an image prepared by yourself:
- If you adopt configuration scheme 1, skip all steps in this part.
- If you adopt configuration scheme 2/3, skip step 2 in this part.
- Decompress Kbox-AOSP15.zip and upload the deploy_scripts directory in the Kbox-AOSP15 folder to the ~/dependency directory on the server.
- Upload the Android Kbox binary package BoostKit-boostcph-kbox_*_15.zip to ~/dependency/deploy_scripts.
- (Hardware configuration scheme 2/3) If hardware configuration scheme 2/3 is used, decompress the GPU driver package VAGPU-25.03.01.01-RC13-A15.tgz to obtain va_driver.tgz and upload va_driver.tgz to the ~/dependency/deploy_scripts directory on the server.
- Create a Kbox image that contains the Android Kbox binary. In the following commands, kbox:demo is the official Kbox demo image imported in the previous step, and kbox:origin is the new image that contains the Android Kbox binary.
- For configuration scheme 1:
1 2 3
cd ~/dependency/deploy_scripts chmod +x make_image_aosp15.sh ./make_image_aosp15.sh kbox:demo kbox:origin
- For configuration scheme 2/3:
1 2 3
cd ~/dependency/deploy_scripts chmod +x make_image_aosp15.sh ./make_image_aosp15.sh kbox:demo kbox:origin va_driver.tgz
- For configuration scheme 1: