This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:vim3:development:android:install-toolchains [2022/07/06 10:12] 127.0.0.1 external edit |
products:sbc:vim3:development:android:install-toolchains [2024/09/18 22:03] (current) william |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Install | + | {{indexmenu_n> |
+ | |||
+ | |||
+ | |||
+ | ====== | ||
+ | |||
+ | The Amlogic Platform requires extra toolchains for cross-compiling, | ||
+ | |||
+ | ===== Install directly on PC ===== | ||
+ | |||
+ | 1 Install Cross Compiler for U-Boot BL. | ||
+ | ```shell | ||
+ | $ sudo apt-get install gcc-arm-none-eabi | ||
+ | $ wget https:// | ||
+ | $ wget https:// | ||
+ | $ sudo mkdir / | ||
+ | $ sudo tar -xjf gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.bz2 -C / | ||
+ | $ sudo tar -xjf gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -C / | ||
+ | ``` | ||
+ | 2 Install Cross-Compiler for Linux Kernel. | ||
+ | ```shell | ||
+ | $ wget https:// | ||
+ | $ wget https:// | ||
+ | $ sudo mkdir / | ||
+ | $ sudo tar xvJf gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz -C / | ||
+ | $ sudo tar xvJf gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz -C / | ||
+ | ``` | ||
+ | ===== 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/ | ||
+ | ``` | ||
+ | |||
+ | 3. Run the docker container using the following command. | ||
+ | |||
+ | ```shell | ||
+ | $ sudo docker run --privileged -i -t -v / | ||
+ | ``` | ||
- | ===== Introduction ===== | ||