cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pierlum
Voyager
Voyager
3,762 Views
Registered: ‎05-30-2017

How to apply patches to the Linux kernel petalinux tool 2018.3 and 2019.1?

Jump to solution

Here at AR# 55978 https://www.xilinx.com/support/answers/55978.html  is described how to apply kernel patches in old versions of petalinux tool. What is the procedure for petalinux tool 2018.3 and 2019.1?

Thanks 

0 Kudos
1 Solution

Accepted Solutions
aravindb
Moderator
Moderator
3,716 Views
Registered: ‎02-07-2018

HI @pierlum 

 

Please follow below steps.

1. Create a patch against xilinx-v2018.3


2. copy your patch to this path /xilinx-zcu102-2018.3/project-spec/meta-user/recipes-kernel/linux/linux-xlnx/.


3. Modify the kernel recipe like below(its is for reference).

vim "xilinx-zcu102-2018.3/project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappend"


SRC_URI += "file://bsp.cfg \
file://user_2019-05-21-03-14-00.cfg \
"
SRC_URI_append += "file://0001-adding-prints-in-ras-driver.patch \
file://0001-adding-extra-prints.patch \
file://0001-adding-extra-prints-in-encrypt-function.patch"

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

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

2 Replies
stephenm
Xilinx Employee
Xilinx Employee
3,741 Views
Registered: ‎09-12-2007

You can create a patch against xilinx-v2018.3 branch of the linux-xlnx from github.

 

Add this patch to the kernel recipe and update the bbappend SRC_URI_append to apply patch

0 Kudos
aravindb
Moderator
Moderator
3,717 Views
Registered: ‎02-07-2018

HI @pierlum 

 

Please follow below steps.

1. Create a patch against xilinx-v2018.3


2. copy your patch to this path /xilinx-zcu102-2018.3/project-spec/meta-user/recipes-kernel/linux/linux-xlnx/.


3. Modify the kernel recipe like below(its is for reference).

vim "xilinx-zcu102-2018.3/project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappend"


SRC_URI += "file://bsp.cfg \
file://user_2019-05-21-03-14-00.cfg \
"
SRC_URI_append += "file://0001-adding-prints-in-ras-driver.patch \
file://0001-adding-extra-prints.patch \
file://0001-adding-extra-prints-in-encrypt-function.patch"

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

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post