cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
zhangjiali
Visitor
Visitor
551 Views
Registered: ‎04-18-2018

peatlinux 2017.2 kernel patch cause boot stuck

I'm follow the guide UG1144 & http://www.wiki.xilinx.com/PetaLinux+Yocto+Tips#Working%20with%20a%20user%20space%20Yocto%20layer-Patching%20the%20Linux%20Kernel%20of%20a%20PetaLinux%20Project

 

and modify the .bbappend in project-spec/meta-user/recipes-kernel/linux/ just as follow:

 

SRC_URI += "file://my-patchfile.patch"

 

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

 

When I build petalinux, my file does get patched, but my kernel image.ub goes from ~9M to about ~7M and no longer boots.

 

 

0 Kudos
1 Reply
sandeepg
Moderator
Moderator
515 Views
Registered: ‎04-24-2017

Hi @zhangjiali,

 

What does your patch contains. You need to use SRC_URI_append to SRC_URI Refer https://www.yoctoproject.org/docs/latest/kernel-dev/kernel-dev.html#creating-and-preparing-a-layer

 

SRC_URI_append = " file://0001-linux-driver-fix.patch"
 
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

For Config files you can use SRC_URI.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos