Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:development:android:download-android-source-code

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
Next revision Both sides next revision
products:sbc:vim4:development:android:download-android-source-code [2022/08/05 02:05]
ruby
products:sbc:vim4:development:android:download-android-source-code [2022/09/08 09:02]
goenjoy
Line 1: Line 1:
-====== VIM4Download Android Source Code ======+====== VIM4 Download Android Source Code ======
  
 ===== Introduction ===== ===== Introduction =====
Line 9: Line 9:
 ===== Steps ===== ===== Steps =====
  
-First, install git-lfs tool to download Android 11.0 SDK+Install git-lfs tool to download Android 11.0 SDK
  
 ```shell ```shell
Line 31: Line 31:
  
 ```shell ```shell
-$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-vim4-r+$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-vim4-r-64bit
 ``` ```
  
-3) Run ''repo sync'' to pull down the Android Source Tree:+3) Run ''repo sync'' to pull down the Android Source branch:
  
 ```shell ```shell
 $ repo sync -j4 $ repo sync -j4
 ``` ```
-Second, the initial sync operation may take an hour or more to complete.+It will take approx one hour to complete the initial sync operation.
  
  
 <WRAP important > <WRAP important >
-You might need to run above command repeatly if it fails halfway. Or you can try with this script instead:+If ''repo sync'' operation failed, you need to run the command repeatly; or you can try with this script:
  
 ```shell ```shell
Line 58: Line 58:
 </WRAP> </WRAP>
  
 +4) Based on different unbutu versions, the following operations may be required to pull large files(Otherwise, the corresponding file is small and incorrect).
 +You need to go to the following three directories and use the 'git lfs pull' command to pull large files, otherwise an [error](https://forum.khadas.com/t/cannot-build-an-android/15886) will be reported during compilation:
 +```shell
 +vendor/amlogic/common
 +device/khadas/kvim4-kernel
 +device/khadas
 +```
 +```shell
 +xxx@server:/users/vim4$ cd vendor/amlogic/common
 +xxx@server:/users/vim4/vendor/amlogic/common$ git lfs pull
 +Git LFS: (6 of 6 files) 239.31 MB / 239.31 MB                                                                                                                                                                                         
 +xxx@server:/users/vim4/vendor/amlogic/common$ cd -
 +/users/vim4
 +xxx@server:/users/vim4$ cd device/khadas/
 +xxx@server:/users/vim4/device/khadas$ 
 +xxx@server:/users/vim4/device/khadas$ git lfs pull
 +Git LFS: (2 of 2 files) 231.89 MB / 231.89 MB                                                                                                                                                                                             
 +xxx@server:/users/vim4/device/khadas$ cd kvim4-kernel/
 +xxx@server:/users/vim4/device/khadas/kvim4-kernel$ 
 +xxx@server:/users/vim4/device/khadas/kvim4-kernel$ git lfs pull    
 +Git LFS: (4 of 4 files) 451.79 MB / 451.79 MB                                                                                                                                                                                             
 +xxx@server:/users/vim4/device/khadas/kvim4-kernel$
 +```
  
- +5) Begin a new branch for development:
-4) Begin a new branch for development:+
  
 ```shell ```shell
Last modified: 2022/09/28 09:45 by nick