天天看點

[iMX6ULL常見問題] 核心,uboot源代碼有改動,Yocto如何修改?

說明:本文章源于【i.MX6UL/i.MX6ULL開發常見問題】,是由米爾電子工程師基于米爾電子i.MX6UL/i.MX6ULL産品對i.MX6UL/i.MX6ULL開發中常見問題整理, 希望對您有幫助。i.MX6UL/i.MX6ULL系列問題在米爾科技公總号做專題分享。

核心,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 如何剪裁,如何添加新裝置?