Making Arm cross-compilation toolchain using Crosstool

Source: Internet
Author: User

The host environment for this article is Ubuntu6.06-1 Desktop Edition

Kernel: 2.6.15-26

gcc:4.0.3

---------------------------------------------------Reprint Please specify: xiaobin_hlj80----

Z. Pre-Preparation 1. Set up a virtual machine




installing with ISO files


(1) Installing the live system

Select the text installation option, "Start or install Ubuntu".


(2) Install to Local

After entering the live desktop, click "Install" to complete the installation.

2. Installing GCC

System CD Installation



Choose Binutils and Build-essential

First, the host environment


1. Update source (1) Modify Source Address

#sudo gedit/etc/apt/sources.list

Will http://cn.archive.ubuntu.com

Change to

Http://old-releases.ubuntu.com




(2) Update Source Address

#sudo apt-get Update


2. Installing Gawk

#sudo Apt-get Install Gawk

Change awk to Gawk

#sudo update-alternatives--config awk

3. Installing dependent Packages

#sudo Apt-get Install Bison Flex

Y. Install Crosstool 1. Unzip

#tar ZXVF crosstool-0.4.3.tar.gz


2. Configuration directory

The following actions are in the user root directory


(1) Create a target folder

#sudo Mkdir/opt/crosstool

#sudo chown $USER/opt/crosstool

(2) Create a download folder

New Downloads Directory

#mkdir Downloads


Copy the following files to downloads

A) glibc-2.3.6.tar.bz2

b) binutils-2.15.tar.bz2

c) gcc-3.4.5.tar.bz2

D) linux-2.6.8.tar.bz2

e) linux-libc-headers-2.6.12.0.tar.bz2

f) glibc-linuxthreads-2.3.6.tar.bz2

3. Performing the installation

#./demo-arm-softfloat.sh

Reference article: Crosstool-howto

Making Arm cross-compilation toolchain using Crosstool

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.