Extra Toolchains Install Steps: for Amlogic Platform
Amlogic platform requires extra toolchains for cross-compiling, you might need to follow the below steps to do the setup.
Install Cross Compiler for U-Boot BL301:
1 2 |
$ sudo apt-get install gcc-arm-none-eabi |
Note:
- BL301 is an ARM Cortex-M3 based coprocessor, and is integrated into the Amlogic SoCs.
- We have verified that ‘gcc-4.8.2 on Ubuntu 14.04’ and ‘gcc-4.9.3 on Ubuntu 16.04’, both work fine on VIM platform.
- You might wanna have a try with other gcc versions, it may take a risk.
Install Cross Compiler for Linux kernel:
1 2 3 4 |
$ wget http://releases.linaro.org/archive/<span class="hljs-number">14.09</span>/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-<span class="hljs-number">4.9</span>-<span class="hljs-number">2014.09</span>_linux.tar.bz2 $ sudo mkdir /opt/toolchains $ sudo tar -xjf gcc-linaro-aarch64-linux-gnu-<span class="hljs-number">4.9</span>-<span class="hljs-number">2014.09</span>_linux.tar.bz2 -C /opt/toolchains |
Tips: you might need to replace a new address of gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.bz2 if the link address above was changed.