From acd3a40a347fd6fcd25f7773bd53653edb653bac Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Sat, 8 Apr 2023 05:41:30 -0700 Subject: [PATCH] image_types_tegra.bbclass: add dosdcard.sh script to t234 tegraflash packages All of the t234 platforms have SPI flash, so remove the conditional logic in the t234 tegraflash package generator and always create a dosdcard.sh script. Signed-off-by: Matt Madison --- classes/image_types_tegra.bbclass | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/classes/image_types_tegra.bbclass b/classes/image_types_tegra.bbclass index 1f9c128e..e597b1b6 100644 --- a/classes/image_types_tegra.bbclass +++ b/classes/image_types_tegra.bbclass @@ -15,7 +15,7 @@ def tegra_rootfs_device(d): # For Xavier NX booting from SDcard, the RCM booted kernel # bypasses UEFI and doesn't get any overlays applied, such # as the one that renames mmcblk1 -> mmcblk0 - if bootdev.startswith("mmc") and d.getVar('TEGRA_SPIFLASH_BOOT') == "1": + if d.getVar('NVIDIA_CHIP') == "0x19" and bootdev.startswith("mmc") and d.getVar('TEGRA_SPIFLASH_BOOT') == "1": return "mmcblk1" if bootdev.startswith("mmc") or bootdev.startswith("nvme"): return re.sub(r"p[0-9]+$", "", bootdev) @@ -601,29 +601,12 @@ END chmod +x burnfuses.sh fi - if [ "${TEGRA_SPIFLASH_BOOT}" = "1" ]; then - rm -f dosdcard.sh - cat > dosdcard.sh < dosdcard.sh < doflash.sh < dosdcard.sh <