Orin NX support PCIe C7 SSD to flash and boot up?

Hi NV_Team,

Orin NX Devkit support 2xM.2 SSD (C4 and C7), only J11 (PCIe C4) support flash and boot up, but J24 (PCIe C7) can’t flash and bootup. UEFI can’t read J24 SSD .

PCIe C4 SSD as nvme0
PCIe C7 SSD as nvme1

nvidia@nvidia-desktop:~$ lspci 
0004:00:00.0 PCI bridge: NVIDIA Corporation Device 229c (rev a1)
0004:01:00.0 Non-Volatile memory controller: Device 1d97:5216 (rev 01)
0007:00:00.0 PCI bridge: NVIDIA Corporation Device 229a (rev a1)
0007:01:00.0 Non-Volatile memory controller: Device 1e4b:1202 (rev 01)
0008:00:00.0 PCI bridge: NVIDIA Corporation Device 229c (rev a1)
0008:01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

Flash shell only check “/dev/nvme0n1”

home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --network usb0 --usb-instance 3-9 --device-instance 0 --flash-only --external-device nvme0n1p1 -c "tools/kernel_flash/flash_l4t_external.xml" --network usb0 p3509-a02+p3767-0000 internal
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/bootloader ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0 ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot0.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"    --secondary_gpt_backup  --bct_backup  --boot_chain A  --instance 3-9
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 

 Entering RCM boot

