找回密码
 注册
关于网站域名变更的通知
查看: 470|回复: 1
打印 上一主题 下一主题

内核,uboot源代码有改动,Yocto要怎样修改???

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2019-7-10 16:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
内核,uboot源代码有改动,Yocto要怎样修改???
, g+ }8 |& R; d( R+ C& v' _

该用户从未签到

2#
发表于 2019-7-10 17:33 | 只看该作者
当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的commit ID。
4 A4 g4 ?0 P9 R% a) F. h6 b+ `+ h) n8 j5 ?
得到内核或uboot的commit ID:
5 v3 N, Q/ W: R% f9 ?. w0 l% n- ]) o5 |
在内核或uboot目录下:
6 }" e5 k- D" \0 Y, a9 V) j) t' R( S6 i. t; j. o) L
git add .   (提交所有的改变)
- Z* q! g3 @/ Q2 h$ G# G
; i: _5 c  O3 r2 ^git config - -gobal user.email “your Email address”(提交修改者邮件)  {5 T3 {( Y- u' o' [& b% J( n" S

. i6 L8 `: @, Z/ t7 i7 [/ i$ A$ Qgit config - - global user.name “your name” (提交修改者名字)' ~. x$ k- i/ L9 ]

6 Q: `, R- o8 o/ q# S0 H, @$ u. wgit commit -m “comment”添加注释
9 X1 v) W* s# }- G! |# C2 x3 C; w  r# T4 N, b6 G# }9 a% y( J
git log (得到commit ID)  A; x- t8 A" e0 i8 w( G8 T8 b) L

: e7 _3 Q6 A3 t$ x$ Y
* k8 t, H7 O6 Q# V5 l5 T9 v. O6 \, X
8 H0 V7 f7 z9 K5 LYocto 中内核修改地址:
% I$ }6 Y# [3 T, O$ K
2 |5 M+ @2 x/ i: b9 K( F' |9 }3 r/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”. ?7 T- D# ~: E; s/ E
5 a3 }2 l9 _/ [: `+ F" f
代码示例如下:0 |) a: G' Z( z5 v6 M' ?- @% S/ x

# x' p- @$ @3 R& t0 K    # Copyright (C) 2013-2016 Freescale Semiconductor
: c2 Y$ T* E) d: c; N+ x     
# c" P  |* Z+ g5 u    # Released under the MIT license (see COPYING.MIT for the terms)
5 _* z9 e  s% D     
4 q( ]( z* S9 s3 Q, p    SUMMARY = "Linux Kernel for MYiR MYS6ULx board"
2 j- M# [, t/ @' e" @2 t' D     ( E% o% g& n; b  R; u
    DESCRIPtiON = "Linux Kernel provided and supported by Freescale with focus on \; U- B2 [! P4 n7 s9 u
    i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."8 O, F, `8 [$ [: n) k7 I
     
3 O- O- ^8 v* I3 Y5 s  ?    require recipes-kernel/linux/linux-imx.inc, z2 A( D! a8 L* z0 @0 ~
     
& I( X; c; W6 r    require recipes-kernel/linux/linux-dtb.inc' K" L3 e4 z6 m# [
     9 m1 W$ \7 D, P
    DEPENDS += "lzop-native bc-native") _1 }  }7 g5 C0 l8 k5 i8 C0 p
     . y0 `& J% A9 }, N! O" P
     
. \/ k2 w! b6 Q3 d* t5 V     
# ]3 F' F9 ~/ }/ i9 R# o$ r7 S    LOCALVERSION = "-1.2.0"! j3 Y/ A/ s  [9 H# p
     % ]. D1 S3 x8 L0 \1 t
    SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"; _2 R7 w, {3 a  o  k% d# M4 o# [
     
5 S6 h9 b; V7 U( i. A: N0 M* @$ W    SRCBRANCH = "mys-6ulx") G/ l+ R6 t% S) s# z9 o
     
6 N5 P1 U/ m; }    SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \
* D7 b4 K/ e) k               file://defconfig \6 ^/ @# n0 v& @+ h
            "7 a; }$ f0 L2 O! }
     7 Y$ R3 k, y! O0 z8 ]
    DEFAULT_PREFERENCE = "1"* X; N% n9 F- q7 C. ?$ V' ^! {
     
" N/ A) e! v. ^; l% r  Y    COMPATIBLE_MACHINE = "(mx6ull|mx6ul)"
2 R7 p! j3 p% I- V% {, |- ~
; v0 D! w) A" M' ]7 w2 Z* s+ d  L5 l( q7 ~( t$ n
Yocto 中uboot 修改ID位置:2 k$ ?1 E5 b& }) o

. l" [" T) m( W' u/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-bsp/u-boot/u-boot-mys6ulx_2016.03.bb
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-24 18:18 , Processed in 0.125000 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

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