This repository contains the device configuration tree to build Android 4.4.3 for the Embest MarS Board. It is a merge of Embest's 4.3 tree into Freescale's 4.4.3 tree.
The kernel is based on Freescale's Android kernel with a device tree created from Embest's legacy board-mx6q_marsboard.c.
- The repo tool
- A build environment for AOSP
First, fetch the Android 4.4.3 source code from the Android Open Source Project (AOSP):
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.3_r1
repo sync
Next, download Freescale's patches (login required) and apply them:
source /path/to/freescale_source/code/and_patches.sh
c_patch /path/to/freescale_source/code imx
Finally, replace Freescale's device configuration with this repository and fetch kernel and bootloader:
rm -rf device/fsl
git clone --single-branch -b kk4.4.3_2.0.0_marsboard https://github.com/essensium-mind/marsboard_android.git device/fsl
git clone --single-branch -b kk4.4.3_2.0.0-ga_marsboard https://github.com/essensium-mind/marsboard_linux.git kernel_imx
git clone --single-branch -b 2015.01_marsboard https://github.com/essensium-mind/marsboard_uboot.git bootable/bootloader/uboot-imx
The following patch is needed to compile wpa_supplicant:
patch -p1 -d external/wpa_supplicant_8 < device/fsl/wpa_supplicant.patch
To build the complete Android stack, run the following commands:
source build/envsetup.sh
lunch marsboard_6q-eng
make -j4
The output should be available at out/target/product/marsboard_6q. To put the
images on an SD card, use the fsl-sdcard-partition.sh tool from the
common/tools directory.