Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4: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
Last revision Both sides next revision
products:sbc:vim4:development:android:build-android [2022/07/06 09:45]
nick
products:sbc:vim4:development:android:build-android [2022/09/28 09:46]
nick
Line 1: Line 1:
-{{indexmenu_n>3}}+{{indexmenu_n>15}}
  
  
-====== Build Android ====== +====== VIM4 Build Android ======
  
 ===== Preparations ===== ===== Preparations =====
  
-- [x] [[http://source.android.com/source/initializing.html|Establishing a Build Environment]] +  * [[http://source.android.com/source/initializing.html|Set up a Build Environment]] 
-[x] [[DownloadAndroidSourceCode.html:|Downloading the Android Source]] +  [[products:sbc:vim4:development:android:download-android-source-code|Downloading the Android Source]] 
-[x] [[InstallToolchains|Install Toolchains for the Amlogic Platform]] +  [[products:sbc:vim4:development:android:install-toolchains|Install Toolchains for the Amlogic Platform]]
  
 ===== Building ===== ===== Building =====
Line 16: Line 14:
  
 <WRAP important > <WRAP important >
-Before you start to build, make sure you have done all the ''Preparations'' listed above.+Make sure you have done all the ''Preparations'' listed above before getting started.
 </WRAP> </WRAP>
  
  
-**Build U-Boot:**+==== Build U-Boot ====
  
-```sh+```shell
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
 $ cd bootloader/uboot $ cd bootloader/uboot
Line 32: Line 30:
   * ''build/u-boot.bin.sd.bin'': for external TF card booting   * ''build/u-boot.bin.sd.bin'': for external TF card booting
  
-**Build Linux Kernel:**+==== Build Linux Kernel ====
  
-```sh+ 
 +```shell
 $ ./mk kvim4 -v 5.4 -jN $ ./mk kvim4 -v 5.4 -jN
 ``` ```
Line 43: Line 42:
  
  
-**Build Android:**+==== Build Android ==== 
  
-```sh+```shell
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
 $ . build/envsetup.sh $ . build/envsetup.sh
Line 52: Line 52:
 ``` ```
  
-Gernerate images in this step: +Gernerate images in this step: ''out/target/product/TARGET/update.img''.
- +
-  * ''out/target/product/TARGET/update.img''+
  
  
 <WRAP important > <WRAP important >
-  * VIM4 compiling Android will not compile the Linux Kernel at the same time as VIM3.+  * Unlike VIM3,  VIM4 doesn't support compiling Android and Linux Kernel at the same time.
   * Replace ''N'' with the actual number of threads on your own computer   * Replace ''N'' with the actual number of threads on your own computer
   * Replace ''TARGET_LUNCH'' to your lunch select.   * Replace ''TARGET_LUNCH'' to your lunch select.
Line 66: Line 64:
  
  
- +==== Build Script Demo ====
- +
-**Made your own compiled script demo:**+
  
 ```sh demo.sh ```sh demo.sh
Line 105: Line 101:
 ``` ```
  
-```sh +**Build U-Boot:** 
-#build U-Boot+```shell
 $ ./demo.sh u $ ./demo.sh u
 +```
  
-#build Kernel+**Build Kernel:** 
 + 
 +```shell
 $ ./demo.sh k $ ./demo.sh k
 +```
  
-#build Android+**Build Android:** 
 + 
 +```shell
 $ ./demo.sh a $ ./demo.sh a
 +```
 +
 +**Build all:**
  
-#build all+```shell
 $ ./demo.sh n $ ./demo.sh n
 ``` ```
  
Last modified: 2023/08/22 21:23 by goenjoy