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:50]
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>
  
Line 22: Line 20:
 ==== Build U-Boot ==== ==== Build U-Boot ====
  
-```sh+```shell
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
 $ cd bootloader/uboot $ cd bootloader/uboot
Line 35: Line 33:
  
  
-```sh+```shell
 $ ./mk kvim4 -v 5.4 -jN $ ./mk kvim4 -v 5.4 -jN
 ``` ```
Line 47: Line 45:
  
  
-```sh+```shell
 $ cd PATH_YOUR_PROJECT $ cd PATH_YOUR_PROJECT
 $ . build/envsetup.sh $ . build/envsetup.sh
Line 58: Line 56:
  
 <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 104: Line 102:
  
 **Build U-Boot:** **Build U-Boot:**
-```sh+```shell
 $ ./demo.sh u $ ./demo.sh u
 ``` ```
Line 110: Line 108:
 **Build Kernel:** **Build Kernel:**
  
-```sh+```shell
 $ ./demo.sh k $ ./demo.sh k
 ``` ```
Line 116: Line 114:
 **Build Android:** **Build Android:**
  
-```sh+```shell
 $ ./demo.sh a $ ./demo.sh a
 ``` ```
Line 122: Line 120:
 **Build all:** **Build all:**
  
-```sh+```shell
 $ ./demo.sh n $ ./demo.sh n
 ``` ```
  
Last modified: 2023/08/22 21:23 by goenjoy