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
Next revision Both sides next 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 [2022/09/08 22:49]
hyphop [Build Script Demo]
Line 2: Line 2:
  
  
-====== VIM4 Build Android ======+====== VIM1S 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] [[products:sbc:vim4:development:android:download-android-source-code|Downloading the Android Source]] +  - [[products:sbc:vim1s:development:android:download-android-source-code]] 
-  - [x] [[products:sbc:vim4:development:android:install-toolchains|Install Toolchains for the Amlogic Platform]] +  - [[products:sbc:vim1s:development:android:install-toolchains]]
  
 ===== Building ===== ===== Building =====
Line 15: 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>
  
Line 24: Line 23:
 $ 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 34:
  
 ```shell ```shell
-$ ./mk kvim4 -v 5.4 -jN+$ ./mk kvim1s -v 5.4 -jN
 ``` ```
  
Line 57: Line 56:
  
 <WRAP important > <WRAP important >
-  * VIM4 compiling Android will not compile the Linux Kernel at the same time as VIM3.+  * Unlike VIM3,  VIM1S 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.
-    * For VIM4, it's ''kvim4-userdebug''.+    * For VIM1S, it's ''kvim1s-userdebug''.
  
 </WRAP> </WRAP>
Line 68: Line 67:
  
 ```sh demo.sh ```sh demo.sh
-$ cat demo.sh 
 #!/bin/bash #!/bin/bash
  
Line 75: Line 73:
  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 85: Line 83:
  make distclean  make distclean
 fi  fi
- ./mk kvim4 -v 5.4 -j100+ ./mk kvim1s -v 5.4 -j100
 fi fi
  
Line 95: Line 93:
 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: 2023/08/22 21:24 by goenjoy