The android system version used by the tiny4412 development board is android5.0.2, which is provided by Friendly Arm Company. The download URL is:
https://pan.baidu.com/s/1pnn6N8Wpsx8PISLmKT59iQ
After the system source code is downloaded, unzip it, tar -zxvf android-5.0.2-fs-20160511.tar.gz
Enter the android5.0.2 system source directory, cd android-5.0.2/
Configure the build environment, .setenv
configure, lunch
The following interface is displayed:
Select 15. full_tiny4412-eng to compile the android system based on the tiny4412 engineering version.
Compile: make -j2
It takes a few hours to compile here
Modify the gen-img.sh file gedit gen-img.sh &
Modify MINITOOLS_PATH to $PWD
Run gen-img.sh ./gen-img.sh
According to the code of the shell script file gen-img.sh, we can analyze that this script file mainly does the following three things
1、
Copy the manufacturer's files to the system you compiled and generated.
2、
Use the make_ext4fs tool to repackage the system directory into system.img
3
Use the tool make_ext4fs to repackage the data directory into three images of userdata-4g.img, userdata-8g.img and userdata-16g.img, which are used for boards with different emmc capacities
4
Use the tool make_ext4fs to repackage the out/target/product/tiny4412/root directory into a ramdisk.img image
In general, this script is repackaged into new system.img, ramdisk.img and userdata-*g.img based on the modified system directory, data directory and root directory. Tiny4412 development board has been provided for use