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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,876 Views
jackho
Contributor III

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 Kudos
1 Solution
2,850 Views
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%"

View solution in original post

0 Kudos
4 Replies
2,867 Views
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

0 Kudos
2,860 Views
jackho
Contributor III

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 Kudos
2,851 Views
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 Kudos
2,690 Views
jackho
Contributor III

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

Tags (1)
0 Kudos