[Linux learning] Build an embedded cross-compilation environment arm-linux-gcc

Source: Internet
Author: User
Tags superuser permission

(1) Select a path to store arm-linux-gcc. I chose/home/book and created a folder named arm-linux-gcc below.


(2) using cp EABI-4.3.3_Emdedsky_20100610.tar.bz2 arm-linux-gcc, copy the compressed package eabi-4.3.3_emdedsky_20100610.tar.bz2 to arm-linux-gcc <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + partition = "http://www.2cto.com/uploadfile/Collfiles/20140506/2014050608554314.png" alt = "\">

Record the file storage directory:


(4) configure the system environment variables and add the PATH of the Cross-environment tool chain to the environment variable PATH. These tools can be used in any directory. Run the following command:


Open profile, add the path of the Cross-compilation tool to this file, and save the file.


(5) use the following command to make the environment variables take effect.


Enter "arm-linux" on the terminal and double-click the Tab. The environment variable is successfully set.


The cross-compilation environment of arm-linux-gcc is complete. When the kernel is compiled, an error message is displayed after you enter "make": arm-linux-gcc: Command not found. However, the compiling environment is indeed complete, and the reason is found from the Internet: export PATH = $ PATH: /home/book/arm-linux-gcc/opt/EmbedSky/4.3.3/bin is used to set the PATH of the current user, while sudo uses the superuser permission to execute make, that is, the Super User PATH is used, but the Super User PATH does not contain/home/book/arm-linux-gcc/opt/EmbedSky/4.3.3/bin.

Solution: Enter the Super User Account and enter: export PATH = $ PATH:/home/book/arm-linux-gcc/opt/EmbedSky/4.3.3/bin on the terminal. go to the kernel storage directory.


You can compile the kernel ~~~

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.