[LX2160ARDB]How to I specify the kernel version on yocto?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[LX2160ARDB]How to I specify the kernel version on yocto?

跳至解决方案
5,659 次查看
jackho
Contributor IV

Hi,

We use nxp-linux_4.19_rt-external kernel version and I try to specify kernel on yocto project path

sources/meta-qoriq/conf/distro/fsl-qoriq.conf as below:

截圖 2021-11-12 下午4.28.06.png

when I use bitbake compile, it will show below error, 

截圖 2021-11-12 下午4.42.04.png

Could you let us know how to set the specify version?

Thanks.

Jack

0 项奖励
回复
1 解答
5,633 次查看
yipingwang
NXP TechSupport
NXP TechSupport

1. You could use the same way to modify u-boot source code.

2. Go to folder yocto-sdk_dunfell/sources/meta-freescale/recipes-kernel/linux/, please create your own recipe linux-qoriq_4.19.bb referring to linux-qoriq_5.4.bb, then modify sources/meta-qoriq/conf/distro/fsl-qoriq.conf as the following.

PREFERRED_VERSION_linux-qoriq = "5.4%"

=>

PREFERRED_VERSION_linux-qoriq = "4.19%"

在原帖中查看解决方案

0 项奖励
回复
5 回复数
5,650 次查看
yipingwang
NXP TechSupport
NXP TechSupport

You could modify Linux Kernel source code with the following method.

$ bitbake virtual/kernel -c cleansstate

$ bitbake virtual/kernel -c patch

Please go to folder ~/yocto-sdk_dunfell/build_lx2160ardb/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/5.4.3+gitAUTOINC+134788b164-r0/git, remove the content in this folder.

Copy your Linux Kernel source code in folder ~/yocto-sdk_dunfell/build_lx2160ardb/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/5.4.3+gitAUTOINC+134788b164-r0/git.

$ bitbake virtual/kernel

1,945 次查看
Blake001
Contributor III
Does this solution still work?
0 项奖励
回复
5,643 次查看
jackho
Contributor IV

Hi @yipingwang 

Thanks for your replay, I will try it, 2 questions want to confirm with you:

1.If I want to modify uboot source code also use the same way? any command can refer?

2. Is it possible to specify the kernel version when download the source code from yocto project, not using manual replace the source code?

Thanks 

Jack

 

 

 

 

 

0 项奖励
回复
5,634 次查看
yipingwang
NXP TechSupport
NXP TechSupport

1. You could use the same way to modify u-boot source code.

2. Go to folder yocto-sdk_dunfell/sources/meta-freescale/recipes-kernel/linux/, please create your own recipe linux-qoriq_4.19.bb referring to linux-qoriq_5.4.bb, then modify sources/meta-qoriq/conf/distro/fsl-qoriq.conf as the following.

PREFERRED_VERSION_linux-qoriq = "5.4%"

=>

PREFERRED_VERSION_linux-qoriq = "4.19%"

0 项奖励
回复
5,473 次查看
jackho
Contributor IV

Hi yipingwang,

I am trying to follow your way to download linux-qoriq-rt.4.19

1.Add sources/meta-freescale/recipes-kernel/linux/linux-qoriq-rt_4.19.bb and context as below:

IC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"

LINUX_VERSION = "4.19"

SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/linux;nobranch=1"

SRCREV = "134788b16485dd9fa81988681d2365ee38633fa2"

require recipes-kernel/linux/linux-qoriq.inc

2.Modify below items in sources/meta-qoriq/conf/distro/fsl-qoriq.conf file:

PREFERRED_VERSION_linux-qoriq = "4.19%"

REFERRED_PROVIDER_virtual/kernel = "linux-qoriq-rt"

After bitbake fsl-image-networking, I check download folder, it still download linux 5.4 version 

Does anything I miss to modify?

Thank you.

Jack

标记 (1)
0 项奖励
回复