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
products:sbc:vim4:development:android:build-android [2024/11/01 05:24]
goenjoy
products:sbc:vim4:development:android:build-android [2024/11/26 20:09] (current)
goenjoy
Line 18: Line 18:
  
 <tabbox Android 14> <tabbox Android 14>
-==== Build U-Boot ====+**Build U-Boot:**
  
 ```shell ```shell
Line 30: 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:**
  
  
Line 42: Line 42:
  
  
-==== Build Android ====+**Build Android:**
  
  
Line 48: Line 48:
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
 $ . build/envsetup.sh $ . build/envsetup.sh
-$ lunch TARGET_LUNCH+$ lunch kvim4_arm64-userdebug
 $ make aml_upgrade -jN $ make aml_upgrade -jN
 $ make -jN otapackage $ make -jN otapackage
 ``` ```
  
-Gernerate images in this step: ''out/target/product/TARGET/update.img''.+Gernerate images in this step: ''out/target/product/kvim4/update.img''.
  
  
 <WRAP important > <WRAP important >
-  * 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. +
-    * For VIM4, it's ''kvim4_arm64-userdebug''. +
 </WRAP> </WRAP>
  
  
-==== Build Script Demo ==== +**Build Script Demo:**
 ```sh demo.sh ```sh demo.sh
 $ cat demo.sh $ cat demo.sh
Line 114: Line 109:
  
 <tabbox Android 11> <tabbox Android 11>
-==== Build U-Boot ====+**Build U-Boot:**
  
 ```shell ```shell
Line 126: Line 121:
   * ''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:**
  
  
Line 138: Line 133:
  
  
-==== Build Android ==== +**Build Android:**
  
 ```shell ```shell
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
 $ . build/envsetup.sh $ . build/envsetup.sh
-$ lunch TARGET_LUNCH+$ lunch kvim4-userdebug
 $ make -jN otapackage $ make -jN otapackage
 ``` ```
  
-Gernerate images in this step: ''out/target/product/TARGET/update.img''.+Gernerate images in this step: ''out/target/product/kvim4/update.img''.
  
  
 <WRAP important > <WRAP important >
-  * 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. +
-    * For VIM4, it's ''kvim4-userdebug''. +
 </WRAP> </WRAP>
  
  
-==== Build Script Demo ====+**Build Script Demo:**
  
 ```sh demo.sh ```sh demo.sh
Last modified: 2024/11/01 05:24 by goenjoy