From d8559e13d1f1b2863d890ba70911daf6b3010254 Mon Sep 17 00:00:00 2001 From: Alexandru Costache Date: Wed, 9 Oct 2024 07:35:03 +0000 Subject: [PATCH] recipes-linux/jetson-dtbs: Install custom spi dtb for AGX Orin 32GB only Signed-off-by: Alexandru Costache --- .../recipes-kernel/linux/jetson-dtbs.bb | 7 ++++++- .../tegra234-p3737-0000+p3701-0000-nv-spi.dtb | Bin 2 files changed, 6 insertions(+), 1 deletion(-) rename layers/meta-balena-jetson/recipes-kernel/linux/{ => linux-jammy-nvidia-tegra}/tegra234-p3737-0000+p3701-0000-nv-spi.dtb (100%) diff --git a/layers/meta-balena-jetson/recipes-kernel/linux/jetson-dtbs.bb b/layers/meta-balena-jetson/recipes-kernel/linux/jetson-dtbs.bb index 33636cab..6f08ef5d 100644 --- a/layers/meta-balena-jetson/recipes-kernel/linux/jetson-dtbs.bb +++ b/layers/meta-balena-jetson/recipes-kernel/linux/jetson-dtbs.bb @@ -7,18 +7,23 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda # In Jetpack 6 the nvidia-kernel-oot provides all device-trees do_install[depends] += " nvidia-kernel-oot:do_deploy " +SRC_URI += " file://tegra234-p3737-0000+p3701-0000-nv-spi.dtb " + S = "${WORKDIR}" DTBNAME = "${@os.path.basename(d.getVar('KERNEL_DEVICETREE', True).split()[0])}" do_install() { install -d ${D}/boot/ install -m 0644 "${DEPLOY_DIR_IMAGE}/devicetree/${DTBNAME}" "${D}/boot/${DTBNAME}" +} + +do_install:append:jetson-agx-orin-devkit() { install -m 0644 "${WORKDIR}/tegra234-p3737-0000+p3701-0000-nv-spi.dtb" "${D}/boot/tegra234-p3737-0000+p3701-0000-nv-spi.dtb" } FILES:${PN}:jetson-agx-orin-devkit += " \ /boot/tegra234-p3737-0000+p3701-0000-nv.dtb \ - /boot/tegra234-p3737-0000+p3701-0000-nv-spi.dtb \ + /boot/tegra234-p3737-0000+p3701-0000-nv-spi.dtb \ " FILES:${PN}:jetson-orin-nx-xavier-nx-devkit += " \ diff --git a/layers/meta-balena-jetson/recipes-kernel/linux/tegra234-p3737-0000+p3701-0000-nv-spi.dtb b/layers/meta-balena-jetson/recipes-kernel/linux/linux-jammy-nvidia-tegra/tegra234-p3737-0000+p3701-0000-nv-spi.dtb similarity index 100% rename from layers/meta-balena-jetson/recipes-kernel/linux/tegra234-p3737-0000+p3701-0000-nv-spi.dtb rename to layers/meta-balena-jetson/recipes-kernel/linux/linux-jammy-nvidia-tegra/tegra234-p3737-0000+p3701-0000-nv-spi.dtb