Ubuntu compiled ARM-LINUX-GCC toolchain--making toolchain from Crosstool-ng

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.