Skip to content

Commit

Permalink
jetson-dtbs: Update default device-tree names in Jetpack 6, drop AGX …
Browse files Browse the repository at this point in the history
…Orin SPI dtb

The SPI device-tree is deleted for now because it cannot be used
for booting Jetpack 6, since Jetpack 5 device-trees are incompatible
with this new release.

Thus, the dtb will need to be re-created and added back for the new
L4T 36.3.

Changelog-entry: jetson-dtbs: Update default device-tree names in Jetpack 6, drop AGX Orin SPI dtb
Signed-off-by: Alexandru Costache <alexandru@balena.io>
  • Loading branch information
acostach committed Jul 1, 2024
1 parent 6cd9856 commit b1d904b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions layers/meta-balena-jetson/recipes-kernel/linux/jetson-dtbs.bb
Original file line number Diff line number Diff line change
@@ -1,50 +1,32 @@
FILESEXTRAPATHS:append := ":${THISDIR}/linux-tegra"
FILESEXTRAPATHS:append := ":${THISDIR}/linux-jammy-nvidia-tegra"

DESCRIPTION = "Package for deploying custom dtbs to the L4T 35.2.1 rootfs"
DESCRIPTION = "Package for deploying default and custom dtbs to the L4T 36.3 rootfs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

do_install[depends] += " linux-tegra:do_deploy "
# In Jetpack 6 the nvidia-kernel-oot provides all device-trees
do_install[depends] += " nvidia-kernel-oot:do_deploy "

S = "${WORKDIR}"
DTBNAME = "${@os.path.basename(d.getVar('KERNEL_DEVICETREE', True).split()[0])}"

SRC_URI:append:jetson-agx-orin-devkit = " file://tegra234-p3701-0000-p3737-0000-spi.dtb "

do_install:jetson-agx-orin-devkit() {
do_install() {
install -d ${D}/boot/
install -m 0644 "${DEPLOY_DIR_IMAGE}/${DTBNAME}" "${D}/boot/${DTBNAME}"
install -m 0644 "${WORKDIR}/tegra234-p3701-0000-p3737-0000-spi.dtb" "${D}/boot/tegra234-p3701-0000-p3737-0000-spi.dtb"
install -m 0644 "${DEPLOY_DIR_IMAGE}/devicetree/${DTBNAME}" "${D}/boot/${DTBNAME}"
}

FILES:${PN}:jetson-agx-orin-devkit += " \
/boot/tegra234-p3701-0000-p3737-0000.dtb \
/boot/tegra234-p3701-0004-p3737-0000.dtb \
/boot/tegra234-p3701-0000-p3737-0000-spi.dtb \
/boot/tegra234-p3737-0000+p3701-0000-nv.dtb \
"

do_install:jetson-orin-nx-xavier-nx-devkit() {
install -d ${D}/boot/
install -m 0644 "${DEPLOY_DIR_IMAGE}/${DTBNAME}" "${D}/boot/${DTBNAME}"
}

FILES:${PN}:jetson-orin-nx-xavier-nx-devkit += " \
/boot/tegra234-p3767-0000-p3509-a02.dtb \
/boot/tegra234-p3768-0000+p3767-0000-nv.dtb \
"

do_install:jetson-orin-nano-devkit-nvme() {
install -d ${D}/boot/
install -m 0644 "${DEPLOY_DIR_IMAGE}/${DTBNAME}" "${D}/boot/${DTBNAME}"
}

do_install:jetson-orin-nano-4g-devkit() {
install -d ${D}/boot/
install -m 0644 "${DEPLOY_DIR_IMAGE}/${DTBNAME}" "${D}/boot/${DTBNAME}"
}

FILES:${PN}:jetson-orin-nano-devkit-nvme += " \
/boot/tegra234-p3767-0003-p3768-0000-a0.dtb \
/boot/tegra234-p3768-0000+p3767-0005-nv.dtb \
"

FILES:${PN}:jetson-orin-nano-4g-devkit += " \
/boot/tegra234-p3767-0004-p3768-0000-a0.dtb \
"
Binary file not shown.

0 comments on commit b1d904b

Please sign in to comment.