QorIQ LSDK Introduction Yocto Project™ 101 @LSDK_user
We are building firmware for layerscape LX2160ARDB platform. Since we have done the changes on LSDK 21.08 sources, we would like to build the same firmware with the LSDK changes using yocto project. Can anyone please suggest how can we migrate lsdk changes into yocto project to build the firmware?
Thank you
Solved! Go to Solution.
You could download the latest Yocto hardknott Linux SDK from the following link.
https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=hardknott
$ source ./setup-env -m lx2160ardb
$ bitbake u-boot -c cleansstate
$ bitbake u-boot -c patch
Go to u-boot source code folder build_lx2160ardb/tmp/work/lx2160ardb-fsl-linux/u-boot-qoriq/2021.04+AUTOINC+263b27e076+fslgit-r0/git/, apply patches for u-boot.
$ bitbake u-boot
$ bitbake qoriq-atf -c cleansstate
$ bitbake qoriq-atf -c patch
Go to atf source code folder build_lx2160ardb/tmp/work/lx2160ardb-fsl-linux/qoriq-atf/2.4+AUTOINC+atf-r0/git/, apply patches for atf.
$ bitbake qoriq-atf
Generate atf images in folder build_lx2160ardb/tmp/deploy/images/ls1046afrwy/atf/.
You could download the latest Yocto hardknott Linux SDK from the following link.
https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=hardknott
$ source ./setup-env -m lx2160ardb
$ bitbake u-boot -c cleansstate
$ bitbake u-boot -c patch
Go to u-boot source code folder build_lx2160ardb/tmp/work/lx2160ardb-fsl-linux/u-boot-qoriq/2021.04+AUTOINC+263b27e076+fslgit-r0/git/, apply patches for u-boot.
$ bitbake u-boot
$ bitbake qoriq-atf -c cleansstate
$ bitbake qoriq-atf -c patch
Go to atf source code folder build_lx2160ardb/tmp/work/lx2160ardb-fsl-linux/qoriq-atf/2.4+AUTOINC+atf-r0/git/, apply patches for atf.
$ bitbake qoriq-atf
Generate atf images in folder build_lx2160ardb/tmp/deploy/images/ls1046afrwy/atf/.
Thank you @yipingwang,
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"
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?
LSDK migration on Yocto project @yocto @Linux
Would you please provide your .bbappend file?
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI = "https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt;branch=APSS.F... \
file://000_linux_change.patch \
"
SRCREV = "74700acb31e369495da22b4bbfd9e3f4315fc74a"
Thank you
I didn't reproduce your problem when using linux-qoriq_5.4.bbappend as the following.
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI = "https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt;branch=APSS.F... \
"
SRCREV = "74700acb31e369495da22b4bbfd9e3f4315fc74a"
SRC_URI[sha256sum] = "977cb172f67e21fd8349a13a4cbd793308c6afb504731ddd775987feda3c66b1"
Can you please share with me the procedure you have followed?
Also, How can I build the kernel from https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt;branch=APSS.F... through yocto dunfell branch?
Thank you