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:
when I use bitbake compile, it will show below error,
Could you let us know how to set the specify version?
Thanks.
Jack
Solved! Go to Solution.
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%"
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
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
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%"
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