码迷,mamicode.com
首页 > 其他好文 > 详细

yocto bitbake 编译u-boot kernel

时间:2015-01-02 23:44:08      阅读:4317      评论:0      收藏:0      [点我收藏+]

标签:

1u-boot

<进入 …-yocto>

   bitbake -c cleansstate u-boot   (两个s

   bitbake -c patch u-boot    (如此才可以从本地编译,不从网上fetch代码)

<进入…-release>

   bitbake -e u-boot |grep ^S=     (获得u-boot代码路径,进入后可修改)

 

<修改完成,进入release>

   source SOURCE_THIS

   bitbake -c compile -f u-boot >>  log.txt   (将输出结果显示在log.txt )

   bitbake u-boot

 

2kernel

<进入 …-yocto>

   bitbake -c cleansstate virtual/kernel

   bitbake -c patch virtual/kernel

 

 

   bitbake -e virtual/kernel |grep ^S=

 

   update KERNEL_DEFCONFIG variable in meta-fsl-ppc/conf/machine/<machine>.conf  修改  kernel defconfig

 

   update KERNEL_DEVICETREE variable in meta-fsl-ppc/conf/machine/<machine>.conf  修改  dts

 

      bitbake -c menuconfig virtual/kernel      (进入内核配置菜单菜单配置)

 

        screen -r devshell

<进入…-release>

   bitbake -c compile -f virtual/kernel

   bitbake virtual/kernel                               (编译后的内核文件,会在build_<machine>_release/tmp/deploy/images/)

yocto bitbake 编译u-boot kernel

标签:

原文地址:http://www.cnblogs.com/apolloenterprise/p/4198979.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!