Part Number: TDA4VM
Hello,
I have started a TDA4VM project and am using Processor SDK Linux for J721e 08_06_01, referencing this page. I have successfully built an image "tisdk-default-image", but I am encountering the error below while building the kernel from the local workspace. If I do not use a local workspace, then I don't see any error.
Here, I edit the bb file located at <SDK INSTALL DIR>/yocto-build/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb.
I set the SRC_URI source to the local path, changing it to "<SDK INSTALL DIR>/board-support/linux-5.10.162+gitAUTOINC+76b3e88d56-g76b3e88d56/"
SECTION = "kernel"
SUMMARY = "Linux kernel for TI devices"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
inherit kernel
DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh"
require recipes-kernel/linux/setup-defconfig.inc
require recipes-kernel/linux/cmem.inc
require recipes-kernel/linux/ti-uio.inc
require recipes-kernel/linux/bundle-devicetree.inc
require recipes-kernel/linux/kernel-rdepends.inc
require recipes-kernel/linux/ti-kernel.inc
DEPENDS += "gmp-native libmpc-native"
# Look in the generic major.minor directory for files
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
${EXTRA_DTC_ARGS}"
S = "${WORKDIR}/git"
BRANCH = "ti-linux-5.10.y"
SRCREV = "76b3e88d569210a51399e8d8c8babd995af29d11"
PV = "5.10.162+git${SRCPV}"
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
MACHINE_KERNEL_PR_append = "b"
PR = "${MACHINE_KERNEL_PR}"
# KERNEL_GIT_URI = "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
# KERNEL_GIT_PROTOCOL = "https"
# SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
# file://defconfig"
LOCAL_BSP_DIR = "${TOPDIR}/../../board-support/linux-5.10.162+gitAUTOINC+76b3e88d56-g76b3e88d56"
LOCAL_FILE_URL = "git://${LOCAL_BSP_DIR}/;protocol=file"
SRC_URI += "${LOCAL_FILE_URL};nocheckout=1;branch=${BRANCH} \
file://defconfig"
FILES_${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
# Special configuration for remoteproc/rpmsg IPC modules
module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample"
module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"
module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus"
KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc"
KERNEL_MODULE_AUTOLOAD_append_j7 = " rpmsg_kdrv_switch"
Then I rebuild the image by running "bitbake -k tisdk-default-image",
and an error is present by 0002-ina226-Porting-to-5.10-branch.patch. What am I missing?
Initialising tasks: 100% |############################################################################################| Time: 0:00:08
Sstate summary: Wanted 57 Found 0 Missed 57 Current 3554 (0% match, 98% complete)
NOTE: Executing Tasks
ERROR: linux-ti-staging-5.10.162+gitAUTOINC+76b3e88d56-r0b.arago5_psdkla_97.4 do_patch: Applying patch '0002-ina226-Porting-to-5.10-branch.patch' on target directory '/home/howell/myProject/j7-evm-08_06_01_02/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.162+gitAUTOINC+76b3e88d56-r0b.arago5_psdkla_97.4/git'
Command Error: 'quilt --quiltrc /home/howell/myProject/j7-evm-08_06_01_02/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.162+gitAUTOINC+76b3e88d56-r0b.arago5_psdkla_97.4/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0002-ina226-Porting-to-5.10-branch.patch
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 35a6120a25e864e8299d346514a5fcc3ad4d75bb Mon Sep 17 00:00:00 2001
|From: Keerthy <j-keerthy@ti.com>
|Date: Thu, 17 Jun 2021 09:17:29 +0530
|Subject: [PATCH 2/4] ina226: Porting to 5.10 branch
|
|Signed-off-by: Keerthy <j-keerthy@ti.com>
|---
| .../dts/ti/k3-j721e-common-proc-board.dts | 117 ++++++++++++++++++
| 1 file changed, 117 insertions(+)
|
|diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
|index 77d6f18f86..72f37f447f 100644
|--- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
|+++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
--------------------------
No file to patch. Skipping patch.
3 out of 3 hunks ignored
Patch 0002-ina226-Porting-to-5.10-branch.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: /home/howell/myProject/j7-evm-08_06_01_02/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.162+gitAUTOINC+76b3e88d56-r0b.arago5_psdkla_97.4/temp/log.do_patch.17815
ERROR: Task (/home/howell/myProject/j7-evm-08_06_01_02/yocto-build/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 10108 tasks of which 10107 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
Summary: 1 task failed:
/home/howell/myProject/j7-evm-08_06_01_02/yocto-build/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_patch
Summary: There was 1 ERROR message shown, returning a non-zero exit code.