This shows you the differences between two versions of the page.
tutorials:ct1:installation:cb3_a20-compiling_android_image_for_cubietruck [2013/11/04 10:21] james [Build Linux kernel] |
tutorials:ct1:installation:cb3_a20-compiling_android_image_for_cubietruck [2014/09/19 17:56] (current) parker [Building environment for Android] |
||
---|---|---|---|
Line 7: | Line 7: | ||
* **Contributors**: [[http://cubieboard.org/|Cubieboard Community]] : ... | * **Contributors**: [[http://cubieboard.org/|Cubieboard Community]] : ... | ||
</WRAP></WRAP> | </WRAP></WRAP> | ||
+ | |||
+ | |||
+ | ===== Building environment for Android ===== | ||
+ | Refer to the link:[[http://docs.cubieboard.org/tutorials/cb1/development/cubieboard/building_environment_for_android|Building environment for Android]] | ||
===== Download the source code ===== | ===== Download the source code ===== | ||
- | $mkdir cubietruck-android && cd cubietruck-android | + | $mkdir cubietruck_android && cd cubietruck_android |
- | $wget http://dl.cubieboard.org/software/a20-cubieboard/android/A20-android-4.2.tar.xz | + | $wget http://dl.cubieboard.org/software/a20-cubieboard/android/v2.0_A20_android_source.tar.gz |
- | $tar -xvf A20-android-4.2.tar.xz | + | $tar -zxvf v2.0_A20_android_source.tar.gz |
| | ||
===== Compiling image ===== | ===== Compiling image ===== | ||
After get the source code,you could use common to build it as follow: | After get the source code,you could use common to build it as follow: | ||
==== Build Linux kernel ==== | ==== Build Linux kernel ==== | ||
- | $cd lichee/ | + | $cd lichee/linux-3.4/ |
- | $cp linux-3.3/arch/arm/configs/sun7ismp_androidtruck_defconfig linux-3.3/arch/arm/configs/sun7ismp_android_defconfig | + | $cp arch/arm/configs/cubietruck_defconfig .config |
$./build.sh -p sun7i_android | $./build.sh -p sun7i_android | ||
Line 29: | Line 33: | ||
==== Build Android image ==== | ==== Build Android image ==== | ||
- | $cd ../android42 | + | $cd ../android |
$source build/envsetup.sh | $source build/envsetup.sh | ||
- | $lunch 16 (select sugar_cubietruck-eng) | + | $lunch |
+ | |||
+ | {{ :tutorials:ct1:installation:2014-09-19_10_06_22.png?direct |}} | ||
+ | |||
+ | $16 //note:select sugar_cubietruck-eng | ||
$extract-bsp | $extract-bsp | ||
$make -j8 | $make -j8 |