...
a power PC HOST with Linux OS system (Ubuntu, Debian, ARCH Linux are valid options);
a docker environment installed and running;
a configured git and repo environment;
250 GB of free space on HD;
If you are in hurry:
For i.MX platform download this preconfigured script: android_build.sh and run it on your Linux PC HOST:
./android_build.sh
<BOARD_CODE>
# Where <BOARD_CODE> can be “C61”, C43”[For example: ./android_build.sh C43 ]
You will find the results of the build process in the folder ANDROID_11/Distros/:
ls -lh ANDROID_11/Distros/
Detailed procedure:
Configure git:
git config --global user.name "Your Name"
git config --global user.email "your.name@example.com"
...
Wait until the end of the compilation process (build process can lasts 1 or more hours according to the speed of your system)
You can produce a tar.gz archive to be used for installation running the following script:
prepare_distro.sh [<IMAGE_NAME>]
# Where [<IMAGE_NAME>] is an optional text string for naming the image file (default to “Android_11_<BOARD_CODE>_Distro_<DATE>.tar.gz”)
Build otapackage:
To build and OTA package to upgrade an existing Android 11 installation you just need to use the “otapackage” target in the previous “make -j20” command.
So the complete procedure is:
make otapackage procedure:
source setup<BOARD_CODE>
# Where <BOARD_CODE> can be “C61”, C43”, “C20”, etc [For example: source setupC61]seco-imx-make.sh -j20 bootloader
seco-imx-make.sh -j20 bootimage
make -j20 otapackage
Results of this build can be found in the following patrh:
out/target/product/<extended_board_code>/<extended_board_code>-ota-eng.<username>.zip [for example: “out/target/product/c43_8q/c43_8q-ota-eng.developer.zip” ]
Info |
---|
The preconfigured android_build.sh script contains all the commands described above and can be used to speedup the build process, or can be modified to be used for specific needs. |
...