This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:vim4:development:android:install-toolchains [2022/07/13 05:55] nick |
products:sbc:vim4:development:android:install-toolchains [2025/05/14 21:30] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== VIM4 Install | + | {{indexmenu_n> |
| + | |||
| + | |||
| + | ====== VIM4 Install | ||
| ===== 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. Use Ubuntu 16.04 (64-bit) | + | ==== Install directly on PC ==== |
| + | |||
| + | 1. The following software packages of Ubuntu 16.04 (64-bit) | ||
| ```shell | ```shell | ||
| $ sudo apt-get update | $ 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 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 xmllint | + | $ sudo apt-get install unzip lib32z1 libx11-dev lib32z-dev ccache gitk libxml2-utils libssl-dev |
| ``` | ``` | ||
| - | 2. Toolchains | + | 2. Toolchains for U-Boot. |
| ```shell | ```shell | ||
| $ sudo mkdir / | $ sudo mkdir / | ||
| $ cd / | $ cd / | ||
| - | $ wget https:// | + | $ sudo wget https:// |
| - | $ wget https:// | + | $ sudo wget https:// |
| $ sudo tar -xvJf gcc-linaro-7.3.1-2018.05-i686_aarch64-elf.tar.xz -C / | $ sudo tar -xvJf gcc-linaro-7.3.1-2018.05-i686_aarch64-elf.tar.xz -C / | ||
| $ sudo tar -zxvf xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz -C / | $ sudo tar -zxvf xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz -C / | ||
| ``` | ``` | ||
| - | 3. Toolchains | + | 3. Toolchains for the Linux kernel. |
| ```shell | ```shell | ||
| sudo apt-get install gcc-4.8-aarch64-linux-gnu | sudo apt-get install gcc-4.8-aarch64-linux-gnu | ||
| ``` | ``` | ||
| - | The main toolchain | + | The main toolchain for the Linux kernel is provided |
| + | ==== 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 / | ||
| + | ``` | ||
| ===== Further Reading ===== | ===== Further Reading ===== | ||
| [[http:// | [[http:// | ||