Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:development:android:build-android

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim3:development:android:build-android [2022/07/13 06:14]
nick
products:sbc:vim3:development:android:build-android [2022/09/28 09:51] (current)
nick [See Also]
Line 1: Line 1:
-{{indexmenu_n>3}}+{{indexmenu_n>15}}
  
 +====== VIM3/3L Build Android ======
  
 +===== Preparations =====
  
-====== VIM3/3L Build Android ======+  * [[http://source.android.com/source/initializing.html|Establishing a Build Environment]] 
 +  * [[/products/sbc/vim3/development/android/download-android-source-code|Downloading the Android Source]] 
 +  * [[/products/sbc/vim3/development/android/install-toolchains|Install Toolchains for the Amlogic Platform]] 
 + 
 +===== Building ===== 
 + 
 +<WRAP info > 
 +Before you start to build, make sure you have done all the ''Preparations'' listed above. 
 +</WRAP> 
 + 
 +==== Build U-Boot ==== 
 + 
 +```shell 
 +$ cd PATH_YOUR_PROJECT 
 +$ cd bootloader/uboot 
 +$ ./mk TARGET 
 +``` 
 + 
 +Gernerate images in this step: 
 + 
 +  * ''build/u-boot.bin'': for onboard EMMC storage booting. 
 +  * ''build/u-boot.bin.sd.bin'': for external TF card booting. 
 + 
 +==== Build Android ==== 
 + 
 +```shell 
 +$ cd PATH_YOUR_PROJECT 
 +$ source build/envsetup.sh 
 +$ lunch TARGET_LUNCH 
 +$ make -jN otapackage 
 +``` 
 + 
 +Gernerate images: ''out/target/product/TARGET/update.img''
 + 
 +<WRAP info > 
 +  * Replace ''N'' as the number you want when you run ''make -jN''
 +  * Replace ''TARGET_LUNCH'' to your lunch select. 
 +    * For VIM3, it’s ''kvim3-userdebug''
 +    * For VIM3L, it’s ''kvim3l-userdebug''
 +  * ''TARGET'' should be ''kvim3'' or kvim3l''
 +</WRAP> 
 + 
 +==== Build Linux Kernel ==== 
 + 
 +When you build the Android Kernel (above), the Linux Kernel will also be built simultaneously. 
 + 
 +In some cases, you might want to build the Linux Kernel separately. You can run this script below to do that:
  
 +```shell
 +$ make bootimage
 +```
  
 +===== See Also =====
  
 +  * [[/products/sbc/edge1/install-os/install-os-into-emmc-via-usb-tool|]]
 +  * [[/products/sbc/edge1/install-os/install-os-into-external-storage|]]
Last modified: 2022/07/13 06:14 by nick