Embest Technology
Copyright © 2014-2015 Embest Technology SBC9000 User Manual
47
5.2 Making Android Images
1
)
Execute the following instructions to obtain repo tool;
$
mkdir ~/bin
$
curl https://raw.githubusercontent.com/android/tools_repo/master/repo > ~/bin/repo
$
chmod a+x ~/bin/repo
$
export PATH=~/bin:$PATH
2
)
Execute the following instructions to obtain Android source code;
$
mkdir ~/android-imx6-kk4.4.2-1.0.0
$
cd ~/android-imx6-kk4.4.2-1.0.0
$
repo init --no-repo-verify --repo-url=git://github.com/android/tools_repo.git -u
git://github.com/embest-tech/imx-manifest.git -m embest_android_kk4.4.2_1.0.0
$
repo sync
Note:
Android source code can also be downloaded from
the “Download” tab on
the page of
SBC9000 at Embest
’s website
. Please execute the following instructions to uncompress
the code after it is downloaded;
$
cd ~
$
tar xvf android-imx6-kk4.4.2-1.0.0-xxx.tar.bz2
(
Replace
“xxx” according to the file
name downloaded
)
3
)
Open the file
“BoardConfig.mk” saved under
“android-imx6-kk4.4.2-1.0.0/device/fsl/sbc9000_6solo/” with the notepad and modify
the parameter
“BUILD_TARGET_LOCATION” by referring to the following options to
choose a boot mode;
eMMC boot mode: BUILD_TARGET_LOCATION
?
=emmc
TF card boot mode: BUILD_TARGET_LOCATION
?
=sdmmc
4
)
Execute the following instructions to compile Android images;
$
cd ~/android-imx6-kk4.4.2-1.0.0
$
source build/envsetup.sh