Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3: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
products:sbc:vim3:development:android:install-toolchains [2022/09/28 09:43]
nick
products:sbc:vim3:development:android:install-toolchains [2024/09/18 22:03] (current)
william
Line 7: Line 7:
 The Amlogic Platform requires extra toolchains for cross-compiling, you will need to follow these steps to setup. The Amlogic Platform requires extra toolchains for cross-compiling, you will need to follow these steps to setup.
  
-===== Toolchains for U-Boot =====+===== Install directly on PC =====
  
-Install Cross Compiler for U-Boot BL:+Install Cross Compiler for U-Boot BL.
 ```shell ```shell
 $ sudo apt-get install gcc-arm-none-eabi $ sudo apt-get install gcc-arm-none-eabi
Line 18: Line 18:
 $ sudo tar -xjf gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -C /opt/toolchains $ sudo tar -xjf gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -C /opt/toolchains
 ``` ```
- +Install Cross-Compiler for Linux Kernel.
-===== Toolchains for Linux Kernel ===== +
- +
-Install Cross-Compiler for Linux Kernel:+
 ```shell ```shell
 $ wget https://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz $ wget https://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz
Line 28: Line 25:
 $ sudo tar xvJf gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz -C /opt/toolchains $ sudo tar xvJf gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz -C /opt/toolchains
 $ sudo tar xvJf gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz -C /opt/toolchains $ sudo tar xvJf gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz -C /opt/toolchains
 +```
 +===== 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
 ``` ```
  
  
Last modified: 2022/09/28 09:43 by nick