[   0.0470 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
[   0.0470 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
[   0.0470 ] rcm boot with presigned binaries
[   0.0479 ] tegrarcm_v2 --instance 3-9 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[   0.0487 ] BR_CID: 0x80012344705DD10F2400000009028080
[   0.0557 ] Sending bct_br
[   0.0636 ] Sending mb1
[   0.0641 ] Sending psc_bl1
[   0.0730 ] Sending bct_mb1
[   0.0790 ] Generating blob for T23x
[   0.0816 ] tegrahost_v2 --chip 0x23 0 --generateblob blob.xml blob.bin
[   0.0828 ] The number of images in blob is 18
[   0.0832 ] blobsize is 72818156
[   0.0834 ] Added binary blob_uefi_jetson_with_dtb_sigheader.bin.encrypt of size 3175248
[   0.1154 ] Added binary blob_pscfw_t234_prod_sigheader.bin.encrypt of size 375168
[   0.1160 ] Added binary blob_mce_flash_o10_cr_prod_sigheader.bin.encrypt of size 190592
[   0.1164 ] Added binary blob_applet_t234_sigheader.bin.encrypt of size 277312
[   0.1167 ] Not supported type: mb2_applet
[   0.1169 ] Added binary blob_mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt of size 437760
[   0.1174 ] Added binary blob_xusb_t234_prod_sigheader.bin.encrypt of size 164352
[   0.1176 ] Added binary blob_display-t234-dce_sigheader.bin.encrypt of size 9097216
[   0.1214 ] Added binary blob_nvdec_t234_prod_sigheader.fw.encrypt of size 294912
[   0.1233 ] Added binary blob_bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt of size 1047616
[   0.1240 ] Added binary blob_tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt of size 138880
[   0.1243 ] Added binary blob_camera-rtcpu-sce_sigheader.img.encrypt of size 166304
[   0.1245 ] Added binary blob_camera-rtcpu-t234-rce_sigheader.img.encrypt of size 537952
[   0.1248 ] Added binary blob_adsp-fw_sigheader.bin.encrypt of size 400944
[   0.1250 ] Added binary blob_spe_t234_sigheader.bin.encrypt of size 270336
[   0.1252 ] Added binary blob_tos-optee_t234_sigheader.img.encrypt of size 1064752
[   0.1254 ] Added binary blob_eks_t234_sigheader.img.encrypt of size 9232
[   0.1256 ] Added binary blob_boot0.img of size 54827008
[   0.1553 ] Added binary blob_tegra234-p3767-0000-p3509-a02.dtb of size 341468
[   0.2023 ] tegrarcm_v2 --instance 3-9 --chip 0x23 0 --pollbl --download bct_mem mem_rcm_sigheader.bct.encrypt --download blob blob.bin
[   0.2031 ] BL: version 0.28.0.0-t234-54845784-ec016368 last_boot_error: 0
[   0.2915 ] Sending bct_mem
[   0.3060 ] Sending blob
[   3.1224 ] RCM-boot started

~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
***************************************
*                                     *
*  Step 3: Start the flashing process *
*                                     *
***************************************
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
...RTNETLINK answers: File exists
RTNETLINK answers: File exists
Waiting for device to expose ssh ...Run command: flash on fc00:1:1:0::2
SSH ready
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /mnt/internal/flash.idx
Number of lines is 58
max_index=57
[ 1]: l4t_flash_from_kernel: Successfully create gpt for emmc
[ 1]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /mnt/external/flash.idx
Number of lines is 17
max_index=16
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, ef46a374e52eb9cb86c999c7815303c71bfd9c0c
Error: Could not stat device /dev/nvme0n1 - No such file or directory.
Flash failure
Cleaning up...

Initrd flash will check device tree. Which means you need to enable C7 in the device tree first so that you can use initrd flash to flash first.

Hi WayneWWW,

Do you mean “Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb”.

We have enabled C7 in “/tegra234-p3767-0000-p3509-a02.dtb”.

 pcie@141e0000 {
                compatible = "nvidia,tegra234-pcie", "snps,dw-pcie";
                power-domains = <0x2 0x10>;
                reg = <0x0 0x141e0000 0x0 0x20000 0x0 0x3e000000 0x0 0x40000 0x0 0x3e040000 0x0 0x40000 0x0 0x3e080000 0x0 0x40000 0x32 0x30000000 0x0 0x10000000>;
                reg-names = "appl", "config", "atu_dma", "dbi", "ecam";
                status = "okay";
                #address-cells = <0x3>;
                #size-cells = <0x2>;
                device_type = "pci";
                num-lanes = <0x8>;
                num-viewport = <0x8>;
                linux,pci-domain = <0x7>;
                clocks = <0x2 0xab 0x2 0xf4>;
                clock-names = "core", "core_m";
                resets = <0x2 0xf 0x2 0xe>;
                reset-names = "apb", "core";
                interrupts = <0x0 0x162 0x4 0x0 0x163 0x4>;
                interrupt-names = "intr", "msi";
                interconnects = <0x3 0x2a 0x3 0x30>;
                interconnect-names = "dma-mem", "dma-mem";
                iommus = <0x50 0x8>;
                iommu-map = <0x0 0x50 0x8 0x1000>;
                msi-parent = <0x4c 0x8>;
                msi-map = <0x0 0x4c 0x8 0x1000>;
                dma-coherent;
                iommu-map-mask = <0x0>;
                #interrupt-cells = <0x1>;
                interrupt-map-mask = <0x0 0x0 0x0 0x0>;
                interrupt-map = <0x0 0x0 0x0 0x0 0x1 0x0 0x162 0x4>;
                nvidia,dvfs-tbl = <0xc28cb00 0xc28cb00 0xc28cb00 0x18519600 0xc28cb00 0xc28cb00 0x18519600 0x27b25a80 0xc28cb00 0x18519600 0x27b25a80 0x3f89de80 0x18519600 0x27b25a80 0x3f89de80 0x7f22ff40>;
                nvidia,max-speed = <0x4>;
                nvidia,disable-aspm-states = <0xf>;
                nvidia,controller-id = <0x2 0x7>;
                nvidia,tsa-config = <0x200b004>;
                nvidia,disable-l1-cpm;
                nvidia,aux-clk-freq = <0x13>;
                nvidia,preset-init = <0x5>;
                nvidia,aspm-cmrt = <0x3c>;
                nvidia,aspm-pwr-on-t = <0x14>;
                nvidia,aspm-l0s-entrance-latency = <0x3>;
                nvidia,bpmp = <0x2 0x7>;
                nvidia,aspm-cmrt-us = <0x3c>;
                nvidia,aspm-pwr-on-t-us = <0x14>;
                nvidia,aspm-l0s-entrance-latency-us = <0x3>;
                bus-range = <0x0 0xff>;
                ranges = <0x81000000 0x0 0x3e100000 0x0 0x3e100000 0x0 0x100000 0x82000000 0x0 0x40000000 0x32 0x28000000 0x0 0x8000000 0xc3000000 0x2e 0x40000000 0x2e 0x40000000 0x3 0xe8000000>;
                nvidia,cfg-link-cap-l1sub = <0x1c4>;
                nvidia,cap-pl16g-status = <0x174>;
                nvidia,cap-pl16g-cap-off = <0x188>;
                nvidia,event-cntr-ctrl = <0x1d8>;
                nvidia,event-cntr-data = <0x1dc>;
                nvidia,dl-feature-cap = <0x30c>;
                nvidia,ptm-cap-off = <0x318>;
                vddio-pex-ctl-supply = <0x51>;
                phys = <0x58 0x59>;
                phy-names = "p2u-0", "p2u-1";
                phandle = <0x2e0>;
        };

tegra234-p3767-0000-p3509-a02.dtb (333.6 KB)

Flash log :

/home/twsrv01/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --network usb0 --usb-instance 3-9 --device-instance 0 --flash-only --external-device nvme0n1p1 -c "tools/kernel_flash/flash_l4t_external.xml" --network usb0 p3509-a02+p3767-0000 internal
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/bootloader ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0 ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot0.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"    --secondary_gpt_backup  --bct_backup  --boot_chain A  --instance 3-9
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 

 Entering RCM boot

[   0.0267 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
[   0.0267 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
[   0.0267 ] rcm boot with presigned binaries
[   0.0276 ] tegrarcm_v2 --instance 3-9 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[   0.0283 ] BR_CID: 0x80012344705DD10F2400000009028080
[   0.0351 ] Sending bct_br
[   0.0406 ] Sending mb1
[   0.0411 ] Sending psc_bl1
[   0.0497 ] Sending bct_mb1
[   0.0554 ] Generating blob for T23x
[   0.0576 ] tegrahost_v2 --chip 0x23 0 --generateblob blob.xml blob.bin
[   0.0585 ] The number of images in blob is 18
[   0.0589 ] blobsize is 72818156
[   0.0590 ] Added binary blob_uefi_jetson_with_dtb_sigheader.bin.encrypt of size 3175248
[   0.0907 ] Added binary blob_pscfw_t234_prod_sigheader.bin.encrypt of size 375168
[   0.0915 ] Added binary blob_mce_flash_o10_cr_prod_sigheader.bin.encrypt of size 190592
[   0.0917 ] Added binary blob_applet_t234_sigheader.bin.encrypt of size 277312
[   0.0919 ] Not supported type: mb2_applet
[   0.0920 ] Added binary blob_mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt of size 437760
[   0.0924 ] Added binary blob_xusb_t234_prod_sigheader.bin.encrypt of size 164352
[   0.0926 ] Added binary blob_display-t234-dce_sigheader.bin.encrypt of size 9097216
[   0.0972 ] Added binary blob_nvdec_t234_prod_sigheader.fw.encrypt of size 294912
[   0.0988 ] Added binary blob_bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt of size 1047616
[   0.0995 ] Added binary blob_tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt of size 138880
[   0.0998 ] Added binary blob_camera-rtcpu-sce_sigheader.img.encrypt of size 166304
[   0.1000 ] Added binary blob_camera-rtcpu-t234-rce_sigheader.img.encrypt of size 537952
[   0.1002 ] Added binary blob_adsp-fw_sigheader.bin.encrypt of size 400944
[   0.1004 ] Added binary blob_spe_t234_sigheader.bin.encrypt of size 270336
[   0.1006 ] Added binary blob_tos-optee_t234_sigheader.img.encrypt of size 1064752
[   0.1013 ] Added binary blob_eks_t234_sigheader.img.encrypt of size 9232
[   0.1015 ] Added binary blob_boot0.img of size 54827008
[   0.1288 ] Added binary blob_tegra234-p3767-0000-p3509-a02.dtb of size 341468
[   0.1719 ] tegrarcm_v2 --instance 3-9 --chip 0x23 0 --pollbl --download bct_mem mem_rcm_sigheader.bct.encrypt --download blob blob.bin
[   0.1727 ] BL: version 0.28.0.0-t234-54845784-ec016368 last_boot_error: 0
[   0.2678 ] Sending bct_mem
[   0.2801 ] Sending blob
[   3.0906 ] RCM-boot started

~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
***************************************
*                                     *
*  Step 3: Start the flashing process *
*                                     *
***************************************
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
...RTNETLINK answers: File exists
RTNETLINK answers: File exists
Waiting for device to expose ssh ...Run command: flash on fc00:1:1:0::2
SSH ready
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /mnt/internal/flash.idx
Number of lines is 58
max_index=57
[ 2]: l4t_flash_from_kernel: Successfully create gpt for emmc
[ 2]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /mnt/external/flash.idx
Number of lines is 17
max_index=16
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, ef46a374e52eb9cb86c999c7815303c71bfd9c0c
Error: Could not stat device /dev/nvme0n1 - No such file or directory.
Flash failure
Cleaning up...

Hi,

Try to debug it in another way. You need to make sure you can boot up and nvme has to be enumerated.

So, what you can do now is boot from a usb drive first. Under this situation, check if C7 is able to detect your NVMe drive.

Also, check your UART log during flash and it will tell you what is going on on device side. It is always more clear than checking host log.

Hi WayneWWW,

  1. I use two SSD (M.2 C4 and C7), boot from C4 is okay , and C7 can be detected after C4 bootup
    C4: /dev/nvme0n1
    C7: /dev/nvme1n1
  2. Initrd flash only use /dev/nvme0n1 to flash

Hi WayneWWW,

Can you check this use Orin NX Devkit ?

Your ran initrd flash command to use nvme0n1 and you are asking me why it cannot use nvme1n1?

Are you seriously asking about this question? Why not just change the flash command and try?

  1. C7 is deteced as nvme1n1 after OrinNX bootup, so we tried to set nvme1n1p1 to initrd flash.

  2. We have already tried to change flash command nvme0n1p1 to nvme1n1p1 and not work .
    “Error: Could not stat device /dev/nvme0n1 - No such file or directory.”

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme1n1p1  -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml"   --showlogs --network usb0 p3509-a02+p3767-0000 internal
Waiting for device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
...RTNETLINK answers: File exists
RTNETLINK answers: File exists
Waiting for device to expose ssh ...Run command: flash on fc00:1:1:0::2
SSH ready
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /mnt/internal/flash.idx
Number of lines is 58
max_index=57
[ 2]: l4t_flash_from_kernel: Successfully create gpt for emmc
[ 2]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /mnt/external/flash.idx
Number of lines is 17
max_index=16
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, ef46a374e52eb9cb86c999c7815303c71bfd9c0c
Error: Could not stat device /dev/nvme0n1 - No such file or directory.
Flash failure
Cleaning up...

As I already said in previous comment, are you able to share the uart log?

Hi,

UART Log :
C7 SSD Flash log OrinNX Devkit2023_3_1_13-54-15.log (77.8 KB)

Flash Log:

/home/twsrv01/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --network usb0 --usb-instance 3-9 --device-instance 0 --flash-only --external-device nvme0n1p1 -c "tools/kernel_flash/flash_l4t_external.xml" --network usb0 p3509-a02+p3767-0000 internal
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/bootloader ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0 ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot0.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"    --secondary_gpt_backup  --bct_backup  --boot_chain A  --instance 3-9
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 

 Entering RCM boot

[   0.0268 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
[   0.0268 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
[   0.0268 ] rcm boot with presigned binaries
[   0.0276 ] tegrarcm_v2 --instance 3-9 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[   0.0284 ] BR_CID: 0x80012344705DD10F2400000009028080
[   0.0351 ] Sending bct_br
[   0.0411 ] Sending mb1
[   0.0415 ] Sending psc_bl1
[   0.0510 ] Sending bct_mb1
[   0.0570 ] Generating blob for T23x
[   0.0595 ] tegrahost_v2 --chip 0x23 0 --generateblob blob.xml blob.bin
[   0.0606 ] The number of images in blob is 18
[   0.0610 ] blobsize is 72818156
[   0.0611 ] Added binary blob_uefi_jetson_with_dtb_sigheader.bin.encrypt of size 3175248
[   0.0915 ] Added binary blob_pscfw_t234_prod_sigheader.bin.encrypt of size 375168
[   0.0920 ] Added binary blob_mce_flash_o10_cr_prod_sigheader.bin.encrypt of size 190592
[   0.0923 ] Added binary blob_applet_t234_sigheader.bin.encrypt of size 277312
[   0.0925 ] Not supported type: mb2_applet
[   0.0926 ] Added binary blob_mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt of size 437760
[   0.0929 ] Added binary blob_xusb_t234_prod_sigheader.bin.encrypt of size 164352
[   0.0931 ] Added binary blob_display-t234-dce_sigheader.bin.encrypt of size 9097216
[   0.0974 ] Added binary blob_nvdec_t234_prod_sigheader.fw.encrypt of size 294912
[   0.0990 ] Added binary blob_bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt of size 1047616
[   0.0996 ] Added binary blob_tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt of size 138880
[   0.0998 ] Added binary blob_camera-rtcpu-sce_sigheader.img.encrypt of size 166304
[   0.1001 ] Added binary blob_camera-rtcpu-t234-rce_sigheader.img.encrypt of size 537952
[   0.1003 ] Added binary blob_adsp-fw_sigheader.bin.encrypt of size 400944
[   0.1005 ] Added binary blob_spe_t234_sigheader.bin.encrypt of size 270336
[   0.1007 ] Added binary blob_tos-optee_t234_sigheader.img.encrypt of size 1064752
[   0.1010 ] Added binary blob_eks_t234_sigheader.img.encrypt of size 9232
[   0.1012 ] Added binary blob_boot0.img of size 54827008
[   0.1283 ] Added binary blob_tegra234-p3767-0000-p3509-a02.dtb of size 341468
[   0.1713 ] tegrarcm_v2 --instance 3-9 --chip 0x23 0 --pollbl --download bct_mem mem_rcm_sigheader.bct.encrypt --download blob blob.bin
[   0.1722 ] BL: version 0.28.0.0-t234-54845784-ec016368 last_boot_error: 0
[   0.2697 ] Sending bct_mem
[   0.2812 ] Sending blob
[   3.0951 ] RCM-boot started

~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
***************************************
*                                     *
*  Step 3: Start the flashing process *
*                                     *
***************************************
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Timeout
Cleaning up...
twsrv01@twsrv01:~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra$ ./ssd.flash.p3509.orinnx.sh 
/home/twsrv01/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --network usb0 --usb-instance 3-9 --device-instance 0 --flash-only --external-device nvme0n1p1 -c "tools/kernel_flash/flash_l4t_external.xml" --network usb0 p3509-a02+p3767-0000 internal
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/bootloader ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0 ~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot0.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"    --secondary_gpt_backup  --bct_backup  --boot_chain A  --instance 3-9
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 

 Entering RCM boot

[   0.0270 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
[   0.0270 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
[   0.0270 ] rcm boot with presigned binaries
[   0.0278 ] tegrarcm_v2 --instance 3-9 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[   0.0285 ] BR_CID: 0x80012344705DD10F2400000009028080
[   0.0351 ] Sending bct_br
[   0.0404 ] Sending mb1
[   0.0408 ] Sending psc_bl1
[   0.0495 ] Sending bct_mb1
[   0.0553 ] Generating blob for T23x
[   0.0582 ] tegrahost_v2 --chip 0x23 0 --generateblob blob.xml blob.bin
[   0.0595 ] The number of images in blob is 18
[   0.0600 ] blobsize is 72818156
[   0.0601 ] Added binary blob_uefi_jetson_with_dtb_sigheader.bin.encrypt of size 3175248
[   0.0912 ] Added binary blob_pscfw_t234_prod_sigheader.bin.encrypt of size 375168
[   0.0919 ] Added binary blob_mce_flash_o10_cr_prod_sigheader.bin.encrypt of size 190592
[   0.0921 ] Added binary blob_applet_t234_sigheader.bin.encrypt of size 277312
[   0.0923 ] Not supported type: mb2_applet
[   0.0924 ] Added binary blob_mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt of size 437760
[   0.0927 ] Added binary blob_xusb_t234_prod_sigheader.bin.encrypt of size 164352
[   0.0929 ] Added binary blob_display-t234-dce_sigheader.bin.encrypt of size 9097216
[   0.0978 ] Added binary blob_nvdec_t234_prod_sigheader.fw.encrypt of size 294912
[   0.0994 ] Added binary blob_bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt of size 1047616
[   0.1000 ] Added binary blob_tegra234-bpmp-3767-0000-a02-3509-a02_sigheader.dtb.encrypt of size 138880
[   0.1003 ] Added binary blob_camera-rtcpu-sce_sigheader.img.encrypt of size 166304
[   0.1005 ] Added binary blob_camera-rtcpu-t234-rce_sigheader.img.encrypt of size 537952
[   0.1008 ] Added binary blob_adsp-fw_sigheader.bin.encrypt of size 400944
[   0.1010 ] Added binary blob_spe_t234_sigheader.bin.encrypt of size 270336
[   0.1012 ] Added binary blob_tos-optee_t234_sigheader.img.encrypt of size 1064752
[   0.1018 ] Added binary blob_eks_t234_sigheader.img.encrypt of size 9232
[   0.1020 ] Added binary blob_boot0.img of size 54827008
[   0.1297 ] Added binary blob_tegra234-p3767-0000-p3509-a02.dtb of size 341468
[   0.1732 ] tegrarcm_v2 --instance 3-9 --chip 0x23 0 --pollbl --download bct_mem mem_rcm_sigheader.bct.encrypt --download blob blob.bin
[   0.1739 ] BL: version 0.28.0.0-t234-54845784-ec016368 last_boot_error: 0
[   0.2669 ] Sending bct_mem
[   0.2772 ] Sending blob
[   3.0999 ] RCM-boot started

~/sda/home/dennis/nvidia/JetPack_5.1GA_Linux_JETSON_AGX_ORIN_NX_TARGETS/Linux_for_Tegra
***************************************
*                                     *
*  Step 3: Start the flashing process *
*                                     *
***************************************
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
Waiting for device to expose ssh ...Run command: flash on fc00:1:1:0::2
SSH ready
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /mnt/internal/flash.idx
Number of lines is 58
max_index=57
[ 2]: l4t_flash_from_kernel: Successfully create gpt for emmc
[ 2]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /mnt/external/flash.idx
Number of lines is 17
max_index=16
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, ef46a374e52eb9cb86c999c7815303c71bfd9c0c
Error: Could not stat device /dev/nvme0n1 - No such file or directory.
Flash failure
Cleaning up...

Hi,

The situation seems to be your initrd flash totally uses the default DTB from jetpack.

I don’t see C7 is enabled too.

Hi WayneWWW,

C7 is not enabled because we replace new dtb in kernel/dtb/ folder, but not re-generate system.img file.

Now, we use re-generate flash command to flash, now C7 flash and boot up both works fine.

Thanks for your support.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.