Notes: under Ubuntu 16.04
0. Prepeare - install required tools
1. Install crosstool-ng
# mkdir -p scratch/ct-ng; cd scratch/ct-ng
# wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.18.0.tar.bz2
# tar xf crosstool-ng-1.18.0.tar.bz2
# cd crosstool-ng-1.18.0
# ./configure --prefix=`pwd`/crosstool
# make && make install
# export PATH="${PATH}:`pwd`/crosstool/bin"
# ct-ng help
This is crosstool-NG version 1.18.0
2. Configure marvell ARMv5 toolchain
# mkdir -p ~/scratch/marvell; cd ~/scratch/marvell
# ct-ng list-samples
[G.X] arm-cortex_a15-linux-gnueabi
[G..] arm-cortex_a8-linux-gnueabi
[G..] arm-davinci-linux-gnueabi
[G..] arm-unknown-eabi
[G..] arm-unknown-linux-gnueabi
[G.X] arm-unknown-linux-uclibcgnueabi
[G..] x86_64-unknown-linux-gnu
[G..] x86_64-unknown-linux-uclibc
[G.X] x86_64-unknown-mingw32
# ct-ng show-arm-unknown-linux-gnueabi
OS : linux-3.7.3
Companion libs : gmp-4.3.2 mpfr-2.4.2 libelf-0.8.13
binutils : binutils-2.19.1a
C compiler : gcc-4.3.2 (C,C++,Fortran,Java)
C library : glibc-2.9 (threads: nptl)
Tools : dmalloc-5.5.2 duma-2_5_15 gdb-6.8a ltrace-0.5.3 strace-4.5.19
# ct-ng arm-unknown-linux-gnueabi
***********************************************************
Initially reported by: Alexander BIGGA
URL: http://sourceware.org/ml/crossgcc/2008-06/msg00031.html
***********************************************************
Now configured for "arm-unknown-linux-gnueabi"
# mkdir ~/scratch/src
# mkdir ~/scratch/x-tools
# ct-ng menuconfig
Paths and misc options -- Local tarballs directory: ${HOME}/scratch/src
Paths and misc options -- Prefix directory: ${HOME}/scratch/x-tools
Target options -> Architecture level -> armv5te # marvell 88F6282
* Need also to update Kernel and GCC version according to target board
3. Build
# ct-ng builld
....................
And after build completes, toolchain will be installed in ${HOME}/scratch/x-tools
Reference:
* http://shyuanliang.blogspot.ca/2013/08/crosstool-ng-toolchain.html
0. Prepeare - install required tools
1. Install crosstool-ng
# mkdir -p scratch/ct-ng; cd scratch/ct-ng
# wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.18.0.tar.bz2
# tar xf crosstool-ng-1.18.0.tar.bz2
# cd crosstool-ng-1.18.0
# ./configure --prefix=`pwd`/crosstool
# make && make install
# export PATH="${PATH}:`pwd`/crosstool/bin"
# ct-ng help
This is crosstool-NG version 1.18.0
2. Configure marvell ARMv5 toolchain
# mkdir -p ~/scratch/marvell; cd ~/scratch/marvell
# ct-ng list-samples
[G.X] arm-cortex_a15-linux-gnueabi
[G..] arm-cortex_a8-linux-gnueabi
[G..] arm-davinci-linux-gnueabi
[G..] arm-unknown-eabi
[G..] arm-unknown-linux-gnueabi
[G.X] arm-unknown-linux-uclibcgnueabi
[G..] x86_64-unknown-linux-gnu
[G..] x86_64-unknown-linux-uclibc
[G.X] x86_64-unknown-mingw32
# ct-ng show-arm-unknown-linux-gnueabi
OS : linux-3.7.3
Companion libs : gmp-4.3.2 mpfr-2.4.2 libelf-0.8.13
binutils : binutils-2.19.1a
C compiler : gcc-4.3.2 (C,C++,Fortran,Java)
C library : glibc-2.9 (threads: nptl)
Tools : dmalloc-5.5.2 duma-2_5_15 gdb-6.8a ltrace-0.5.3 strace-4.5.19
# ct-ng arm-unknown-linux-gnueabi
***********************************************************
Initially reported by: Alexander BIGGA
URL: http://sourceware.org/ml/crossgcc/2008-06/msg00031.html
***********************************************************
Now configured for "arm-unknown-linux-gnueabi"
# mkdir ~/scratch/src
# mkdir ~/scratch/x-tools
# ct-ng menuconfig
Paths and misc options -- Local tarballs directory: ${HOME}/scratch/src
Paths and misc options -- Prefix directory: ${HOME}/scratch/x-tools
Target options -> Architecture level -> armv5te # marvell 88F6282
* Need also to update Kernel and GCC version according to target board
3. Build
# ct-ng builld
....................
And after build completes, toolchain will be installed in ${HOME}/scratch/x-tools
Reference:
* http://shyuanliang.blogspot.ca/2013/08/crosstool-ng-toolchain.html