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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
内核,uboot源代码有改动,Yocto要怎样修改???$ H* m$ |4 s: x& r' g2 v6 A

该用户从未签到

2#
发表于 2019-7-10 17:33 | 只看该作者
当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的commit ID。 & e1 h- O0 x7 c, O+ G; S
7 T6 {; L2 J! m4 q% ~( c- A$ s
得到内核或uboot的commit ID:4 ]; |0 v7 m& f4 m

6 K- g7 A  O. Z/ T9 p在内核或uboot目录下:3 H" |5 n1 M' E. T* D

6 t* z( Q) |/ I0 i; I- y5 Wgit add .   (提交所有的改变)
8 U# \& e* x5 T+ P
4 S( R; d7 y6 I% Cgit config - -gobal user.email “your Email address”(提交修改者邮件)
/ n$ K4 }- t: Q! r+ S; @- r9 I. ^9 Q5 m2 P& t
git config - - global user.name “your name” (提交修改者名字)
2 P0 Q$ y! v6 P- Y( P/ H7 i7 b: T0 R; n
git commit -m “comment”添加注释% p. X3 o5 @1 j' V, r

6 n8 l7 N6 \+ p; [9 {3 w; d, S% D/ kgit log (得到commit ID)
6 i/ X& x& r7 z! c" x8 |2 ?) C( }0 A  M0 R, n

7 E% g1 g( r% G! P; N  |+ F2 Z) G/ t
Yocto 中内核修改地址:- S# s1 F# a. `% Y+ L0 J/ P% {
$ f8 n+ m( p* X& ]! r6 L$ {
/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”( ^  p3 ^$ q# }

& |' t+ {8 Q  b) @! {/ R代码示例如下:
6 F) E& W) H" j# r& E  n8 R  ?% L6 E" c
    # Copyright (C) 2013-2016 Freescale Semiconductor
% A, N8 c- m& \+ ^. y* u% f! G     * E8 d  M4 n& N" x: M" l
    # Released under the MIT license (see COPYING.MIT for the terms)! [( B  z$ R: n# t- a
     
( W, q! B* B5 k6 M) i" \) E& b2 K; F    SUMMARY = "Linux Kernel for MYiR MYS6ULx board"6 V& t4 a- X. g! I- a! E
     
; a: H! G. M. c# {    DESCRIPtiON = "Linux Kernel provided and supported by Freescale with focus on \) l$ b4 ]/ S( {7 g2 Z1 o1 v5 m
    i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."4 V/ a  f) s# p( |
     
# D- E. b1 i4 ?2 d3 p    require recipes-kernel/linux/linux-imx.inc* G( T7 c  n1 \9 _9 X* y
     
+ q+ |3 Y1 j  F8 T  x    require recipes-kernel/linux/linux-dtb.inc+ F, y* H9 Q" h9 d  F* J: D5 ~
     
& E4 R( Q* Z( ^8 N    DEPENDS += "lzop-native bc-native"
2 L$ X0 d. @/ ]     , ]5 {( {+ r( K8 Y( G) s8 t
     % o3 v9 {3 J1 T; T  f! Z; e
     " N$ ^& S; o& B
    LOCALVERSION = "-1.2.0"( f  i& M+ T* Z2 I* A# P8 L
     6 k( L& i  t/ ^/ m8 k
    SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"* b8 D/ L- S" w/ h6 _
     
- K9 y% e1 T+ u# h0 o/ k& i& J6 W# _    SRCBRANCH = "mys-6ulx"  i. a- N  D4 t) N; v+ F
     3 }3 P3 y/ m. J7 [
    SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \( q0 B8 z' E0 @3 ~  r. \2 M/ u9 h
               file://defconfig \' a# }, O3 q7 _5 h. _" w
            "
# J9 g5 Z0 Q6 q: l5 ~     
: l7 j& }6 D! {' g    DEFAULT_PREFERENCE = "1"! p5 \0 \2 N; x; |& b9 O0 }
     " g) G7 c5 g/ j$ s8 V5 s
    COMPATIBLE_MACHINE = "(mx6ull|mx6ul)"
6 i1 v, M  _1 v% A
, Y/ a* r: v) A+ q3 {" x
6 m$ P) W1 Z  C) F) |# \$ O# LYocto 中uboot 修改ID位置:
% \+ _0 G8 z) r, z0 W4 i3 a2 I" V6 I" W) r2 G: ?; |$ F
/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 20:04 , Processed in 0.140625 second(s), 23 queries , Gzip On.

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

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

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