Customer may want to deploy Android 14 on FRDM-iMX8MP. This doc gives an introduction about how to deploy Android OS14 on FRDM-iMX8MP
Hardware:
FRDM-iMX8MP, Power supply cable, usb cable x2,
Ubuntu PC
Outline:
Follow the below steps:
1. Setup the environment
$ cd ~ (or any other directory you like)
$ tar xzvf imx-android-14.0.0_2.1.0.tar.gz$ source ~/imx-android-14.0.0_2.1.0/imx_android_setup.sh$ cd ${MY_ANDROID}
$ source build/envsetup.sh2. Apply FRDM-iMX8MP patches into AOSP
$ git apply --check 0001-device-nxp-add-FRDM-i.MX8MP-Android14-basic-support.patch
$ git apply 0001-device-nxp-add-FRDM-i.MX8MP-Android14-basic-support.patch$ git am *.patch$ git am *.patch$ git am *.patch
3. Build the image for FRDM-iMX8MP
$ lunch frdm_8mp-trunk_staging-userdebug$ ./imx-make.sh -j4 2>&1 | tee build-log.txtNOTE: The following outputs are generated by default in ${MY_ANDROID}/out/target/product/frdm_8mp:
4. Flash the image
The board image files can be flashed into the target board using Universal Update Utility (UUU).
For the UUU binary file, download it from GitHub: uuu release page on GitHub.
To achieve more flexibility, two script files are provided to invoke UUU to automatically flash all Android images.
For this release, these two scripts are validated on UUU 1.5.179 version. Download the corresponding version from GitHub:
Perform the following steps to download the board images:
$ sudo ./uuu_imx_android_flash.sh -f imx8mp -p frdm -a -e$ uuu_imx_android_flash.bat -f imx8mp -p frdm -a -eNOTE: If you want to change the dtb, you can add -d dtb_feature. Also, you can check all the info by using the command: uuu_imx_android_flash.bat
Power off the board and Change the board's SW5 (boot mode) to 0010 (from 1-4 bit) to enter emmc boot mode