查看: 1079|回复: 0

[分享] [iMX6UL开发] 内核,uboot源代码有改动,Yocto如何修改?

[复制链接]
  • TA的每日心情
    慵懒
    2018-10-17 09:43
  • 签到天数: 47 天

    [LV.5]常住居民I

    21

    主题

    135

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    487
    最后登录
    2022-10-24
    发表于 2019-6-20 15:29:19 | 显示全部楼层 |阅读模式
    内核,uboot源代码有改动,Yocto如何修改?

    答:当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的commit ID。

    得到内核或uboot的commit ID:

    在内核或uboot目录下:

    git add .   (提交所有的改变)

    git config - -gobal user.email “your Email address”(提交修改者邮件)

    git config - - global user.name “your name” (提交修改者名字)

    git commit -m “comment”添加注释

    git log (得到commit ID)



    Yocto 中内核修改地址:

    /home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”

    代码示例如下:

    # Copyright (C) 2013-2016 Freescale Semiconductor

    # Released under the MIT license (see COPYING.MIT for the terms)

    SUMMARY = "Linux Kernel for MYiR MYS6ULx board"

    DESCRIPTION = "Linux Kernel provided and supported by Freescale with focus on \

    i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."

    require recipes-kernel/linux/linux-imx.inc

    require recipes-kernel/linux/linux-dtb.inc

    DEPENDS += "lzop-native bc-native"



    LOCALVERSION = "-1.2.0"

    SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"

    SRCBRANCH = "mys-6ulx"

    SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \

               file://defconfig \

            "

    DEFAULT_PREFERENCE = "1"

    COMPATIBLE_MACHINE = "(mx6ull|mx6ul)"



    Yocto 中uboot 修改ID位置:

    /home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-bsp/u-boot/u-boot-mys6ulx_2016.03.bb



    下一章分享内核make menuconfig 如何剪裁,如何添加新设备?

    ------------------------------------------ --------------------- --------------------- --------------------- --------------------- ---------------------  

    说明:本帖子转自米尔微信公众号【i.MX6UL/i.MX6ULL开发常见问题】专题,是由米尔电子工程师基于米尔电子i.MX6UL/i.MX6ULL产品对i.MX6UL/i.MX6ULL开发中常见问题整理, 希望对您有帮助。




    该会员没有填写今日想说内容.
    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2024-4-27 03:52 , Processed in 0.096697 second(s), 18 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表