Andrews Android9.0 be compiled and developed based on i.MX8 development board

Andrews Android with its rich ecological environment, and fast application development and distribution, access to a wide range of market attention. Mir latest processor-based NXP iMX8 MYD-JX8MX core board and the development board also provides Android 9.0 support. Here we will introduce as from source to start compiling Andrews Android 9.0.

i.MX8 development board IntroductionPlease add a link description http://www.myir-tech.com/product/myc-jx8mx.htm

Deploy development environment

Development needs to be installed before the PC is good Linux operating system, is recommended for shooting Ubuntu 16.04 64bit release, 8G memory, 500G or more of free hard disk. Connecting a network cable and configured, the subsequent mounting operation requires an Internet connection or download package. NXP can refer to the official documentation "Android_User's_Guide.pdf".

Alternatively Ubuntu source software procedure is as follows:
1. the backup source /etc/apt/sources.list /etc/apt/sources.list-bak CP 
2. Copy the contents of this /etc/apt/sources.list 16.04 Tsinghua source file. 
3. Update Source
apt-get update
PS: In case of appstream3 error can delete the packages before update.

Install the prerequisite packages

Newly installed Ubuntu system also need to install some commonly used software, execute the following command to install.

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsd l1.2-dev u-boot-tools 

sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff cu rl lzop asciidoc 

Set repo file

repo is used to download resource files, stored in a 03-Tools / Repo directory, add the following operations this file to the user environment.
 

mkdir ~/bin 
cp ~/03-Tools/Repo/repo ~/bin 
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH 

Configure git

Need to use git, follows the basic configuration when the resources to download, the user name and mailbox name change for the user name.

git config --global user.name "abc123" 
git config --global user.email "[email protected]"
git config --list

3. Android system to compile and burn

Android image compilation requires much time, it can be compiled to burn development board view mirror effect, using UUU burn burn. Here in this section we will first describe how the image burned into EMMC and SD card, and then describes the compiler mirroring.

3.1 Android mirroring method of burning EMMC

Compiled mirror located 02-Image catalog, the android_p9.0.0_2.0.0-ga_image_8mq-myd-MT53D512M32D2DS-053.zip into the WINDOWS system decompression.

UUU burning will create a soft link, so please open cmd with administrator privileges, as shown below:
Andrews Android9.0 be compiled and developed based on i.MX8 development board

Jump to extract the directory, execute

 uuu_imx_android_flash.bat -f imx8mq -a -e -c 7
Andrews Android9.0 be compiled and developed based on i.MX8 development board

Next, make sure the development board is not inserted, such as TF TF card slot, a port TypeC end computer, the other end of the bottom plate tyepC port (J8), the DIP switch is set to (sw1) LLHL (sw2) HL, and power.
Andrews Android9.0 be compiled and developed based on i.MX8 development board

Burning process is as follows:
Andrews Android9.0 be compiled and developed based on i.MX8 development board

After programming, the DIP switch is set to (sw1) LLHL (sw2) LH to start.

3.2 Android mirroring burning SD method 
compiled mirror located 02-Image catalog, the android_p9.0.0_2.0.0-ga_image_8mq-myd-MT53D512M32D2DS-053.zip into the WINDOWS system decompression. UUU burning will create a soft link, so please open cmd with administrator privileges, as shown below:
Andrews Android9.0 be compiled and developed based on i.MX8 development board

Jump to extract the directory, execute

uuu_imx_android_flash.bat -f imx8mq -a -e -c 7 -t sd

Andrews Android9.0 be compiled and developed based on i.MX8 development board
Next, make sure the development board is not inserted, such as TF TF card slot, a TypeC end computer, the other end of the bottom plate tyepC port (J8), the DIP switch is set to (sw1) HHLL (sw2) HL, and power.
Andrews Android9.0 be compiled and developed based on i.MX8 development board

Burning process is as follows:
Andrews Android9.0 be compiled and developed based on i.MX8 development board

After reaching 3/3 insert TF card, please note this time.
Andrews Android9.0 be compiled and developed based on i.MX8 development board

After programming, the DIP switch is set to (sw1) HHLL (sw2) LH to start.
 
3.3 Android mirroring compilation method
, please extract the source myir_android9.0.0_2.0.0.tar.gz, then you can begin to compile the implementation of source myir_build.sh

mkdir android_dir 
tar -zxf myir_android9.0.0_2.0.0.tar.gz -C android_dir
cd android_dir
source myir_build.sh 

myir_build.sh in

snip 
#build_bootloader 
#build_kernel 
#build_dtbo 
make -j4 2>&1 | tee build-log.txt

build_bootloader compiler
uboot build_kernel compiled
kernel build_dtbo file compiled dtbo
make -j4 2> 1 & | full compilation tee build-log.txt

Andrews Android9.0 above compilation, burning and the methods used i.MX8 based boards. i.MX8 development board IntroductionPlease add a link description http://www.myir-tech.com/product/myc-jx8mx.htm

Guess you like

Origin blog.51cto.com/14441885/2449425