<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http://wiki.myzr.com.cn/index.php?action=history&amp;feed=atom&amp;title=MYZR-A40I-EK204_android_Build_Reference_Manual</id>
		<title>MYZR-A40I-EK204 android Build Reference Manual - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.myzr.com.cn/index.php?action=history&amp;feed=atom&amp;title=MYZR-A40I-EK204_android_Build_Reference_Manual"/>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MYZR-A40I-EK204_android_Build_Reference_Manual&amp;action=history"/>
		<updated>2026-05-25T03:10:29Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://wiki.myzr.com.cn/index.php?title=MYZR-A40I-EK204_android_Build_Reference_Manual&amp;diff=4036&amp;oldid=prev</id>
		<title>Admin：创建页面，内容为“The download of the source code package needs to be downloaded from the network disk provided by us.&lt;br&gt; After downloading to the computer, it needs to be copied to...”</title>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MYZR-A40I-EK204_android_Build_Reference_Manual&amp;diff=4036&amp;oldid=prev"/>
				<updated>2022-04-11T06:49:19Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“The download of the source code package needs to be downloaded from the network disk provided by us.&amp;lt;br&amp;gt; After downloading to the computer, it needs to be copied to...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The download of the source code package needs to be downloaded from the network disk provided by us.&amp;lt;br&amp;gt;&lt;br /&gt;
After downloading to the computer, it needs to be copied to the virtual machine via Samba or other methods.&amp;lt;br&amp;gt;&lt;br /&gt;
​We can create an A40I-specific directory to store related source code, compilation tools and some things that will be used later.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, my directory is: **/home/liangyh/my-work/A40I**, in this directory I created 4 subdirectories:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
liangyh@FS12:~/my-work/A40I$ ls&lt;br /&gt;
01_image 02_sources 03_toolchain 04_app&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
​	​Directory 01 can be used to place our compiled image (will be explained later)&lt;br /&gt;
&lt;br /&gt;
​	​Directory 02 is used to place source code&lt;br /&gt;
&lt;br /&gt;
​	​Directory 03 is to place the cross-compilation tool configuration script&lt;br /&gt;
&lt;br /&gt;
​	​Directory 04 we can use to place our own applications (assigned by the user)&lt;br /&gt;
&lt;br /&gt;
​	Copy the source package to the ~/my-work/A40I/02_sources directory in the virtual machine using Samba or other methods&lt;br /&gt;
&lt;br /&gt;
​	And then unzip the source package to the current directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
~/my-work/A40I/02_sources$ cat android7.1_v3.tar.bz2* | tar xjv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## **android source code compilation**&lt;br /&gt;
&lt;br /&gt;
**The source code is compiled using the script, the cross-compilation tool is automatically configured, the source code is compiled, and finally the board image file is packaged and generated.**&lt;br /&gt;
&lt;br /&gt;
**1. Compile lichee**&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$ cd ~/my-work/A40I/02_sources/android7.1_v3/lichee&lt;br /&gt;
$ ./build.sh&lt;br /&gt;
=====&amp;gt; Output:&lt;br /&gt;
INFO: ----------------------------------------&lt;br /&gt;
INFO: build lichee ...&lt;br /&gt;
INFO: chip: sun8iw11p1&lt;br /&gt;
INFO: platform: androidm&lt;br /&gt;
INFO: kernel: linux-3.10&lt;br /&gt;
INFO: board: a40-myzr&lt;br /&gt;
INFO: output: out/sun8iw11p1/androidm/a40-myzr&lt;br /&gt;
INFO: ----------------------------------------&lt;br /&gt;
&lt;br /&gt;
......&lt;br /&gt;
&lt;br /&gt;
#### make completed successfully (23:30 (mm:ss)) ####&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**2. Compile Android**&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$ cd ../android&lt;br /&gt;
$ source build/envsetup.sh&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output:&lt;br /&gt;
lincluding device/asus/fugu/vendorsetup.sh&lt;br /&gt;
including device/generic/mini-emulator-arm64/vendorsetup.sh&lt;br /&gt;
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh&lt;br /&gt;
including device/generic/mini-emulator-mips64/vendorsetup.sh&lt;br /&gt;
&lt;br /&gt;
......&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$ lunch a40_myzr-user&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output:&lt;br /&gt;
============================================&lt;br /&gt;
PLATFORM_VERSION_CODENAME=REL&lt;br /&gt;
PLATFORM_VERSION=7.1.1&lt;br /&gt;
TARGET_PRODUCT=a40_myzr&lt;br /&gt;
&lt;br /&gt;
......&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**3. Match the image in the compiled lichee**&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$ extract-bsp&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output:&lt;br /&gt;
/home/liangyh/my-work/A40I/02_sources/android7.1_v3/android/device/softwinner/a40-myzr/bImage copied!&lt;br /&gt;
/home/liangyh/my-work/A40I/02_sources/android7.1_v3/android/device/softwinner/a40-myzr/modules copied!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**4. Compile：**&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$ make -j16&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output:&lt;br /&gt;
......&lt;br /&gt;
&lt;br /&gt;
Creating filesystem with parameters:&lt;br /&gt;
    Size: 1610612736&lt;br /&gt;
    Block size: 4096&lt;br /&gt;
    Blocks per group: 32768&lt;br /&gt;
    Inodes per group: 8192&lt;br /&gt;
    Inode size: 256&lt;br /&gt;
    Journal blocks: 6144&lt;br /&gt;
    Label: system&lt;br /&gt;
    Blocks: 393216&lt;br /&gt;
    Block groups: 12&lt;br /&gt;
    Reserved block group size: 95&lt;br /&gt;
Created filesystem with 2442/98304 inodes and 171693/393216 blocks&lt;br /&gt;
[100% 28462/28462] Install system fs image: out/target/product/a40-myzr/system.img&lt;br /&gt;
out/target/product/a40-myzr/system.img+out/target/product/a40-myzr/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=1644331392 blocksize=4224 total=680351248 reserve=16612992&lt;br /&gt;
&lt;br /&gt;
#### make completed successfully (01:02:01 (hh:mm:ss)) ####&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**5. Package firmware：**&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$ pack&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output:&lt;br /&gt;
......&lt;br /&gt;
&lt;br /&gt;
Dragon execute image.cfg SUCCESS !&lt;br /&gt;
----------image is at----------&lt;br /&gt;
&lt;br /&gt;
/home/liangyh/my-work/A40I/02_sources/android7.1_v3/lichee/tools/pack/sun8iw11p1_androidm_a40-myzr_uart0.img&lt;br /&gt;
&lt;br /&gt;
pack finish&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>