How to build the Cross tool chain (test success)

Source: Internet
Author: User

Previously installed a REHAT6 Linux system, the cross-compilation to ignore, the results in the compilation of Uboot when the problem, the display can not find ARM-LINUX-GCC. So you build a cross-compilation environment. There are many mistakes. First the decompression did not add-c/in the back, after the directly created a directory, the extracted bin directory to the directory you created. There is still a problem. But in the end I succeeded, giving the operation process directly:

* * Copy the ARM-LINUX-GCC to any Linux directory, such as study, it is recommended that you create a working directory, so that you delete the package later.

#cd Study

#ls

#tar xvf arm-linux-gcc-4.5.1-c///You can use the tab-padded package name,-c/,c is uppercase plus-c/is the installation to the root directory

* * After extracting, your current directory will not have the extracted directory. You can go to the root directory to use #ls-a, you will find a more directory, this is your extracted directory.

#cd//Top level directory,

# VIM/ROOT/.BASHRC

* * At the end of adding export path= $PATH:/opt/friendlyarm/toolschain/4.1.5/bin save exit.

#source/ROOT/.BASHRC

* * Restart no problem, it is not a problem, restart the virtual machine, start testing

#arm-linux-gcc-v//view build results.

* * If you interrupt the last line with your cross-tool chain information, the build is successful. Otherwise, try again. There are many ways to combine the Internet.

How to build the Cross tool chain (test success)

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.