Re: Yocto kernel building


tomzy
 

Hi,
Hi


 

The default Linux kernel is built by using bitbake fsl-image-networking. Here, the kernel is built from meta-freescale/recipes-kernel/linux/linux-qoriq_5.4.bb path and source code is fetching from "git://source.codeaurora.org/external/qoriq/qoriq-components/linux;nobranch=1".

 

So I want to use another version of the kernel that should be fetch from "https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt/" and the SRC_REV= "74700acb31e369495da22b4bbfd9e3f4315fc74a"

When you want to use another version of the kernel it is better to create new recipe (.bb file). You
could use existing linux-qoriq_5.10 [1] recipe as example, just change the SRC_URI, SRCREV and
LINUX_VERSION.

Than in distro or machine config you would need to set PREFERRED_VERSION_linux-qoriq to 4.19
or whatever the version is.

 

 

For that purpose, I have created a .bbappend file and changed the SRC_URI as well as SRC_REV.

While building bitbake is causing errors,

ERROR: An uncaught exception occurred in runqueue################ | ETA: 0:00:01
Traceback (most recent call last):
File "/home/rancore/rohit/yocto_mmwave/yocto-sdk/sources/poky/bitbake/lib/bb/runqueue.py", line 1187, in RunQueueData.prepare_task_hash(tid='/home/rancore/rohit/yocto_mmwave/yocto-sdk/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_5.4.bb:do_fetch'):
def prepare_task_hash(self, tid):
> bb.parse.siggen.prep_taskhash(tid, self.runtaskentries[tid].depends, self.dataCaches[mc_from_tid(tid)])
self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(tid, self.runtaskentries[tid].depends, self.dataCaches[mc_from_tid(tid)])
File "/home/rancore/rohit/yocto_mmwave/yocto-sdk/sources/poky/meta/lib/oe/sstatesig.py", line 146, in SignatureGeneratorOEEquivHash.prep_taskhash(tid='/home/rancore/rohit/yocto_mmwave/yocto-sdk/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_5.4.bb:do_fetch', deps=set(), dataCache=<bb.cache.CacheData object at 0x7ff029b3a0b8>):
def prep_taskhash(self, tid, deps, dataCache):
> super().prep_taskhash(tid, deps, dataCache)
if hasattr(self, "extramethod"):
File "/home/rancore/rohit/yocto_mmwave/yocto-sdk/sources/poky/bitbake/lib/bb/siggen.py", line 248, in SignatureGeneratorOEEquivHash.prep_taskhash(tid='/home/rancore/rohit/yocto_mmwave/yocto-sdk/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_5.4.bb:do_fetch', deps=set(), dataCache=<bb.cache.CacheData object at 0x7ff029b3a0b8>):
else:
> checksums = bb.fetch2.get_file_checksums(dataCache.file_checksums[fn][task], recipename, self.localdirsexclude)
for (f,cs) in checksums:

Can you please help me to resolve the issues?

Thank you

Regards,

Tomasz Żyjewski
Embedded Systems Engineer
GPG: 5C495EA3EBEECA59
https://3mdeb.com | @3mdeb_com

 

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.