Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4: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:vim4:development:android:install-toolchains [2024/07/24 21:29]
goenjoy [Introduction]
products:sbc:vim4:development:android:install-toolchains [2025/05/14 21:30] (current)
nick
Line 6: Line 6:
 ===== Introduction ===== ===== Introduction =====
  
-To build the VIMs SDK source code, you need to install the extra toolchains for cross-compiling:+To build the VIMs SDK source code, you need to install the extra toolchains for cross-compiling.
  
-1. The following software packages of Ubuntu 16.04 (64-bit) shall be installed for compiling Android:+==== Install directly on PC ==== 
 + 
 +1. The following software packages of Ubuntu 16.04 (64-bit) shall be installed for compiling Android.
  
 ```shell ```shell
Line 16: Line 18:
 ``` ```
  
-2. Toolchains for U-Boot:+2. Toolchains for U-Boot.
  
 ```shell ```shell
 $ sudo mkdir /opt/toolchains $ sudo mkdir /opt/toolchains
 $ cd /opt/toolchains $ cd /opt/toolchains
-$ sudo wget https://dl.khadas.com/products/vim4/tool/gcc-linaro-7.3.1-2018.05-i686_aarch64-elf.tar.xz +$ sudo wget https://dl.khadas.com/products/vim4/tools/gcc-linaro-7.3.1-2018.05-i686_aarch64-elf.tar.xz 
-$ sudo wget https://dl.khadas.com/products/vim4/tool/xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz+$ sudo wget https://dl.khadas.com/products/vim4/tools/xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz
 $ sudo tar -xvJf gcc-linaro-7.3.1-2018.05-i686_aarch64-elf.tar.xz -C /opt/toolchains $ sudo tar -xvJf gcc-linaro-7.3.1-2018.05-i686_aarch64-elf.tar.xz -C /opt/toolchains
 $ sudo tar -zxvf xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz -C /opt/toolchains $ sudo tar -zxvf xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz -C /opt/toolchains
 ``` ```
  
-3. Toolchains for the Linux kernel:+3. Toolchains for the Linux kernel.
  
 ```shell ```shell
Line 34: Line 36:
 The main toolchain for the Linux kernel is provided in the SDK `prebuilts/clang/host/linux-x86/clang-r383902/bin`. 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 ===== ===== Further Reading =====
  
 [[http://openlinux.amlogic.com/|Amlogic Openlinux Website]]. [[http://openlinux.amlogic.com/|Amlogic Openlinux Website]].
  
Last modified: 2024/07/24 21:29 by goenjoy