Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim-5:development:android:install-toolchains

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:vim-5:development:android:install-toolchains [2026/09/15 02:59]
nick
products:sbc:vim-5:development:android:install-toolchains [2026/10/29 06:20] (current)
goenjoy
Line 4: Line 4:
 ====== VIM 5 Install Toolchains ====== ====== VIM 5 Install Toolchains ======
  
-TODO+===== Introduction ===== 
 + 
 +To build the VIMs SDK source code, you need to install the extra toolchains for cross-compiling. 
 + 
 +==== Install directly on PC ==== 
 + 
 +1. The following software packages of Ubuntu 16.04 (64-bit) shall be installed for compiling Android. 
 + 
 +```shell 
 +$ sudo apt-get update 
 +$ sudo apt-get install openjdk-8-jdk automake make git gperf zip dos2unix bison perl gcc g++ tig pkg-config cpp-aarch64-linux-gnu 
 +$ sudo apt-get install unzip lib32z1 libx11-dev lib32z-dev ccache gitk libxml2-utils libssl-dev flex libncurses5 xmllint 
 +``` 
 + 
 +2. Toolchains for U-Boot. 
 + 
 +```shell 
 +$ cd /opt/ 
 +$ sudo wget https://dl.khadas.com/products/vim5/tools/arm-gnu-toolchain-13.3.rel1-x86_64-aarch64-none-elf.tar.xz 
 +$ sudo tar -xvJf arm-gnu-toolchain-13.3.rel1-x86_64-aarch64-none-elf.tar.xz -C /opt 
 +``` 
 + 
 +3. Toolchains for the Linux kernel. 
 + 
 +```shell 
 +sudo apt-get install gcc-4.8-aarch64-linux-gnu  
 +``` 
 +The main toolchain for the Linux kernel is provided in the SDK `prebuilts/clang/host/linux-x86/clang-r383902/bin`. 
 + 
 +==== Use docker container ==== 
 + 
 +1. Install docker. 
 + 
 +```shell 
 +$ sudo apt update 
 +$ sudo apt install docker docker.io 
 +``` 
 +2. Pull the khadas docker image. 
 + 
 +```shell 
 +$ sudo docker pull wesion/khadas_android:v0.6 
 +``` 
 + 
 +3. Run the docker container using the following command. 
 + 
 +```shell 
 +$ sudo docker run --privileged -i -t -v /home/you_name:/home/android wesion/khadas_android:v0.6 bash 
 +``` 
 +===== Further Reading ===== 
 + 
 +[[http://openlinux.amlogic.com/|Amlogic Openlinux Website]]. 
  
Last modified: 2026/09/15 02:59 by nick