Install Extra Toolchains 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:

$ sudo apt-get install gcc-arm-none-eabi

Note:

Install Cross Compiler for Linux kernel:

$ wget http://releases.linaro.org/archive/14.09/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.bz2
$ sudo mkdir /opt/toolchains
$ sudo tar -xjf gcc-linaro-aarch64-linux-gnu-4.9-2014.09_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.

Further readings: