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.