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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
7,413件の閲覧回数
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 解決策
7,387件の閲覧回数
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 返答(返信)
7,404件の閲覧回数
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

3,699件の閲覧回数
Blake001
Contributor III
Does this solution still work?
0 件の賞賛
返信
7,397件の閲覧回数
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 件の賞賛
返信
7,388件の閲覧回数
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 件の賞賛
返信
7,227件の閲覧回数
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 件の賞賛
返信