Table of Contents
Download and Extract Prebuild Files #
Set Up the Environment: #
Navigate to the directory containing prebuilds.zip and extract the file
$ unzip prebuilds.zip $ cd prebuilds
NOTE: Yocto and Android are built under the following paths
Yocto Base DIR: prebuilds/yocto_build
Android Base DIR : prebuilds/android_build
$ cd <Yocto Base DIR> $ export YOCTO_BSP_BUILD = <Yocto Base DIR> $ export ANDROID_BSP_BUILD = <Android Base DIR>
Create Symbolic Links for Scripts: #
$ ln -sf ${ANDROID_BSP_BUILD}/trux_mk_yocto_sdcard/trucrux_scripts/trux-create-yocto-sdcard-with-android.sh ${YOCTO_BSP_BUILD}/sources/meta-trucrux/scripts/trux_mk_yocto_sdcard/trux-create-yocto-sdcard-with-android.sh $ ln -sf ${ANDROID_BSP_BUILD}/trux_mk_yocto_sdcard/trucrux_scripts/mx8_install_android.sh ${YOCTO_BSP_BUILD}/sources/meta-trucrux/scripts/trux_mk_yocto_sdcard/trucrux_scripts/mx8_install_android.sh
Flash the Android image onto the SD card #
$ sudo MACHINE=imx8mq-trux-q01 sources/meta-trucrux/scripts/trux_mk_yocto_sdcard/trux-create-yocto-sdcard-with-android.sh -a /dev/sdx (change /dev/sdx to your device name)
Insert the SD card into the i.MX8MQ DVP & Power onĀ ensure it boots from the SD card.
Install Android OS #
Navigate to the usr/bin directory :
$cd /usr/bin $ ./install_android.sh