Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim1s:development:android:build-android

Differences

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

Link to this comparison view

Next revision
Previous revision
products:sbc:vim1s:development:android:build-android [2022/07/17 21:31]
127.0.0.1 external edit
products:sbc:vim1s:development:android:build-android [2023/08/22 21:24] (current)
goenjoy
Line 1: Line 1:
-{{indexmenu_n>3}} 
  
 +{{indexmenu_n>15}}
  
-====== VIM4 Build Android ====== 
  
-===== Preparations =====+====== VIM1S Build Android ======
  
-  - [x] [[http://source.android.com/source/initializing.html|Establishing a Build Environment]] +===== Preparations =====
-  - [x] [[products:sbc:vim4:development:android:download-android-source-code|Downloading the Android Source]] +
-  - [x] [[products:sbc:vim4:development:android:install-toolchains|Install Toolchains for the Amlogic Platform]]+
  
 +  * [[http://source.android.com/source/initializing.html|Setup the Build Environment]]
 +  * [[products:sbc:vim1s:development:android:download-android-source-code]]
 +  * [[products:sbc:vim1s:development:android:install-toolchains]]
  
 ===== Building ===== ===== Building =====
Line 15: Line 15:
  
 <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>
  
Line 24: Line 24:
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
 $ cd bootloader/uboot $ cd bootloader/uboot
-$ ./mk kvim4 --avb2 --vab+$ ./mk kvim1s
 ``` ```
 Gernerate images in this step: Gernerate images in this step:
Line 35: Line 35:
  
 ```shell ```shell
-$ ./mk kvim4 -v 5.4 -jN+$ ./mk kvim1s -v 5.4 -jN
 ``` ```
  
Line 57: Line 57:
  
 <WRAP important > <WRAP important >
-  * VIM4 compiling Android will not compile the Linux Kernel at the same time as VIM3.+  * When compiling Android for VIM3, both Android and the kernel are compiled together. For VIM1S, only Android is compiled, the kernel has to be compiled separately.
   * 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.
-    * For VIM4, it's ''kvim4-userdebug''.+    * For VIM1S, it's ''kvim1s-userdebug''.
  
 </WRAP> </WRAP>
Line 68: Line 68:
  
 ```sh demo.sh ```sh demo.sh
-$ cat demo.sh 
 #!/bin/bash #!/bin/bash
  
Line 75: Line 74:
  echo "build U-Boot"  echo "build U-Boot"
  cd bootloader/uboot  cd bootloader/uboot
- ./mk kvim4 --avb2 --vab + ./mk kvim1s
  cd -  cd -
 fi fi
Line 83: Line 82:
  echo "build Kernel"  echo "build Kernel"
 if [ "$2" == 'n' ] || [ "$1" == 'n' ]; then if [ "$2" == 'n' ] || [ "$1" == 'n' ]; then
 + . build/envsetup.sh 
 + lunch kvim1s-userdebug 
  make distclean  make distclean
 fi  fi
- ./mk kvim4 -v 5.4 -j100+ ./mk kvim1s -v 5.4 -j100
 fi fi
  
Line 92: Line 93:
  echo "build Android"  echo "build Android"
 if [ "$2" == 'n' ] || [ "$1" == 'n' ]; then if [ "$2" == 'n' ] || [ "$1" == 'n' ]; then
 + . build/envsetup.sh 
 + lunch kvim1s-userdebug 
  make clean  make clean
 fi   fi  
  . build/envsetup.sh   . build/envsetup.sh 
- lunch kvim4-userdebug + lunch kvim1s-userdebug 
  make installclean  make installclean
  #make -j80 otapackage  #make -j80 otapackage
Last modified: 2022/07/17 21:31 by 127.0.0.1