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 [2024/06/26 21:41]
xiong [Build U-Boot]
products:sbc:vim3:development:android:build-android [2024/10/28 02:35] (current)
xiong
Line 29: Line 29:
 $ cd bootloader/uboot $ cd bootloader/uboot
 $ ./mk TARGET --vab $ ./mk TARGET --vab
-$ cp build/u-boot.bin ../../device/khadas/kvim3/bootloader.img +$ cp build/u-boot.bin ../../device/khadas/TARGET/bootloader.img 
-$ cp build/u-boot.bin.sd.bin ../../device/khadas/kvim3/upgrade/ +$ cp build/u-boot.bin.sd.bin ../../device/khadas/TARGET/upgrade/ 
-$ cp build/u-boot.bin.usb.* ../../device/khadas/kvim3/upgrade/+$ cp build/u-boot.bin.usb.* ../../device/khadas/TARGET/upgrade/
 ``` ```
  
Line 39: Line 39:
   * ''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 ====
 +
 +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:
 +
 +**android 9.0:**
 +```shell
 +$ make bootimage
 +```
 +
 +**android 11.0:**
 +```shell
 +$ ./mk TARGET -v 4.9
 +```
 ==== Build Android ==== ==== Build Android ====
  
 +**android 9.0:**
 ```shell ```shell
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
Line 49: Line 65:
  
 Gernerate images: ''out/target/product/TARGET/update.img''. Gernerate images: ''out/target/product/TARGET/update.img''.
 +
 +**android 11.0:**
 +```shell
 +$ cd PATH_YOUR_PROJECT
 +$ export BOARD_COMPILE_ATV=false
 +$ export BOARD_COMPILE_CTS=false
 +$ source build/envsetup.sh
 +$ lunch TARGET_LUNCH
 +$ make -jN otapackage
 +```
 +
 +Gernerate images: ''out/target/product/TARGET/aml_upgrade_package.img''.
  
 <WRAP info > <WRAP info >
Line 57: Line 85:
   * ''TARGET'' should be ''kvim3'' or kvim3l''.   * ''TARGET'' should be ''kvim3'' or kvim3l''.
 </WRAP> </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 ===== ===== See Also =====
Last modified: 2024/06/26 21:41 by xiong