1. save time by manually downloading the required packages in the production process
the packages used are as follows ( Different versions of all package versions differ )
libtool-2.4.6
linux-3.2.87
gmp-6.1.2
mpfr-3.1.5
isl-0.16.1
mpc-1.0.3
libelf-0.8.13
expat-2.2.0
ncurses-6.0
libiconv-1.15
gettext-0.19.8.1
binutils-2.28
gcc-5.4.0
glibc-2.25
duma_2_5_15
gdb-7.12.1
ltrace-0.7.3
strace-4.16
2. Preparation of tool chain production
Enter Crosstool Directory: CD ~/.crosstool
Execution: Ct-ng list-samples
Select Arm-unknown-linux-gnueabi as a template for the compilation tool chain
Execute command: Ct-ng Show-arm-unknown-linux-gnueabi To view the configuration required to compile the build tool chain
Download gcc 6.3.0 : wget http://ftp.gnu.org/gnu/gcc/gcc-6.3.0/gcc-6.3.0.tar.gz
Execute command: Ct-ng Arm-unknown-linux-gnueabi
Execute command: Ct-ng Menuconfig
Select Target Options
Target optimisations * * *
(ARMV4T) Architecture level: instruction set architecture,
(arm920t) Emit assembly for Cpu:cpu core Type, -mcpu=name
() Tune for CPU : To CPU can view the chip manual, -mtune=name
the latest version of Crosstool-ng just need to select the 12th item just fine.
Select toolchain Options:
3. start compiling:
Execute command: Ct-ng Build
Compilation succeeded:
To set all user environment variables:
Vim/etc/profile
The first line is added as follows
Export path=/home/liu/arm9/tools/ Set the path /bin: $PATH
Save and exit, the update takes effect:
Source/etc/profile
Perform
arm-s3c2440a-linux-gnueabi-gcc-v
u-boot 2016.01 not supported GCC6 , so want to put GCC version is changed to GCC5.0 version --gcc6.0 between versions.
Ubuntu compiled ARM-LINUX-GCC toolchain--making toolchain from Crosstool-ng