Yocto Kernel building
Rohithraj.Bhaskara@...
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
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 inherit 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)"Can anyone please guide me to build the kernel successfully? Thank you |
|
|
|
tomzy
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: It is better to use [include file](https://github.com/Freescale/meta-freescale/blob/dunfell/recipes-kernel/linux/linux-qoriq.inc) ``` LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" ``` Looks like there is a problem with finding lic file, it may be that S points to incorrect path. Regards, Tomasz Żyjewski Embedded Systems Engineer GPG: 5C495EA3EBEECA59 https://3mdeb.com | @3mdeb_com |
|
|
|
Rohithraj.Bhaskara@...
I have added the include file and compiled it. But same errors observed with few more errors.
These errors are observed in the stage of bitbake linux-qoriq-rt -c configure.
Also, found following notes while doing fetch, unpack and patch,
NOTE: preferred version 4.19 of linux-qoriq-rt not available (for item linux-qoriq-rt)
Attached log file for your reference.
Thank you
From: yocto@... <yocto@...> on behalf of tomzy <tomasz.zyjewski@...>
Sent: Wednesday, April 13, 2022 4:06 PM To: yocto@... <yocto@...> Subject: [External]Re: [yocto] Yocto Kernel building
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: It is better to use [include file](https://github.com/Freescale/meta-freescale/blob/dunfell/recipes-kernel/linux/linux-qoriq.inc) ``` LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" ``` Looks like there is a problem with finding lic file, it may be that S points to incorrect path. Regards, Tomasz Żyjewski Embedded Systems Engineer GPG: 5C495EA3EBEECA59 https://3mdeb.com | @3mdeb_com
Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment." |
|
|
|
tomzy
From the log I can tell that there is some problem with paths, like bitbake could not find needed files.
Yes, maybe it would be better to try linux-qoriq_4.19.bb and then set PREFERRED_VERSION. Unfortunately,
Regarding, Tomasz Żyjewski |
|
|
|
Rohithraj.Bhaskara@...
Thank you, Tomasz,
I tried to build the default kernel v4.19 using linux-qoriq_4.19.bb by setting PREFERRED_VERSION_linux-qoriq = "4.19%". It was built successfully and later I replaced the source URL and revision of my kernel URL and revision. But I observed the same QA issue. I appreciate your valuable time towards my issues. I look forward to getting more input from you. Best regards, Rohithraj |
|
|