Hardware:
Orin nano module P3767(with 256GB nvme) + Dev kit P3766
Target:
I want to flash Orin nano according to HDMI on custom board for orin enablement, then move Orin nano to custom carrier board to test HDMI output.
Issues:
My cmd is:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" –showlogs --network usb0 p3509-a02+p3767-0000 nvme0n1p1
Here is some error message:
blockdev: cannot open /dev/sdb: No medium found
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
Error: Could not stat device /dev/mmcblk0 - No such file or directory.
Partial log:
***************************************
* *
* 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 device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
Run command: if [ -f /qspi/l4t_flash_from_kernel.sh ]; then USER=root /qspi/l4t_flash_from_kernel.sh --no-reboot --qspi-only ; fi on root@fe80::1%usb0
blockdev: cannot open /dev/sdb: No medium found
[ 0]: l4t_flash_from_kernel: Warning: serial number sysfs node doesn't exist.
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/tools/kernel_flash/images/internal/flash.idx
Number of lines is 58
max_index=57
SSH ready
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Serial Number: 1424723040580
Flash index file is /qspi/internal/flash.idx
Number of lines is 58
max_index=57
[ 0]: l4t_flash_from_kernel: Starting to flash to qspi
QSPI storage size: 67108864 bytes.
[ 1]: l4t_flash_from_kernel: Successfully create gpt for emmc
Run command: partprobe /dev/mmcblk0 on root@fe80::1%usb0
Error: Could not stat device /dev/mmcblk0 - No such file or directory.
Erased 67108864 bytes from address 0x00000000 in flash
Flash index file is /qspi/internal/flash.idx
Number of lines is 58
max_index=57
Writing br_bct_BR.bct (parittion: BCT) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/br_bct_BR.bct
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:0
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00000000 in flash
[ 171]: l4t_flash_from_kernel: QSPI erase block size is 65536
[ 171]: l4t_flash_from_kernel: Writing 16 copies of /qspi/internal/br_bct_BR.bct
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:65536
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00010000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:131072
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00020000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:196608
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00030000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:262144
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00040000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:327680
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00050000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:393216
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00060000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:458752
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00070000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:524288
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00080000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:589824
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x00090000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:655360
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x000a0000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:720896
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x000b0000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:786432
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x000c0000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:851968
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x000d0000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:917504
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x000e0000 in flash
Writing /qspi/internal/br_bct_BR.bct (8192 bytes) into /dev/mtd0:983040
Copied 8192 bytes from /qspi/internal/br_bct_BR.bct to address 0x000f0000 in flash
Writing mb1_t234_prod_aligned_sigheader.bin.encrypt (parittion: A_mb1) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb1_t234_prod_aligned_sigheader.bin.encrypt
Writing /qspi/internal/mb1_t234_prod_aligned_sigheader.bin.encrypt (281328 bytes) into /dev/mtd0:1048576
Copied 281328 bytes from /qspi/internal/mb1_t234_prod_aligned_sigheader.bin.encrypt to address 0x00100000 in flash
Writing psc_bl1_t234_prod_aligned_sigheader.bin.encrypt (parittion: A_psc_bl1) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/psc_bl1_t234_prod_aligned_sigheader.bin.encrypt
Writing /qspi/internal/psc_bl1_t234_prod_aligned_sigheader.bin.encrypt (123008 bytes) into /dev/mtd0:1572864
Copied 123008 bytes from /qspi/internal/psc_bl1_t234_prod_aligned_sigheader.bin.encrypt to address 0x00180000 in flash
Writing mb1_cold_boot_bct_MB1_sigheader.bct.encrypt (parittion: A_MB1_BCT) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt
Writing /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt (17600 bytes) into /dev/mtd0:1835008
Copied 17600 bytes from /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt to address 0x001c0000 in flash
Writing mem_coldboot_sigheader.bct.encrypt (parittion: A_MEM_BCT) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mem_coldboot_sigheader.bct.encrypt
Writing /qspi/internal/mem_coldboot_sigheader.bct.encrypt (243712 bytes) into /dev/mtd0:1966080
Copied 243712 bytes from /qspi/internal/mem_coldboot_sigheader.bct.encrypt to address 0x001e0000 in flash
[ 173]: l4t_flash_from_kernel: Warning: skip writing A_tsec-fw partition as no image is specified
Writing nvdec_t234_prod_sigheader.fw.encrypt (parittion: A_nvdec) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/nvdec_t234_prod_sigheader.fw.encrypt
Writing /qspi/internal/nvdec_t234_prod_sigheader.fw.encrypt (294912 bytes) into /dev/mtd0:3276800
Copied 294912 bytes from /qspi/internal/nvdec_t234_prod_sigheader.fw.encrypt to address 0x00320000 in flash
Writing mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt (parittion: A_mb2) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt
Writing /qspi/internal/mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt (437008 bytes) into /dev/mtd0:4325376
Copied 437008 bytes from /qspi/internal/mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt to address 0x00420000 in flash
Writing xusb_t234_prod_sigheader.bin.encrypt (parittion: A_xusb-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/xusb_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/xusb_t234_prod_sigheader.bin.encrypt (164864 bytes) into /dev/mtd0:4849664
Copied 164864 bytes from /qspi/internal/xusb_t234_prod_sigheader.bin.encrypt to address 0x004a0000 in flash
Writing bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt (parittion: A_bpmp-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt
Writing /qspi/internal/bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt (1027008 bytes) into /dev/mtd0:5111808
Copied 1027008 bytes from /qspi/internal/bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt to address 0x004e0000 in flash
Writing tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt (parittion: A_bpmp-fw-dtb) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt
Writing /qspi/internal/tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt (199936 bytes) into /dev/mtd0:6684672
Copied 199936 bytes from /qspi/internal/tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt to address 0x00660000 in flash
Writing pscfw_t234_prod_sigheader.bin.encrypt (parittion: A_psc-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/pscfw_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/pscfw_t234_prod_sigheader.bin.encrypt (375168 bytes) into /dev/mtd0:10878976
Copied 375168 bytes from /qspi/internal/pscfw_t234_prod_sigheader.bin.encrypt to address 0x00a60000 in flash
Writing mce_flash_o10_cr_prod_sigheader.bin.encrypt (parittion: A_mts-mce) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mce_flash_o10_cr_prod_sigheader.bin.encrypt
Writing /qspi/internal/mce_flash_o10_cr_prod_sigheader.bin.encrypt (190592 bytes) into /dev/mtd0:11665408
Copied 190592 bytes from /qspi/internal/mce_flash_o10_cr_prod_sigheader.bin.encrypt to address 0x00b20000 in flash
Writing sc7_t234_prod_sigheader.bin.encrypt (parittion: A_sc7) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/sc7_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/sc7_t234_prod_sigheader.bin.encrypt (185408 bytes) into /dev/mtd0:12189696
Copied 185408 bytes from /qspi/internal/sc7_t234_prod_sigheader.bin.encrypt to address 0x00ba0000 in flash
Writing psc_rf_t234_prod_sigheader.bin.encrypt (parittion: A_pscrf) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/psc_rf_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/psc_rf_t234_prod_sigheader.bin.encrypt (122464 bytes) into /dev/mtd0:12386304
Copied 122464 bytes from /qspi/internal/psc_rf_t234_prod_sigheader.bin.encrypt to address 0x00bd0000 in flash
Writing mb2rf_t234_sigheader.bin.encrypt (parittion: A_mb2rf) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb2rf_t234_sigheader.bin.encrypt
Writing /qspi/internal/mb2rf_t234_sigheader.bin.encrypt (122816 bytes) into /dev/mtd0:12582912
Copied 122816 bytes from /qspi/internal/mb2rf_t234_sigheader.bin.encrypt to address 0x00c00000 in flash
Writing uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt (parittion: A_cpu-bootloader) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt
Writing /qspi/internal/uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt (2912672 bytes) into /dev/mtd0:12713984
Copied 2912672 bytes from /qspi/internal/uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt to address 0x00c20000 in flash
Writing tos-optee_t234_sigheader.img.encrypt (parittion: A_secure-os) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tos-optee_t234_sigheader.img.encrypt
Writing /qspi/internal/tos-optee_t234_sigheader.img.encrypt (1288096 bytes) into /dev/mtd0:16384000
Copied 1288096 bytes from /qspi/internal/tos-optee_t234_sigheader.img.encrypt to address 0x00fa0000 in flash
[ 186]: l4t_flash_from_kernel: Warning: skip writing A_smm-fw partition as no image is specified
Writing eks_t234_sigheader.img.encrypt (parittion: A_eks) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/eks_t234_sigheader.img.encrypt
Writing /qspi/internal/eks_t234_sigheader.img.encrypt (9232 bytes) into /dev/mtd0:22675456
Copied 9232 bytes from /qspi/internal/eks_t234_sigheader.img.encrypt to address 0x015a0000 in flash
Writing display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt (parittion: A_dce-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt
Writing /qspi/internal/display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt (738336 bytes) into /dev/mtd0:22937600
Copied 738336 bytes from /qspi/internal/display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt to address 0x015e0000 in flash
Writing spe_t234_sigheader.bin.encrypt (parittion: A_spe-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/spe_t234_sigheader.bin.encrypt
Writing /qspi/internal/spe_t234_sigheader.bin.encrypt (270336 bytes) into /dev/mtd0:28180480
Copied 270336 bytes from /qspi/internal/spe_t234_sigheader.bin.encrypt to address 0x01ae0000 in flash
Writing camera-rtcpu-t234-rce_sigheader.img.encrypt (parittion: A_rce-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt
Writing /qspi/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt (540000 bytes) into /dev/mtd0:28770304
Copied 540000 bytes from /qspi/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt to address 0x01b70000 in flash
Writing adsp-fw_sigheader.bin.encrypt (parittion: A_adsp-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/adsp-fw_sigheader.bin.encrypt
Writing /qspi/internal/adsp-fw_sigheader.bin.encrypt (400960 bytes) into /dev/mtd0:29818880
Copied 400960 bytes from /qspi/internal/adsp-fw_sigheader.bin.encrypt to address 0x01c70000 in flash
[ 190]: l4t_flash_from_kernel: Warning: skip writing A_reserved_on_boot partition as no image is specified
Writing mb1_t234_prod_aligned_sigheader.bin.encrypt (parittion: B_mb1) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb1_t234_prod_aligned_sigheader.bin.encrypt
Writing /qspi/internal/mb1_t234_prod_aligned_sigheader.bin.encrypt (281328 bytes) into /dev/mtd0:33292288
Copied 281328 bytes from /qspi/internal/mb1_t234_prod_aligned_sigheader.bin.encrypt to address 0x01fc0000 in flash
Writing psc_bl1_t234_prod_aligned_sigheader.bin.encrypt (parittion: B_psc_bl1) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/psc_bl1_t234_prod_aligned_sigheader.bin.encrypt
Writing /qspi/internal/psc_bl1_t234_prod_aligned_sigheader.bin.encrypt (123008 bytes) into /dev/mtd0:33816576
Copied 123008 bytes from /qspi/internal/psc_bl1_t234_prod_aligned_sigheader.bin.encrypt to address 0x02040000 in flash
Writing mb1_cold_boot_bct_MB1_sigheader.bct.encrypt (parittion: B_MB1_BCT) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt
Writing /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt (17600 bytes) into /dev/mtd0:34078720
Copied 17600 bytes from /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt to address 0x02080000 in flash
Writing mem_coldboot_sigheader.bct.encrypt (parittion: B_MEM_BCT) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mem_coldboot_sigheader.bct.encrypt
Writing /qspi/internal/mem_coldboot_sigheader.bct.encrypt (243712 bytes) into /dev/mtd0:34209792
Copied 243712 bytes from /qspi/internal/mem_coldboot_sigheader.bct.encrypt to address 0x020a0000 in flash
[ 191]: l4t_flash_from_kernel: Warning: skip writing B_tsec-fw partition as no image is specified
Writing nvdec_t234_prod_sigheader.fw.encrypt (parittion: B_nvdec) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/nvdec_t234_prod_sigheader.fw.encrypt
Writing /qspi/internal/nvdec_t234_prod_sigheader.fw.encrypt (294912 bytes) into /dev/mtd0:35520512
Copied 294912 bytes from /qspi/internal/nvdec_t234_prod_sigheader.fw.encrypt to address 0x021e0000 in flash
Writing mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt (parittion: B_mb2) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt
Writing /qspi/internal/mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt (437008 bytes) into /dev/mtd0:36569088
Copied 437008 bytes from /qspi/internal/mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt to address 0x022e0000 in flash
Writing xusb_t234_prod_sigheader.bin.encrypt (parittion: B_xusb-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/xusb_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/xusb_t234_prod_sigheader.bin.encrypt (164864 bytes) into /dev/mtd0:37093376
Copied 164864 bytes from /qspi/internal/xusb_t234_prod_sigheader.bin.encrypt to address 0x02360000 in flash
Writing bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt (parittion: B_bpmp-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt
Writing /qspi/internal/bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt (1027008 bytes) into /dev/mtd0:37355520
Copied 1027008 bytes from /qspi/internal/bpmp_t234-TE950M-A1_prod_sigheader.bin.encrypt to address 0x023a0000 in flash
Writing tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt (parittion: B_bpmp-fw-dtb) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt
Writing /qspi/internal/tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt (199936 bytes) into /dev/mtd0:38928384
Copied 199936 bytes from /qspi/internal/tegra234-bpmp-3767-0003-3509-a02_with_odm_sigheader.dtb.encrypt to address 0x02520000 in flash
Writing pscfw_t234_prod_sigheader.bin.encrypt (parittion: B_psc-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/pscfw_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/pscfw_t234_prod_sigheader.bin.encrypt (375168 bytes) into /dev/mtd0:43122688
Copied 375168 bytes from /qspi/internal/pscfw_t234_prod_sigheader.bin.encrypt to address 0x02920000 in flash
Writing mce_flash_o10_cr_prod_sigheader.bin.encrypt (parittion: B_mts-mce) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mce_flash_o10_cr_prod_sigheader.bin.encrypt
Writing /qspi/internal/mce_flash_o10_cr_prod_sigheader.bin.encrypt (190592 bytes) into /dev/mtd0:43909120
Copied 190592 bytes from /qspi/internal/mce_flash_o10_cr_prod_sigheader.bin.encrypt to address 0x029e0000 in flash
Writing sc7_t234_prod_sigheader.bin.encrypt (parittion: B_sc7) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/sc7_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/sc7_t234_prod_sigheader.bin.encrypt (185408 bytes) into /dev/mtd0:44433408
Copied 185408 bytes from /qspi/internal/sc7_t234_prod_sigheader.bin.encrypt to address 0x02a60000 in flash
Writing psc_rf_t234_prod_sigheader.bin.encrypt (parittion: B_pscrf) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/psc_rf_t234_prod_sigheader.bin.encrypt
Writing /qspi/internal/psc_rf_t234_prod_sigheader.bin.encrypt (122464 bytes) into /dev/mtd0:44630016
Copied 122464 bytes from /qspi/internal/psc_rf_t234_prod_sigheader.bin.encrypt to address 0x02a90000 in flash
Writing mb2rf_t234_sigheader.bin.encrypt (parittion: B_mb2rf) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb2rf_t234_sigheader.bin.encrypt
Writing /qspi/internal/mb2rf_t234_sigheader.bin.encrypt (122816 bytes) into /dev/mtd0:44826624
Copied 122816 bytes from /qspi/internal/mb2rf_t234_sigheader.bin.encrypt to address 0x02ac0000 in flash
Writing uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt (parittion: B_cpu-bootloader) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt
Writing /qspi/internal/uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt (2912672 bytes) into /dev/mtd0:44957696
Copied 2912672 bytes from /qspi/internal/uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader.bin.encrypt to address 0x02ae0000 in flash
Writing tos-optee_t234_sigheader.img.encrypt (parittion: B_secure-os) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tos-optee_t234_sigheader.img.encrypt
Writing /qspi/internal/tos-optee_t234_sigheader.img.encrypt (1288096 bytes) into /dev/mtd0:48627712
Copied 1288096 bytes from /qspi/internal/tos-optee_t234_sigheader.img.encrypt to address 0x02e60000 in flash
[ 204]: l4t_flash_from_kernel: Warning: skip writing B_smm-fw partition as no image is specified
Writing eks_t234_sigheader.img.encrypt (parittion: B_eks) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/eks_t234_sigheader.img.encrypt
Writing /qspi/internal/eks_t234_sigheader.img.encrypt (9232 bytes) into /dev/mtd0:54919168
Copied 9232 bytes from /qspi/internal/eks_t234_sigheader.img.encrypt to address 0x03460000 in flash
Writing display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt (parittion: B_dce-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt
Writing /qspi/internal/display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt (738336 bytes) into /dev/mtd0:55181312
Copied 738336 bytes from /qspi/internal/display-t234-dce_with_tegra234-p3767-0003-p3509-a02_with_odm_overlay_aligned_blob_w_bin_sigheader.bin.encrypt to address 0x034a0000 in flash
Writing spe_t234_sigheader.bin.encrypt (parittion: B_spe-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/spe_t234_sigheader.bin.encrypt
Writing /qspi/internal/spe_t234_sigheader.bin.encrypt (270336 bytes) into /dev/mtd0:60424192
Copied 270336 bytes from /qspi/internal/spe_t234_sigheader.bin.encrypt to address 0x039a0000 in flash
Writing camera-rtcpu-t234-rce_sigheader.img.encrypt (parittion: B_rce-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt
Writing /qspi/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt (540000 bytes) into /dev/mtd0:61014016
Copied 540000 bytes from /qspi/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt to address 0x03a30000 in flash
Writing adsp-fw_sigheader.bin.encrypt (parittion: B_adsp-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/adsp-fw_sigheader.bin.encrypt
Writing /qspi/internal/adsp-fw_sigheader.bin.encrypt (400960 bytes) into /dev/mtd0:62062592
Copied 400960 bytes from /qspi/internal/adsp-fw_sigheader.bin.encrypt to address 0x03b30000 in flash
[ 208]: l4t_flash_from_kernel: Warning: skip writing B_reserved_on_boot partition as no image is specified
[ 208]: l4t_flash_from_kernel: Warning: skip writing uefi_variables partition as no image is specified
[ 208]: l4t_flash_from_kernel: Warning: skip writing uefi_ftw partition as no image is specified
[ 208]: l4t_flash_from_kernel: Warning: skip writing worm partition as no image is specified
Writing bct_backup.img (parittion: BCT-boot-chain_backup) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/bct_backup.img
Writing /qspi/internal/bct_backup.img (32768 bytes) into /dev/mtd0:66715648
Copied 32768 bytes from /qspi/internal/bct_backup.img to address 0x03fa0000 in flash
[ 208]: l4t_flash_from_kernel: Warning: skip writing reserved_partition partition as no image is specified
Writing gpt_backup_secondary_3_0.bin (parittion: secondary_gpt_backup) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/gpt_backup_secondary_3_0.bin
Writing /qspi/internal/gpt_backup_secondary_3_0.bin (16896 bytes) into /dev/mtd0:66846720
Copied 16896 bytes from /qspi/internal/gpt_backup_secondary_3_0.bin to address 0x03fc0000 in flash
Writing qspi_bootblob_ver.txt (parittion: B_VER) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/qspi_bootblob_ver.txt
Writing /qspi/internal/qspi_bootblob_ver.txt (101 bytes) into /dev/mtd0:66912256
Copied 101 bytes from /qspi/internal/qspi_bootblob_ver.txt to address 0x03fd0000 in flash
Writing qspi_bootblob_ver.txt (parittion: A_VER) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/qspi_bootblob_ver.txt
Writing /qspi/internal/qspi_bootblob_ver.txt (101 bytes) into /dev/mtd0:66977792
Copied 101 bytes from /qspi/internal/qspi_bootblob_ver.txt to address 0x03fe0000 in flash
Writing gpt_secondary_3_0.bin (parittion: secondary_gpt) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/gpt_secondary_3_0.bin
Writing /qspi/internal/gpt_secondary_3_0.bin (16896 bytes) into /dev/mtd0:67091968
Copied 16896 bytes from /qspi/internal/gpt_secondary_3_0.bin to address 0x03ffbe00 in flash
[ 209]: l4t_flash_from_kernel: Successfully flash the qspi
[ 209]: l4t_flash_from_kernel: Flashing success
Error flashing non-qspi storage
Cleaning up...
host log.txt (29.8 KB)
Thanks!
Orin Nano devkit may not be able to get flashed by using p3509-a02+p3767-0000.
Use your own board to do flash and also share UART log
Thanks!
Could you help me check if the command is correct? As error log shows, I think the command might be wrong.
The command should be
> sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
-c tools/kernel_flash/flash_l4t_t234_nvme.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" \
--showlogs --network usb0 jetson-orin-nano-devkit internal
Let me reiterate, I want to enable hdmi on custom board. Is it correct to use “jetson-orin-nano-devkit” instead of “p3509-a02+p3767-0000”?
Use p3509-a02+p3767-0000, but last parameter is internal.
Thansk!Let me try it then post the results.
By the way. I have a question about the last parameter “internal”.
In README_initrd_flash.txt it says:
- <root-dev> can be set to "mmcblk0p1" or "internal" for booting from internal
device or "external", "sda1" or "nvme0n1p1" for booting from external device.
If your external device's external partition layout has "APP" partition,
specifying here "nvme0n1p1" will generate the rootfs boot commandline:
root=/dev/nvme0n1p1. If <rootdev> is internal or external, the tool will
generate rootfs commandline: root=PARTUUID=...
and
Initrd flash depends on --external-device options and the last parameter <rootdev>
to generate the correct images. The following combinations are supported:
+-------------------+-----------------+-------------------------------------------------------+
| --external-device | <rootdev> | Results |
+-------------------+-----------------+-------------------------------------------------------+
| nvme*n*p* / sda* | internal | External device contains full root filesystem with |
| | | kernel commandline: rootfs=PARTUUID=<external-uuid> |
| | | |
| | | Internal device contains full root filesystem with |
| | | kernel commandline: rootfs=PARTUUID=<internal-uuid> |
+-------------------+-----------------+-------------------------------------------------------+
| nvme*n*p* / sda* | nvme0n*p* / sd* | External device contains full root filesystem with |
| | | with kernel commandline rootfs=/dev/nvme0n1p1 |
| | | |
| | | Internal device contains minimal filesystem with |
| | | kernel command line rootfs=/dev/nvme0n1p1 |
+-------------------+-----------------+-------------------------------------------------------+
SO my question is Orin nano qspi-nor only has 64MB space, use “internal” as last parameter means qspi-nor “contains full root filesystem”?
still not successful.
Dev log:
[0010.027] I> MB1 (version: 1.4.0.1-t234-54845784-08e631ca)
[0010.032] I> t234-A01-0-Silicon (0x12347) Prod
[0010.036] I> Boot-mode : BPMP Diagnostic
[0010.040] I> Entry timestamp: 0x00000000
[0010.044] I> last_boot_error: 0x0
[0010.047] I> BR-BCT: preprod_dev_sign: 0
[0010.051] I> rst_source: 0x0, rst_level: 0x0
[0010.055] I> Task: Initialize MB2 params
[0010.059] I> MB2-params @ 0x40060000
[0010.063] I> Task: Crypto init
[0010.066] I> Task: Perform MB1 KAT tests
[0010.070] I> Task: NVRNG health check
[0010.073] I> NVRNG: Health check success
[0010.077] I> Task: Secure debug controls
[0010.081] I> Task: strap war set
[0010.084] I> Task: Program NV master stream id
[0010.088] I> Task: Verify boot mode
[0010.094] I> Task: Alias fuses
[0010.097] W> FUSE_ALIAS: Fuse alias on production fused part is not supported.
[0010.104] I> Task: Print SKU type
[0010.107] I> FUSE_OPT_CCPLEX_CLUSTER_DISABLE = 0x000001c8
[0010.112] I> FUSE_OPT_GPC_DISABLE = 0x00000002
[0010.117] I> FUSE_OPT_TPC_DISABLE = 0x000000f0
[0010.121] I> FUSE_OPT_DLA_DISABLE = 0x00000003
[0010.125] I> FUSE_OPT_PVA_DISABLE = 0x00000001
[0010.129] I> FUSE_OPT_NVENC_DISABLE = 0x00000001
[0010.134] I> FUSE_OPT_NVDEC_DISABLE = 0x00000000
[0010.138] I> FUSE_OPT_FSI_DISABLE = 0x00000001
[0010.143] I> FUSE_OPT_EMC_DISABLE = 0x0000000c
[0010.147] I> FUSE_BOOTROM_PATCH_VERSION = 0x7
[0010.151] I> FUSE_PSCROM_PATCH_VERSION = 0x7
[0010.155] I> FUSE_OPT_ADC_CAL_FUSE_REV = 0x2
[0010.159] I> FUSE_SKU_INFO_0 = 0xd5
[0010.163] I> FUSE_OPT_SAMPLE_TYPE_0 = 0x3 PS
[0010.167] I> FUSE_PACKAGE_INFO_0 = 0x2
[0010.170] I> SKU: Prod
[0010.173] I> Task: Boost clocks
[0010.176] I> Initializing PLLC2 for AXI_CBB.
[0010.180] I> AXI_CBB : src = 35, divisor = 0
[0010.184] I> Task: Voltage monitor
[0010.187] I> VMON: Vmon re-calibration and fine tuning done
[0010.193] I> Task: UPHY init
[0010.196] W> UPHY: UPHY lane info table is empty in MB1 BCT.
[0010.202] I> Task: Boot device init
[0010.205] I> Boot_device: RCM
[0010.208] I> USB configuration success
[0010.212] I> Task: TSC init
[0010.215] I> Task: Enable WDT 5th expiry
[0010.218] I> Task: I2C register
[0010.221] I> Task: Set I2C bus freq
[0010.225] I> Task: Reset FSI
[0010.228] I> Task: Enable clock-mon
[0010.232] I> FMON: Fmon re-programming done
[0010.236] I> Task: Mapper init
[0010.238] I> Task: MB1 fixed firewalls
[0010.245] W> Firewall readback mismatch
[0010.250] I> Task: Load MB2/Applet/FSKP
[0010.254] I> Loading MB2 Applet
[0010.257] I> Slot: 0
[0010.259] I> Binary[21] block-352321536 (partition size: 0x50000)
[0010.265] I> Binary name: MB2-Applet
[0010.268] I> Size of crypto header is 8192
[0010.272] I> Size of crypto header is 8192
[0010.276] I> BCH of MB2-Applet read from storage
[0010.281] I> BCH address is : 0x4004e000
[0010.285] I> MB2-Applet header integrity check is success
[0010.290] I> Binary magic in BCH component 0 is MB2A
[0010.295] I> component binary type is 21
[0010.298] I> Size of crypto header is 8192
[0010.310] I> MB2-Applet binary is read from storage
[0010.316] I> MB2-Applet binary integrity check is success
[0010.321] I> Binary MB2-Applet loaded successfully at 0x40000000 (0x41b40)
[0010.328] I> Task: Prepare MB2 params
[0010.331] I> Task: Misc NV security settings
[0010.336] I> NVDEC sticky bits programming done
[0010.340] I> Successfully powergated NVDEC
[0010.344] I> Task: Disable/Reload WDT
[0010.348] I> Task: Program misc carveouts
[0010.351] I> Task: Disable SCPM/POD reset
[0010.355] I> SLCG Global override status := 0x0
[0010.360] I> MB1: MSS reconfig completed
[0010.364] W> Firewall readback mismatch
[0010.367] W> Firewall readback mismatch
[0010.371] W> Firewall readback mismatch
[0010.375] W> Firewall readback mismatch
[0010.378] W> Firewall readback mismatch
[0010.382] W> Firewall readback mismatch
[0010.386] W> Firewall readback mismatch
[0010.389] W> Firewall readback mismatch
[0010.393] W> Firewall readback mismatch
[0010.397] W> Firewall readback mismatch
I> Applet (version: 0.0.0.0-t234-54845784-d30edb11)
I> t234-A01-0-Silicon (0x12347)
I> Emulation:
I> Entry timestamp: 0xffffffff
I> Task: Pinmux init (0x4000062d)
I> Task: Boot device init (0x40001321)
I> Applet do storage init
I> Boot_device: QSPI_FLASH instance: 0
I> Qspi clock source : clk_m
I> QSPI-0l initialized successfully
E> Error in command_complete 18001 int_status
E> OCR failed, error = 39390706
E> Failed to open sdmmc-3, err = 39390706
W> Ignoring init failure for device 0-3
E> Error in command_complete 18000 int_status
E> OCR failed, error = 39390706
E> Failed to open sdmmc-3, err = 39390706
W> Ignoring init failure for device 1-3
E> Unknown device 7
E> Unknown device 8
I> Task: Partition Manager Init (0x40002d61)
I> Found 57 partitions in QSPI_FLASH (instance 0)
I> Task: I2C register (0x400006a5)
I> Task: Register exit handlers (0x400005f5)
I> Task: Enter 3p server (0x40001925)
I> USB configuration success
I> Populate chip info
I> RAM_CODE 0x4000021
I> Populate eeprom info
I> Populate eeprom info for module cvm
I> dump bct
I> Rebooting : reboot-recovery
Host log:
************************************
* *
* Step 1: Generate flash packages *
* *
************************************
Create folder to store images to flash
Generate image for internal storage devices
Generate images to be flashed
ADDITIONAL_DTB_OVERLAY="" /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/flash.sh - -no-flash --sign -c bootloader/generic/cfg/flash_t234_qspi.xml p3509-a02+p3767-0000 internal
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 5.0
# User release: 0.0
###############################################################################
ECID is 0x80012344705DD40F3400000014FF0180
copying emc_fuse_dev_params(/home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/bootloade r/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/bootloader/t186 ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/bootloader/t186re f/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra /bootloader/mb1_t234_prod.bin" --skipuid --cfg readinfo_t234_min_prod.xml --dev_params tegra234-br-bct-diag-boot.dts --device_confi g tegra234-mb1-bct-device-p3767-0000.dts --misc_config tegra234-mb1-bct-misc-p3767-0000.dts --bins "mb2_applet applet_t234.bin" --c md "dump eeprom cvm cvm.bin; dump custinfo custinfo_out.bin; reboot recovery"
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
[ 0.0213 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.0222 ] File rcm_state open failed
[ 0.0222 ] ERROR: failed to read rcm_state
[ 0.0222 ]
[ 0.0237 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0240 ] Assuming zero filled SBK key
[ 0.0226 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[ 0.0286 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[ 0.0375 ] Parsing partition layout
[ 0.0384 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0399 ] Kernel DTB used: None
[ 0.0399 ] WARNING: dce base dtb is not provided
[ 0.0399 ] Parsing partition layout
[ 0.0407 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0418 ] Creating list of images to be signed
[ 0.0426 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[ 0.0434 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0443 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0446 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0492 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0495 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0540 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0542 ] adding BCH for mb2_t234_aligned.bin
[ 0.0567 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0683 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0685 ] adding BCH for mb2_t234_aligned.bin
[ 0.0826 ] Filling MB1 storage info
[ 0.0826 ] Parsing dev params for multi chains
[ 0.0887 ] Generating br-bct
[ 0.0896 ] Updating dev and MSS params in BR BCT
[ 0.0896 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.0906 ] Updating bl info
[ 0.0915 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[ 0.0923 ] WARNING: boot chain is not completed. set to 0
[ 0.0932 ] Generating signatures
[ 0.0948 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.0950 ] Assuming zero filled SBK key
[ 0.1066 ] Warning: pub_key.key is not found
[ 0.1053 ] Parsing dev params for multi chains
[ 0.1053 ] Generating br-bct
[ 0.1062 ] Updating dev and MSS params in BR BCT
[ 0.1063 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.1073 ] Updating bl info
[ 0.1082 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_ signed.xml
[ 0.1089 ] WARNING: boot chain is not completed. set to 0
[ 0.1098 ] Get Signed section of bct
[ 0.1107 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[ 0.1118 ] Signing BCT
[ 0.1133 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1135 ] Assuming zero filled SBK key
[ 0.1163 ] Sha saved in br_bct_BR.sha
[ 0.1166 ] Warning: pub_key.key is not found
[ 0.1151 ] Updating BCT with signature
[ 0.1159 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[ 0.1167 ] Offset :4608 Len :3584
[ 0.1171 ] Generating SHA2 Hash
[ 0.1187 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[ 0.1189 ] Assuming zero filled SBK key
[ 0.1189 ] Assuming zero filled SBK key
[ 0.1215 ] Sha saved in br_bct_BR.sha
[ 0.1204 ] Updating BCT with SHA2 Hash
[ 0.1211 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[ 0.1219 ] Offset :4608 Len :3584
[ 0.1222 ] Offset :68 Len :8124
[ 0.1224 ] Generating coldboot mb1-bct
[ 0.1233 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3767-0000_cpp.dtb --device tegr a234-mb1-bct-device-p3767-0000_cpp.dtb
[ 0.1240 ] MB1-BCT version: 0.12
[ 0.1241 ] ERROR: /misc/enable_dram_page_blacklisting is not supported
[ 0.1243 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1245 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1247 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1249 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.1250 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.1252 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.1255 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.1256 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.1257 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.1257 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.1257 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.1257 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.1257 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.1257 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.1257 ]
[ 0.1257 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[ 0.1257 ] Added Platform Config 9 data with size :- 100
[ 0.1257 ]
[ 0.1258 ] Updating mb1-bct with firmware information
[ 0.1266 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.1286 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[ 0.1294 ] Generating SHA2 Hash for mb1bct
[ 0.1322 ] Sha saved in mb1_cold_boot_bct_MB1_aligned.sha
[ 0.1334 ] Sha saved in mb1_cold_boot_bct_MB1.sha
[ 0.1328 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[ 0.1336 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[ 0.1359 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1361 ] Assuming zero filled SBK key
[ 0.1377 ] Warning: pub_key.key is not found
[ 0.1372 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_cold_boot_bct_MB1_aligned_sigheader.bct.encrypt mb1_cold_boot_bct_MB1 _aligned_sigheader.bct.hash zerosbk
[ 0.1386 ] Generating recovery mb1-bct
[ 0.1394 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3767-0000_cpp.dtb --device tegra234-mb1-b ct-device-p3767-0000_cpp.dtb
[ 0.1402 ] MB1-BCT version: 0.12
[ 0.1404 ] ERROR: /misc/enable_dram_page_blacklisting is not supported
[ 0.1407 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1410 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1420 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.1420 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.1420 ]
[ 0.1420 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[ 0.1420 ] Added Platform Config 9 data with size :- 100
[ 0.1420 ]
[ 0.1420 ] Updating mb1-bct with firmware information
[ 0.1429 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.1449 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[ 0.1457 ] Generating SHA2 Hash for mb1bct
[ 0.1485 ] Sha saved in mb1_bct_MB1_aligned.sha
[ 0.1498 ] Sha saved in mb1_bct_MB1.sha
[ 0.1493 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[ 0.1501 ] adding BCH for mb1_bct_MB1_aligned.bct
[ 0.1524 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1525 ] Assuming zero filled SBK key
[ 0.1542 ] Warning: pub_key.key is not found
[ 0.1537 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.b ct.hash zerosbk
[ 0.1551 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.1551 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.1551 ] Copying signatures
[ 0.1560 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.1609 ] Boot Rom communication
[ 0.1618 ] tegrarcm_v2 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sig header.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct. encrypt
[ 0.1627 ] BR_CID: 0x80012344705DD40F3400000014FF0180
[ 0.1910 ] Sending bct_br
[ 0.2348 ] Sending mb1
[ 0.2360 ] Sending psc_bl1
[ 0.2467 ] Sending bct_mb1
[ 0.2526 ] Boot Rom communication completed
[ 0.2577 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[ 0.2650 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[ 0.2684 ] adding BCH for applet_t234_aligned.bin
[ 0.3027 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3031 ] Assuming zero filled SBK key
[ 0.3071 ] Warning: pub_key.key is not found
[ 0.3073 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.b in.hash zerosbk
[ 0.3099 ] Sending mb2_applet...
[ 0.3112 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[ 0.3124 ] BL: version 1.4.0.1-t234-54845784-08e631ca last_boot_error: 0
[ 0.4583 ] Sending applet
[ 0.5565 ] completed
[ 0.5603 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.5637 ] MB2 Applet version 01.00.0000
[ 0.7488 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.7495 ] MB2 Applet version 01.00.0000
[ 0.7810 ] Retrieving board information
[ 0.7845 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[ 0.7879 ] MB2 Applet version 01.00.0000
[ 0.8173 ] Saved platform info in chip_info.bin
[ 0.8227 ] Chip minor revision: 1
[ 0.8230 ] Bootrom revision: 0x7
[ 0.8233 ] Ram code: 0x2
[ 0.8234 ] Chip sku: 0xd5
[ 0.8236 ] Chip Sample: prod
[ 0.8258 ] Retrieving EEPROM data
[ 0.8260 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TAR GETS/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[ 0.8292 ] MB2 Applet version 01.00.0000
[ 0.8572 ] Saved platform info in /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/b ootloader/cvm.bin
[ 0.8949 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.8983 ] MB2 Applet version 01.00.0000
[ 0.9329 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.9361 ] MB2 Applet version 01.00.0000
[ 0.9813 ] Dumping customer Info
[ 0.9849 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[ 0.9881 ] MB2 Applet version 01.00.0000
[ 1.0333 ] Saved bct in tmp.bct
[ 1.0443 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_ NANO_TARGETS/Linux_for_Tegra/bootloader/custinfo_out.bin
[ 1.0475 ] Cu[ 1.0485 ] stomer data saved in /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linu x_for_Tegra/bootloader/custinfo_out.bin successfully
[ 1.0487 ] Rebooting to recovery mode
[ 1.0523 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[ 1.0888 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 1.0920 ] MB2 Applet version 01.00.0000
[ 1.1373 ] Booting to recovery mode
[ 1.1409 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[ 1.1441 ] MB2 Applet version 01.00.0000
Board ID(3767) version(300) sku(0003) revision(P.1)
Chip SKU(00:00:00:D5) ramcode(00:00:00:02) fuselevel(fuselevel_production) board_FAB(300)
emc_opt_disable_fuse:(0)
Error: missing cfgfile ().
Usage: sudo ./flash.sh [options] t186ref internal
options:
-c <cfgfile> ---------- Flash partition table config file.
-d <dtbfile> ---------- device tree file.
-f <flashapp> --------- Path to flash application (tegraflash.py)
-h -------------------- print this message.
-i <enc rfs key file>-- key for disk encryption support.
-k <partition id> ----- partition name or number specified in flash.cfg.
-m <mts preboot> ------ MTS preboot such as mts_preboot_si.
-n <nfs args> --------- Static nfs network assignments
<Client IP>:<Server IP>:<Gateway IP>:<Netmask>
-o <odmdata> ---------- ODM data.
-r -------------------- skip building and reuse existing system.img.
-t <tegraboot> -------- tegraboot binary such as nvtboot.bin
-u <PKC key file>------ PKC key used for odm fused board.
-v <SBK key file>------ Secure Boot Key (SBK) key used for ODM fused board.
-w <wb0boot> ---------- warm boot binary such as nvtbootwb0.bin
-x <tegraid> ---------- Tegra CHIPID.
-B <boardid> ---------- BoardId.
-C <cmdline> ---------- Kernel commandline arguments.
WARNING:
Each option in this kernel commandline gets
higher preference over the values set by
flash.sh. In case of NFS booting, this script
adds NFS booting related arguments, if -i option
is omitted.
-F <flasher> ---------- Flash server such as cboot.bin.
-G <file name> -------- Read partition and save image to file.
-I <initrd> ----------- initrd file. Null initrd is default.
-K <kernel> ----------- Kernel image file such as zImage or Image.
-L <bootloader> ------- Bootloader such as cboot.bin or u-boot-dtb.bin.
-M <mts boot> --------- MTS boot file such as mts_si.
-N <nfsroot> ---------- i.e. <my IP addr>:/my/exported/nfs/rootfs.
-R <rootfs dir> ------- Sample rootfs directory.
-S <size> ------------- Rootfs size in bytes. Valid only for internal
rootdev. KiB, MiB, GiB short hands are allowed,
for example, 1GiB means 1024 * 1024 * 1024 bytes.
-T <ext num sectors> ---The number of the sectors of the external storage device.
The default value is 122159104 if this option is not set.
-Z -------------------- Print configurations and then exit.
--no-flash ------------ perform all steps except physically flashing the board.
This will create a system.img.
--external-device------ Generate flash images for external devices
--sparseupdate--------- only flash partitions that have changed. Currently only support SPI flash memory
--no-systemimg -------- Do not create or re-create system.img.
--bup ----------------- Generate bootloader update payload(BUP).
--single-image-bup <part name> Generate specified single image BUP, this must work with --bup.
--bup-type <type> ----- Generate specific type bootloader update payload(BUP), such as bl or kernel.
--multi-spec----------- Enable support for building multi-spec BUP.
--clean-up------------- Clean up BUP buffer when multi-spec is enabled.
--usb-instance <id> --- Specify the USB instance to connect to;
<id> = USB port path (e.g. 3-14).
--no-root-check ------- Typical usage of this script require root permissions.
Pass this option to allow running the script as a
regular user, in which case only specific combinations
of command-line options will be functional.
--uefi-keys <keys_conf> Specify UEFI keys configuration file.
--rcm-boot ------------ Do RCM boot instead of physically flashing the board.
--sign ---------------- Sign images and store them under "bootloader/signed"
directory. The board will not be physically flashed.
--image --------------- Specify the image to be written into board.
--boot-chain-flash <c> Flash only a specific boot chain (ex. "A, "B", "all").
Defaults to "all", inputs are case insensitive.
Not suitable for production.
--boot-chain-select <c> Specify booting chain (ex. "A" or "B") after the board is flashed.
Defaults to "A", inputs are case insensitive.
--pv-crt -------------- The certificate for the key that is used to sign cpu_bootloader
--with-systemimg ------ Generate system images also when using -k option
--pv-enc <enc_key>----- The encryption key that is used to encrypt cpu_bootloader.
--uefi-enc <uefi_enc_key> Key file (0x19: 16-byte; 0x23: 32-byte) to encrypt UEFI payloads
--uda-dir-------------- Directory to store user data that will be encrypted in UDA partition.
--separate-rcmboot-binary ------ Enable use of different binaries for rcmboot and coldboot.
--generic-passphrase -- Use generic passphrase for disk encryption.
--disable-random-iv --- Disable generation of random IV, SALT1, SALT2 and DERSTR.
--read-info ----------- Read and display board related info, fuse info (based on fuse_t234.xml),
and EEPROM content.
--reuse-uuid --------- Reuse uuid which is already generated first time.
Error: /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/bootloader/signed/flash.idx is not found
Error: failed to relocate images to /home/harpsdev/nvidia/nvidia_sdk/JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/t ools/kernel_flash/images
Cleaning up...
Looks like some files in your BSP is missing. Better checking your steps .
I cleaned up the directory JetPack_5.1.3_Linux_JETSON_ORIN_NANO_TARGETS, then reinit it use sdk manager. Still not successful.
This time it stopped at step 3.
host_log.txt (226.0 KB)
dev_log.txt (101.3 KB)
[ 95.207785] NFS: state manager: check lease failed on NFSv4 server fc00:1:1:0::1 with error 13
Are you sure your host PC even able to flash un-modified BSP on NV devkit?
Yes. I can flash orin nano on dev kit.
Could you get a Xavier NX devkit and use this board config to flash it with Orin Nano module first?
Just want to test if your host really can flash this.
[ 95.207785] NFS: state manager: check lease failed on NFSv4 server fc00:1:1:0::1 with error 13
This log is printed by the device after the host fails to flash.
- Unfortunately, I don’t have a Xavier NX devkit…
Sorry, I look into the wrong log.
The problem here is actually related to pcie detection that it cannot detect your nvme on the custom board.
Connection timeout: device /dev/nvme0n1 is still not ready.
But I can flash it normally using SDK Manager.
It means your nvme is on some pcie controllers that only enabled on Orin Nano devkit but not enable on Xavier NX devkit…
Sdkmanager does not use xavier nx devkit configuration to flash the board.
I see. Thank you. It seems that the only option is to try to change the device tree.
I modified two places in p3768-0000+p3767-0000.conf:
-PINMUX_CONFIG="tegra234-mb1-bct-pinmux-p3767-dp-a03.dtsi";
-PMC_CONFIG="tegra234-mb1-bct-padvoltage-p3767-dp-a03.dtsi";
+PINMUX_CONFIG="tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi";
+PMC_CONFIG="tegra234-mb1-bct-padvoltage-p3767-hdmi-a03.dtsi";
Then flash with command:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t234_nvme.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs --erase-all --network usb0 p3768-0000+p3767-0000 internal
Host log show sucess:
writing item=17, 9:0:secondary_gpt, 62545444352, 16896, gpt_secondary_9_0.bin, 16896, fixed-<reserved>-0, c78a0b39965dfd5caacdeed434e1a78b09480545
[ 306]: l4t_flash_from_kernel: Successfully flash the external device
[ 306]: l4t_flash_from_kernel: Flashing success
[ 306]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
Flash is successful
Reboot device
Cleaning up...
Log is saved to Linux_for_Tegra/initrdlog/flash_1-1_0_20240617-173529.log
but dev log shows:
I> PCIE unpowergating successful
I> tegrabl_pcie_soc_init: (4):
I> APPL initialization ...
C> Failed to link up controller-4
E> PCIe (4) Link is not UP
W> Failed tegrabl_pcie_soc_init(), error=0x12
I> Failed to initialize SoC Host PCIe controller
E> tegrabl_nvme_init: Failed tegrabl_pcie_init(4); error=0x12
W> tegrabl_nvme_bdev_open: Failed NVME INIT; error=0x79790712
W> Failed to open NVME-4, err = 79790712
E> Failed to initialize device 12-4
C> Storage init failed
C> Task 0x0 failed (err: 0x79790712)
!0x200 Exception! [elr:0x5001cf7c, spsr:0xa00002cd, esr:0x96000007, far:0x0]
Hope you can give some advice.
dev_log.txt (21.3 KB)
host_log.txt (40.9 KB)