Yocto 工程快速入门

来源:互联网 发布:python 相关性分析 编辑:程序博客网 时间:2024/04/28 14:33

Yocto 工程快速入门

 参考:http://www.yoctoproject.org/docs/2.0/yocto-project-qs/yocto-project-qs.html

Build Host

安装linux发行版(Fedora, openSUSE, CentOS,Debian, 和Ubuntu) 的机器,并有最少50G的存储空间.

Git :  1.7.8 or greater

tar : 1.24 or greater

Python 2.7.3 or greater,不支持Python 3.x.

Build Host Packages

编译机器应该安装必须且合适的编译辅助包(工具).

Ubuntu and Debian

    $ sudo apt-get install gawk wget git-core diffstat unzip texinfogcc-multilib \

    build-essential chrpath socat libsdl1.2-dev xterm

                        

Fedora

    $ sudo dnf install gawk make wget tar bzip2 gzip python unzip perl patch\

    diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \

    ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue socat \

    findutils which SDL-devel xterm

                       

OpenSUSE

    $ sudo zypper install python gcc gcc-c++ git chrpath make wgetpython-xml \

    diffstat makeinfo python-curses patch socat libSDL-devel xterm

                       

CentOS

    $ sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch\

    diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath socat\

    perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue SDL-devel xterm

 

The Yocto project

一个Yocto工程.

Git

$ git clonegit://git.yoctoproject.org/poky

$ git checkout -b jethro origin/jethro

Web:

https://www.yoctoproject.org/downloads

编译image:

实例:

下面以qemux86为实例,介绍如何编译一个Yocto的工程

$ cd ~/poky
$ git checkout -b jethro origin/jethro
$ source oe-init-build-env
配置local.conf , qemux86为默认,所以不需要修改.
$ bitbake core-image-sato
 
启动qemu:  $ runqemu qemux86
 

加入新的板卡支持

下面介绍在已有的Yocto工程里加入一个新板卡BSP=intel-corei7-64的支持.

下载:

$ git clone git://git.yoctoproject.org/meta-intel

 
配置:
$ bitbake-layers add-layer "$HOME/source/poky/meta-intel"
$ echo 'MACHINE = "intel-corei7-64"' >> conf/local.conf
或者
$ echo 'MACHINE = "intel-core2-32"' >> conf/local.conf
 
编译:
$ bitbake core-image-minimal
 
输出:
tmp/deploy/images/intel-corei7-64/core-image-minimal-intel-corei7-64.hddimg
 
写入磁盘: (U盘,硬盘,或者mmc )
$ sudo $HOME/source/poky/scripts/contrib/mkefidisk.sh HOST_DEVICE         tmp/deploy/images/intel-corei7-64/core-image-minimal-intel-corei7-64.hddimg TARGET_DEVICE
 
启动设备: EFI
     Shell> connect -r
     Shell> map -r
     Shell> fs0:
     Shell> bootx64  *** 32位: Shell> bootia32 

启动intel板卡:

$ sudo $HOME/source/poky/scripts/contrib/mkefidisk.sh HOST_DEVICE         tmp/deploy/images/intel-corei7-64/core-image-minimal-intel-corei7-64.hddimg TARGET_DEVICE
 
 
 
 

 

           

 

 

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 在日本旅游遇到精日导游怎么办 银行资金交易异常卡被冻结怎么办 如果淘宝被盗了店铺乱上东西怎么办 快递不送货直接代售点签收怎么办 淘宝快递没收到却显示已签收怎么办 支付宝余额未满16受限怎么办 未满16岁支付宝余额受限怎么办 手机天猫购物买的数量大怎么办 扣扣游戏领礼包出现账号异常怎么办 美容院转让给别人客人要退钱怎么办 卖家毁约中介费担保费怎么办 天猫买东西店家不开增值税票怎么办 天猫专卖店品牌不授权了怎么办 临时京东账号被冻结买的东西怎么办 天猫强行退款给买家商家怎么办 淘宝店铺没交保证金被释放了怎么办 沭阳县地段生过了报名时间怎么办 淘宝买东西地址和收件人填错怎么办 才装修的房子马上要住怎么办 淘宝发货显示无效的发货人怎么办 微信位置和所在地位置不一样怎么办 qq号被冻结了短信发不出去怎么办 商户刷自己信息卡被冻结怎么办 天猫超市买的东西坏了怎么办 天猫超市买东西地址填错了怎么办 天猫超市地址填错了怎么办 天猫超市退货达不到包邮条件怎么办 保千里达令手机锁屏密码忘记怎么办 淘宝买的东西给的发票不见了怎么办 在天猫超市买到发霉怎么办 支付宝红包券金额消费不完怎么办 支付宝向对方发起收款不付怎么办 支付宝收款别人少付了怎么办 红牛领到50元加油优惠券怎么办用 苹果淘宝看评价图片看不清楚怎么办 淘宝账号账户体验中心有违规怎么办 淘宝买的东西需要寄回去维修怎么办 淘宝闪电退款了卖家不肯退了怎么办 云视听会员账号账号密码忘了怎么办 移动卡异地补卡忘记服务密码怎么办 欠我钱的人不接电话怎么办