TINY4412 ARM Development environment Construction--cross-compiling environment construction

Source: Internet
Author: User

Tiny4412 Cross-compilation environment construction

Cross-compiling: Develop the program on the PC (x86 platform), run on the arm board, improve the speed of development and compilation.

Environment:

tiny4412sdk1506 Development Board

Software Required:

Arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz

Detects if the system has a cross-compilation environment installed:

# arm-linux-gcc-v
Bash:arm-linux-gcc:command not found


Installation Steps :

1, find the path of arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz, and unzip the compressed file

# tar XF arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz 
# ls
arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz  opt

Unzip to get an opt folder

2. Create a folder in the usr/local/directory and unzip the folder./OPT/FRIENDLYARM/TOOLSCHAIN/4.5.1/Copy to/usr/local/arm/directory:

# mkdir/usr/local/arm
# cp OPT/FRIENDLYARM/TOOLSCHAIN/4.5.1//usr/local/arm/-RF
3, modify the environment variables:

# vim/root/.bash_profile 
added:
path=/usr/local/arm/4.5.1/bin/: $PATH
Export PATH
4, log off users, re-login to the user after the effective

Or:

Source/root/.bash_profile
Make the configuration file effective.

5. Detect if the cross-compilation environment is installed successfully:

# arm-linux-gcc-v ...
GCC version 4.5.1 (CTNG-1.8.1-FA) 
A cross-compilation environment version of 4.5.1 was detected, and the installation was successful.









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.