当前位置:网站首页>构建嵌入式系统软件开发环境-建立交叉编译环境
构建嵌入式系统软件开发环境-建立交叉编译环境
2022-06-12 12:41:00 【咸鱼弟】
通常嵌入式系统软件的开发采用交叉编译调试的方式。交叉编译环境建立在宿主机(即一台PC)上,对应的开发板叫做目标板。在Linux平台下,要为开发板编译内核,图形界面Qtopia/Qt4,Bootloader,还有其他一些应用程序,均需要交叉编译工具链。
下面是安装交叉编译工具链的详细步骤。
Step1:将光盘Linux目录中的arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz复制到Fedora 14某个目录下如tmp/,然后进入到该目录,执行解压命令:
#cd /tmp
#tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz –C /
注意:C后面有个空格,并且C是大写的,它是英文单词“Change”的第一个字母,在此是改变目录的意思。
执行该命令,将把arm-linux-gcc安装到/opt/FriendlyARM/toolschain/4.5.1目录。
Step2:把编译器路径加入系统环境变量,运行命令
#gedit /root/.bashrc
编辑/root/.bashrc文件,注意“bashrc”前面有一个“.”,修改最后一行为:
export PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin,注意路径一定要写对,否则将不会有效。
如下图所示,保存退出。

编辑/root/.bashrc
重新登录系统(不必重启机器,System->Log Out root…即可),使以上设置生效。重新登录Fedora 14系统,新建终端,在命令行输入arm-linux-gcc –v,读取交叉编译器版本信息。如图所示,这说明交叉编译环境已经成功安装。

读取交叉编译器版本
边栏推荐
- Three dimensional coordinate point fitting sphere (MATLAB and C)
- 常数时间删除/查找数组中的任意元素
- Image comparison function after registration itk:: checkerboardimagefilter
- ITK 原图种子点经过roi、降采样后index的变化
- Binary tree (serialization)
- [JS] some handwriting functions: deep copy, bind, debounce, etc
- El select data echo, display only value but not label
- Source of routing information
- Buu question brushing record - 5
- Buu question brushing record - 7
猜你喜欢

itk::SymmetricForcesDemonsRegistrationFilter
![[an Xun cup 2019]iamthinking](/img/86/f83f3ca7967eae6c4be4562db45150.jpg)
[an Xun cup 2019]iamthinking

Microsoft Word tutorial, how to insert a header or footer in word?

Is yuancosmos a short-term speculation or a future trend?

A "murder case" caused by ES setting operation
![[C language] keyword static & Multi file & guessing game](/img/82/fa3556522531f83e95938fc4efbf1e.png)
[C language] keyword static & Multi file & guessing game

【C语言】关键字static&&多文件&&猜字游戏

Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference

Dasctf Sept x Zhejiang University of technology autumn challenge Web

深度剖析指针的进阶——C语言的进阶篇
随机推荐
大一女生废话编程爆火!懂不懂编程的看完都拴Q了
ITK 多阶段配准
Five ways to quickly download large files from Google cloud disk
2022 ARTS|Week 23
Object. Detailed explanation of assign()
Numpy数值计算基础
一个ES设置操作引发的“血案”
Downloading and using SWI Prolog
Jacobian matrix IK of manipulator
Matlab install license manager error -8
Brush questions [de1ctf 2019]shellshellshell
[an Xun cup 2019]iamthinking
JS convert string to array object
WebStorage
itk::SymmetricForcesDemonsRegistrationFilter
二叉树(序列化篇)
Theoretical knowledge of improved DH parameters and standard DH parameters of manipulator
JS built in object
Video speed doubling in PC browser
Image comparison function after registration itk:: checkerboardimagefilter