> 
> Hello,I was trying to build a kernel for layerscape ls1046ardb setup.I
> referred the meta-freescale/recipes-kernel/linux/linux-qoriq_5.4.bb file
> from dunfell branch.Build configuration:
> Yocto branch : dunfell
> Required kernel source : 
> https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt/commit/?h=APSS.FSM.6.6-00194-FSM10056.0&id=74700acb31e369495da22b4bbfd9e3f4315fc74a
> 
> SRC_rev : 74700acb31e369495da22b4bbfd9e3f4315fc74a (
> https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt/commit/?h=APSS.FSM.6.6-00194-FSM10056.0&id=74700acb31e369495da22b4bbfd9e3f4315fc74a
> )
> SRC branch: APSS.FSM.6.6
> 
> Here I have created separate layer and added my files under 
> *<my_layer_name>/recipe-kernel/linux/linux-qoriq-rt_4.19.bb*
> path
> 

It is better to use [include file]( 
https://github.com/Freescale/meta-freescale/blob/dunfell/recipes-kernel/linux/linux-qoriq.inc
 )
in similar way the
[linux-qoriq_5.4.bb]( 
https://github.com/Freescale/meta-freescale/blob/dunfell/recipes-kernel/linux/linux-qoriq_5.4.bb
 ) does it.

So the ` *linux-qoriq-rt_4.19.bb`* should be

```

LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"

LINUX_VERSION = "4.19.90"

SRC_URI = 
"https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt;branch=APSS.FSM.6.6
 \
"
SRCREV = "74700acb31e369495da22b4bbfd9e3f4315fc74a"

require recipes-kernel/linux/linux-qoriq.inc

```
LINUX_VERSION can be get from linux_4.19-rt repo. Please let us know it this 
helps.

> 
> 
> 
> 
> 
> i nherit kernel qoriq_build_64bit_kernel siteinfo
> inherit fsl-kernel-localversion
> 
> SUMMARY = "Linux Kernel for NXP QorIQ platforms"
> SECTION = "kernel"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
> 
> SRC_URI =
> "https://source.codeaurora.org/quic/femto5G/fsm/external/qoriq-components/linux_4.19-rt;branch=APSS.FSM.6.6
> \
> "
> SRCREV = "74700acb31e369495da22b4bbfd9e3f4315fc74a"
> 
> SRC_URI[sha256sum] =
> "ddb8e5defcdaec9ce8cbe39d157f58a369decf7c1028cddaa6186343b7f09c2b"
> 
> S = "${WORKDIR}/git"
> 
> DEPENDS_append = " libgcc"
> # not put Images into /boot of rootfs, install kernel-image if needed
> RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""
> 
> KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
> KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
> KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
> 
> ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
> 
> ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
> 
> SCMVERSION ?= "y"
> LOCALVERSION = ""
> 
> FILES_${KERNEL_PACKAGE_NAME}-image += "/boot/zImage*"
> COMPATIBLE_MACHINE = "(qoriq)"
> 
> 
> 
> When I try to build the kernel I am encountered with below errors,
> 
>> ERROR: linux-qoriq-rt-4.19-r0 do_populate_lic: QA Issue: linux-qoriq-rt:
>> LIC_FILES_CHKSUM points to an invalid file:
>> /home/rancore/rohit/git_pull/rgbbbuildscripts/build
>> 
>> 
> 
> 

Looks like there is a problem with finding lic file, it may be that S points to 
incorrect path.

> 
> 
>> /rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/git/COPYING
>> [license-checksum]
>> ERROR: linux-qoriq-rt-4.19-r0 do_populate_lic: Fatal QA errors found,
>> failing task.
>> ERROR: Logfile of failure stored in:
>> /home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/temp/log.do_populate_lic.44895
>> 
>> ERROR: Task
>> (/home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/../meta-rjio_bsp/recipes-kernel/linux/linux-qoriq-rt_4.19.bb:do_populate_lic)
>> failed with exit code '1'
>> ERROR: linux-qoriq-rt-4.19-r0 do_preconfigure: Execution of
>> '/home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/temp/run.do_preconfigure.44894'
>> failed with exit code 1:
>> /home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/temp/run.do_preconfigure.44894:
>> line 120:
>> /home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/defconfig:
>> No such file or directory
>> WARNING:
>> /home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/temp/run.do_preconfigure.44894:1
>> exit 1 from 'sed -e "${CONF_SED_SCRIPT}" <
>> '/home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/defconfig'
>> >>
>> '/home/rancore/rohit/git_pull/rgbbbuildscripts/build/rjio/fw_main_dev_odsc3_ibtb_sku2_board/build/poky/build/tmp/work/odsc3_ibtb_sku2_board-poky-linux/linux-qoriq-rt/4.19-r0/build/.config''
>> 
>> 
> 
> Can anyone please guide me to build the kernel successfully?
> 
> Thank you
> 

Regards,
Tomasz Żyjewski
Embedded Systems Engineer
GPG: 5C495EA3EBEECA59
https://3mdeb.com | @3mdeb_com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56763): https://lists.yoctoproject.org/g/yocto/message/56763
Mute This Topic: https://lists.yoctoproject.org/mt/90437049/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to