当前位置:网站首页>Build an embedded system software development environment - build a cross compilation environment
Build an embedded system software development environment - build a cross compilation environment
2022-06-12 12:49:00 【Salted fish brother】
Usually embedded system software is developed by cross compiling and debugging . The cross compilation environment is built on the host ( That's one PC) On , The corresponding development board is called the target board . stay Linux Under the platform , To compile the kernel for the development board , The graphical interface Qtopia/Qt4,Bootloader, There are other applications , Cross compile tool chains are required .
Here are the detailed steps for installing the cross compilation tool chain .
Step1: Put the disc Linux In the directory arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz Copied to the Fedora 14 Under a directory such as tmp/, Then go to the directory , Execute the unzip command :
#cd /tmp
#tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz –C /
Be careful :C There's a space after that , also C It's in capital letters , It's an English word “Change” First letter of , Here is the meaning of changing the directory .
Execute the command , Will put arm-linux-gcc The installation to /opt/FriendlyARM/toolschain/4.5.1 Catalog .
Step2: Add compiler path to system environment variable , Run the command
#gedit /root/.bashrc
edit /root/.bashrc file , Be careful “bashrc” There's one in front “.”, Modify the last behavior :
export PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin, Note that the path must be written correctly , Otherwise it will not be effective .
As shown in the figure below , Save and exit .

edit /root/.bashrc
Log back in to the system ( No need to restart the machine ,System->Log Out root… that will do ), Make the above settings effective . Log back in Fedora 14 System , New terminal , Enter at the command line arm-linux-gcc –v, Read cross compiler version information . As shown in the figure , This indicates that the cross compilation environment has been successfully installed .

Read the cross compiler version
边栏推荐
猜你喜欢

Influxdb2.x benchmark tool - influxdb comparisons

嵌入式系统硬件构成-嵌入式系统硬件体系结构

Object. Detailed explanation of assign()

Vant tab bar + pull-up loading + pull-down refresh demo van tabs + van pull refresh + van list demo

2022 ARTS|Week 23
![[HXBCTF 2021]easywill](/img/a2/8bf7d78fccf0d365490a84a8a9883d.jpg)
[HXBCTF 2021]easywill

Simple picture preview

功能标记是什么?一文了解它的作用,以及它的最佳实践

Eight misunderstandings are broken one by one (2): poor performance? Fewer applications? You worry a lot about the cloud!

OpenMAX (OMX)框架
随机推荐
MUI登录数据库完善与AJAX异步处理【MUI+Flask+MongoDB+HBuilderX】
Share PDF HD version, series
2021-11-16
Microsoft Word tutorial, how to insert a header or footer in word?
Constant time delete / find any element in array
Vant tab bar + pull-up loading + pull-down refresh demo van tabs + van pull refresh + van list demo
itkMultiResolutionImageRegistrationMethod
Problems encountered in generating MP3 from text to speech through iFLYTEK voice API
SWI-Prolog的下载与使用
wx. Login and wx Getuserprofile simultaneous use problem
VS2019 设置 CTRL+/ 为注释和取消注释快捷键
R语言ggplot2可视化:使用ggrepel包在线图(line plot)的尾端那个数据点添加数值标签(number label)
Typescript and abstract classes
itkMultiResolutionImageRegistrationMethod
SEO optimization of web pages
[HXBCTF 2021]easywill
嵌入式系统概述3-嵌入式系统的开发流程和学习基础、方法
Binary tree (serialization)
VNCTF2022 [WEB]
一个ES设置操作引发的“血案”