freescale的yocto开发环境搭建
来源:互联网 发布:h5直播源码 编辑:程序博客网 时间:2024/05/18 19:20
以前没有接触过相关开发,需要自己摸索搭建环境
文件下载比较麻烦,由于网络问题,使得进程很慢。
软件环境:虚拟机ubuntu14.04
硬件环境:IMX6ul官方demo板。
特别提示:注意虚拟最好100G,这样一般不会出问题。平常虚拟机安装一般默认20G,否则会出现编译内存不够,又要折腾。
第一步:sduo apt-get install <package > 这一步出现问题可能不大
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat
i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup:
$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html \
docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils \
libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
i.MX layers host packages for a Ubuntu 12.04 host setup only:
$ sudo apt-get install uboot-mkimage
i.MX layers host packages for a Ubuntu 14.04 host setup only:
$ sudo apt-get install u-boot-tools
第二步:Setting Up the Repo Utility
2、建立repo环境:
Repo is a tool built on top of Git that makes it easier to manage projects that contain multiple repositories, which do not need
to be on the same server. Repo complements very well the layered nature of the Yocto Project, making it easier for customers
to add their own layers to the BSP.
To install the “repo” utility, perform these steps:
2.1. Create a bin folder in the home directory.
$ mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
官网给出的地址需要翻墙才能下载,所以换个地址:
curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
2.2. Add the following line to the.bashrcfile to ensure that the~/binfolder is in your PATH variable.
export PATH=~/bin:$PATH
第三步:
$ mkdir fsl-release-bsp
$ cd fsl-release-bsp
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ git config --list
$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.53-1.1.0_ga
这个地址网络链接失败,官方文档地址也不管用,醉了。。。
所以经过不断搜索,找到可用地址:repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
备注:git版本控制器,还不算了解,听闻挺好用的一个东东,便于代码控制。
$ repo sync
同步源码。需要的时间比较长,耐心等待,等的花都谢了,鸟都睡了,就可以了。。。
受网络赢影响比较大。。
第四步:Image Build
镜像编译预备工作
Set up the environment with:
执行命令$ source setup-environment
这一步选择自己的芯片类型, imx6ulevk 这一步千万不能错
$:MACHINE=imx6ulevk source setup-environment build-xll
执行后出现如下界面:
执行bitbake <targets>
makefile建立在gcc之上。build建立在makefile以上。bitbake建立在他们之上。是个统筹的工具包含下载,解压,打补丁,配置,编译,发布。
这一步时间不确定,受网络因素影响比较大, (这一步决定了速度)
一般是放哪,慢慢等吧,让程序自己运行。做自己事情去就好了。这一步出现问题比较多,时不时看一下,有问题及时解决。
搭建yocto环境花时间比较长,究其原因,方法不对,做事先有清晰的思路,知道目标是啥,目标搭建freescale开发平台yocto,每一步为什么,还是不清楚,自己以前没有接触过,没有这种逻辑,需要在网络淘金,筛选自己需要的信息,官方的文档一般不错,但不要迷信官方文档,遇到问题多思考为什么,相信解决办法总比问题多。多与人交流。
学习版本控制内容,便于项目代码管理。提高工作效率。
- freescale的yocto开发环境搭建
- Yocto开发环境搭建
- Freescale Yocto的安装,环境Ubuntu14.04
- Freescale Yocto Project搭建
- IM6Q yocto开发平台搭建,学习FREESCALE官方手册笔记
- yocto-APP开发环境搭建
- YOCTO编译环境的搭建
- Freescale PowerPC架构mpc8349E开发环境搭建
- Yocto 环境搭建
- Yocto 环境搭建
- yocto环境学习--环境搭建
- imx6开发环境搭建之yocto全记录(L4.1.15_2.0.0)
- Yocto tips (16): Yocto 制作SDK分发Toolchain 脱离Yocto环境开发
- 在ubuntu12.04.1LTS上搭建freescale iMX6开发板sabresd_6dq编译环境
- 在ubuntu12.04.1LTS上搭建freescale iMX6开发板sabresd_6dq编译环境
- Linux内核yocto在Freescale的IMX6q上启动遇到booting from net,.....
- Yocto Study - 入门 - Yocto Training - HOME Freescale Community
- Freescale Yocto: repo sync (SSH ? or HTTPS ?)
- (一)ArcGIS API For Javascript开发利器
- SHELL编程:利用CSIDL打开特殊文件夹
- 杭电-1231 最大连续子序列
- LeetCode | Binary Tree Maximun Path Sum
- DRR(Digitally Reconstructured Radiograph)在医学影像处理的应用
- freescale的yocto开发环境搭建
- [note] 深度学习 tensorflow 笔记(3) cnn 卷积神经网络
- Max Sum hd 1003
- Android安全开发之WebView中的地雷
- 版本控制和版本控制系统的区别
- 段式和页式存储管理试题及答案(整理)
- Delphi中数字输入限制方法
- 《UNIX环境高级编程》七进程环境读书笔记
- poj 2151 Check the difficulty of problems