LSDK migration on Yocto project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LSDK migration on Yocto project

跳至解决方案
5,379 次查看
rrbhaskara
Contributor I

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

0 项奖励
回复
1 解答
5,358 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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/.

 

 

 

在原帖中查看解决方案

6 回复数
5,359 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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/.

 

 

 

5,326 次查看
rrbhaskara
Contributor I

 

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 

 

0 项奖励
回复
5,308 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Would you please provide your  .bbappend file?

0 项奖励
回复
5,306 次查看
rrbhaskara
Contributor I

@yipingwang 

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

0 项奖励
回复
5,255 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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"

0 项奖励
回复
5,252 次查看
rrbhaskara
Contributor I

@yipingwang 

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

0 项奖励
回复