搜尋此網誌

2014年12月15日 星期一

Setup aarch64 cross compiler on Ubuntu

1. Download aarch64 compiler from: http://releases.linaro.org/14.04/components/toolchain/binaries
2. Choose gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux.tar.bz2
3. This compiler is for ARM, AMCC 64CPU platform , not x86 platform.
4. $tar xvf gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux.tar.bz2
5. $cp -avr ~/Desktop/gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux /opt
6. $vi .bashrc  → go to last line→  add →
export PATH=$PATH:/opt/gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux/bin
7. go to your test program ~/Desktop/test/$ export CROSS=aarch64-linux-gnu    as /opt/gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux/bin file name
8.  ~/Desktop/test/$make clean
9.  ~/Desktop/test/$make all


沒有留言:

張貼留言