- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
这是精心收集的精品经典资料,值得下载保存阅读!
arm-linux-gcc交叉编译环境的建立(Establishment of arm-linux-gcc cross compiling environment)
Arm-linux-gcc cross compiling environment establishment (using cross package) 2010-02-23 19:05 a.. Dead work
Install the Linux environment (mine is the kernel of the RED_HAT9 linux2.2)
Download cross compiled file package cross-2.95.3.tar.bz2
Two. create directory
1. build cross compile environment directory
CD /usr/local
MKDIR arm
Three. Install cross compile environment
1. copy the installation package to the directory
CP /mnt/hgfs/shar/cross-2.95.3.tar.bz2 /usr/local/arm
(Note: I am here to download the compressed packet with windows, and then share it with VM. My Linux card is not configured, so it is not available
Download under linux environment, ha ha!)
2. cross compile file unpack
CD /usr/local/arm
Tar jxvf cross-2.95.3.tar.bz2
(normally, youll see the folder 2.95.3 in the arm directory.)
Four. Configure environment variables
1. modify the bashrc file
CD /etc/
VI bashrc
(add the environment variable code on the last line of the file
Export PATH=/usr/local/arm/2.95.3/bin:$PATH)
2. save exit
Command mode, WQ
Five. Writing test code
1. build source files
VI hello.c
Write the following code (you can also write other C code):
#includestdio.h
Int, main ()
{
Printf (Hello, world, \n);
Return 0;
}
2. save exit
WQ
Six. Test compilation environment
1. restart the Linux Environment
Reboot
2. test
Arm-linux-gcc -o Hello hello.c
File hello
Following execution, the following information indicates adoption:
Hello: ELF......
Seven. Compile the uboot to test the compiler
Generally speaking, the above 1~6 steps are no problem, then the version of the compiler has been properly installed, but our purpose is to compile
Uboot, and 1.1.6 version of Uboot, the compiler is compatible with the version of Uboot is not good, so try to compile Ub
Oot.
1. enter directory
CD /mnt/uboot1.1.6 (mine is in this directory)
2. compile Uboot
Make distclean
Make B2_config
Make
Normally, when the three steps are do
您可能关注的文档
- 15春《编译原理》作业2(15 spring compile principle homework 2).doc
- 16-机器翻译现状与展望(16- Machine Translation current status and Prospects).doc
- 16个气血不足食疗(免费)(16 Qi deficiency diet therapy (free)).doc
- 16例肾损伤合并其他脏器损伤的诊治(Diagnosis and treatment of 16 cases of renal trauma complicated with other organ injuries).doc
- 17《落花生》教学设计之三(17 teaching design of peanuts three).doc
- 17种家用去痘面膜的做法(生活之美容塑身)(17 kinds of domestic anti acne mask approach (life beauty body)).doc
- 14泌尿科(14 urology).doc
- 17种家用去痘面膜的做法(17 kinds of domestic anti acne mask approach).doc
- 18-25岁的人生(18-25 years old life).doc
- 18种会致流产,baby变傻的食物(18 kinds of food that cause miscarriage and baby become silly).doc
- ascii对照(Ascii对照).doc
- ascii码表(Ascii码表).doc
- android-bound-service-详解四service绑定及生命期(Android绑定服务服务绑定及生命期详解四).doc
- ati catalyst control center(催化剂控制中心).doc
- atcc菌种货号——上海宝录生物科技有限公司(ATCC strain number - Shanghai Baolu Biotechnology Co. Ltd.).doc
- atm界面设计(ATM interface design).doc
- avi格式压缩编码算法详解(Avi format compression coding algorithm detailed).doc
- avr单片机端口操作要点(AVR MCU port operation points).doc
- av指令索引(AV instruction index).doc
- apiq1第9版培训题(Apiq1 ninth edition training questions).doc
文档评论(0)