Xavier NX flash boot directly from nvme, and emmc does not have a flash system

First step: Put the device into recovery mode, then generate qspi only images
for the internal device:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --no-flash jetson-xavier-nx-devkit-qspi internal

Note: The board name given here is not jetson-xavier-nx-devkit or
jetson-xavier-nx-devkit-emmc so that no SD card or eMMC images are generated.

Second step: Put the device into recovery mode, then generate a normal
filesystem for the external device:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --external-device nvme0n1p1 -S 118GiB -c ./tools/kernel_flash/flash_l4t_nvme.xml --external-only --append jetson-xavier-nx-devkit-emmc nvme0n1p1

Third step: Put the device into recovery mode, then flash both images:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only

====================================================
The above is the flash command I used for Xavier NX adapted with 128GB nvme SSD. The same operation command can be directly painted to SSD on package 32.6.1 to successfully boot from nvme and emmc without burning the system. But on the 35.3.1 package these operations are not possible, if on 35.3.1 I want to implement only nvme SSD burn system and can boot directly from nvme but emmc does not burn system what should I do? Thanks for your reply!

Hi,

what did you mean with not possible?
The method is still documented as Workflow 11 in README_initrd_flash.txt on r35.
Or did you get any error while flashing with the above method?

After I perform the preceding operations, the following logs are generated.
flash_1-1_0_20230727-170415.log (34.8 KB)
According to the log, there seems to be no error, but I connected the monitor on the development board and found that the monitor was always in a black screen state, and the system configuration interface was not displayed.

log:

**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
~/NX/JP5.1/Linux_for_Tegra/bootloader ~/NX/JP5.1/Linux_for_Tegra
~/NX/JP5.1/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
~/NX/JP5.1/Linux_for_Tegra/temp_initrdflash/bootloader0 ~/NX/JP5.1/Linux_for_Tegra
./tegraflash.py --bl nvtboot_recovery_cpu_t194_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra194-p3668-0001-p3509-0000.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x19 --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 --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "mb2_bootloader nvtboot_recovery_t194_sigheader.bin.encrypt; mts_preboot preboot_c10_prod_cr_sigheader.bin.encrypt; mts_mce mce_c10_prod_cr_sigheader.bin.encrypt; mts_proper mts_c10_prod_cr_sigheader.bin.encrypt; bpmp_fw bpmp-2_t194_sigheader.bin.encrypt; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00_lz4_sigheader.dtb.encrypt; spe_fw spe_t194_sigheader.bin.encrypt; tos tos-optee_t194_sigheader.img.encrypt; eks eks_t194_sigheader.img.encrypt; kernel boot0.img; kernel_dtb kernel_tegra194-p3668-0001-p3509-0000.dtb; bootloader_dtb tegra194-p3668-0001-p3509-0000_sigheader.dtb.encrypt"    --secondary_gpt_backup  --bct_backup  --boot_chain A  --instance 1-1
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.0000 ] rcm boot with presigned binaries
[   0.0000 ] Boot Rom communication
[   0.0034 ] tegrarcm_v2 --instance 1-1 --chip 0x19 0 --rcm rcm_1_encrypt.rcm --rcm rcm_2_encrypt.rcm
[   0.0052 ] BR_CID: 0x880219116428a00118000000060182c0
[   0.0300 ] Boot Rom communication completed
[   2.0676 ] tegrarcm_v2 --instance 1-1 --isapplet
[   2.0700 ] Applet version 01.00.0000
[   2.1114 ] Sending BCTs
[   2.1154 ] tegrarcm_v2 --instance 1-1 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
[   2.1178 ] Applet version 01.00.0000
[   2.1592 ] Sending bct_bootrom
[   2.1594 ] [................................................] 100%
[   2.1614 ] Sending bct_mb1
[   2.1667 ] [................................................] 100%
[   2.1712 ] Sending bct_mem
[   2.2200 ] [................................................] 100%
[   2.2572 ] Generating blob
[   2.6643 ] Disable RCE in rcm kernel-dtb.
[   2.7244 ] tegrahost_v2 --chip 0x19 --generateblob blob.xml blob.bin
[   2.7263 ] number of images in blob are 13
[   2.7268 ] blobsize is 63453170
[   2.7268 ] Added binary blob_nvtboot_recovery_cpu_t194_sigheader.bin.encrypt of size 233040
[   2.7747 ] Added binary blob_nvtboot_recovery_t194_sigheader.bin.encrypt of size 206016
[   2.7754 ] Added binary blob_preboot_c10_prod_cr_sigheader.bin.encrypt of size 24016
[   2.7760 ] Added binary blob_mce_c10_prod_cr_sigheader.bin.encrypt of size 145184
[   2.7766 ] Added binary blob_mts_c10_prod_cr_sigheader.bin.encrypt of size 3430416
[   2.7779 ] Added binary blob_bpmp-2_t194_sigheader.bin.encrypt of size 1007392
[   2.7794 ] Added binary blob_tegra194-a02-bpmp-p3668-a00_lz4_sigheader.dtb.encrypt of size 36176
[   2.7801 ] Added binary blob_spe_t194_sigheader.bin.encrypt of size 95232
[   2.7807 ] Added binary blob_tos-optee_t194_sigheader.img.encrypt of size 914992
[   2.7813 ] Added binary blob_eks_t194_sigheader.img.encrypt of size 5136
[   2.7818 ] Added binary blob_boot0.img of size 56688640
[   2.8379 ] Added binary blob_kernel_tegra194-p3668-0001-p3509-0000.dtb of size 326682
[   2.8570 ] Added binary blob_tegra194-p3668-0001-p3509-0000_sigheader.dtb.encrypt of size 340032
[   2.9105 ] Sending bootloader and pre-requisite binaries
[   2.9148 ] tegrarcm_v2 --instance 1-1 --download blob blob.bin
[   2.9173 ] Applet version 01.00.0000
[   2.9607 ] Sending blob
[   2.9608 ] [                                                ] 001%
[   2.9608 ] [.                                               ] 003%
[   2.9608 ] [..                                              ] 004%
[   2.9608 ] [...                                             ] 006%
[   2.9608 ] [....                                            ] 008%
[   2.9608 ] [....                                            ] 009%
[   2.9608 ] [.....                                           ] 011%
[   2.9608 ] [......                                          ] 013%
[   2.9608 ] [.......                                         ] 014%
[   2.9608 ] [........                                        ] 016%
[   2.9608 ] [.........                                       ] 018%
[   2.9608 ] [.........                                       ] 019%
[   2.9608 ] [..........                                      ] 021%
[   2.9608 ] [...........                                     ] 023%
[   2.9608 ] [............                                    ] 024%
[   2.9608 ] [.............                                   ] 026%
[   2.9608 ] [..............                                  ] 028%
[   2.9608 ] [..............                                  ] 029%
[   2.9608 ] [...............                                 ] 031%
[   2.9608 ] [................                                ] 033%
[   2.9608 ] [.................                               ] 034%
[   2.9608 ] [..................                              ] 036%
[   2.9608 ] [...................                             ] 038%
[   2.9608 ] [...................                             ] 039%
[   2.9608 ] [....................                            ] 041%
[   2.9608 ] [.....................                           ] 042%
[   2.9608 ] [......................                          ] 044%
[   2.9608 ] [.......................                         ] 046%
[   2.9608 ] [.......................                         ] 047%
[   2.9608 ] [........................                        ] 049%
[   2.9608 ] [.........................                       ] 051%
[   2.9608 ] [..........................                      ] 052%
[   2.9608 ] [...........................                     ] 054%
[   2.9608 ] [............................                    ] 056%
[   2.9608 ] [............................                    ] 057%
[   2.9608 ] [.............................                   ] 059%
[   2.9608 ] [..............................                  ] 061%
[   2.9608 ] [...............................                 ] 062%
[   2.9608 ] [................................                ] 064%
[   2.9608 ] [.................................               ] 066%
[   2.9608 ] [.................................               ] 067%
[   2.9608 ] [..................................              ] 069%
[   2.9608 ] [...................................             ] 071%
[   2.9608 ] [....................................            ] 072%
[   2.9608 ] [.....................................           ] 074%
[   2.9608 ] [......................................          ] 076%
[   2.9608 ] [......................................          ] 077%
[   2.9608 ] [.......................................         ] 079%
[   2.9608 ] [........................................        ] 080%
[   2.9608 ] [.........................................       ] 082%
[   2.9608 ] [..........................................      ] 084%
[   2.9608 ] [..........................................      ] 085%
[   2.9608 ] [...........................................     ] 087%
[   2.9608 ] [............................................    ] 089%
[   2.9608 ] [.............................................   ] 090%
[   2.9608 ] [..............................................  ] 092%
[   2.9608 ] [............................................... ] 094%
[   2.9608 ] [............................................... ] 095%
[   2.9608 ] [................................................] 097%
[   2.9608 ] [................................................] 099%
[   2.9608 ] [................................................] 100%
[  11.5308 ] tegrarcm_v2 --instance 1-1 --boot rcm
[  11.5336 ] Applet version 01.00.0000
[  11.5796 ] RCM-boot started

~/NX/JP5.1/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 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%enp0s20f0u1
4194304
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/internal/flash.idx
Number of lines is 42
max_index=41
SSH ready
4194304
Flash index file is /qspi/internal/flash.idx
Number of lines is 42
max_index=41
[ 0]: l4t_flash_from_kernel: Starting to flash to qspi
QSPI storage size: 33554432 bytes.
[ 1]: l4t_flash_from_kernel: Successfully create gpt for emmc
Run command: partprobe /dev/mmcblk0 on root@fe80::1%enp0s20f0u1
sh: 1: udevadm: not found
sh: 1: udevadm: not found
[ 1]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/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, 0d69e822e301d51d2ab21baa5b1cf7c51884cca8
Writing primary_gpt partition with gpt_primary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/gpt_primary_9_0.bin of=/dev/sdg bs=1 skip=0  seek=512 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.021288 s, 794 kB/s
Writing primary_gpt partition done
Writing secondary_gpt partition with gpt_secondary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/gpt_secondary_9_0.bin of=/dev/sdg bs=1 skip=0  seek=128035659264 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0391977 s, 431 kB/s
Writing secondary_gpt partition done
[ 3]: l4t_flash_from_kernel: Successfully create gpt for external device
Run command: partprobe /dev/nvme0n1 on root@fe80::1%enp0s20f0u1
sh: 1: udevadm: not found
sh: 1: udevadm: not found
[ 4]: l4t_flash_from_kernel: Starting to flash to emmc
[ 4]: l4t_flash_from_kernel: Starting to flash to external device
Active index file is /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/internal/flash.idx
Number of lines is 42
max_index=41
Active index file is /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/flash.idx
Number of lines is 17
max_index=16
writing item=0, 9:0:master_boot_record, 0, 512, mbr_9_0.bin, 512, fixed-<reserved>-0, 694898d1c345bdb31b377790ed7fc0b0db184bf7
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, 0d69e822e301d51d2ab21baa5b1cf7c51884cca8
writing item=2, 9:0:kernel, 20480, 67108864, boot.img, 43065344, fixed-<reserved>-2, 7300b876947a7f03575e6ad014a4dcbd5f92921e
Writing kernel partition with boot.img
Get size of partition through connection.
43065344 bytes from /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/boot.img to /dev/sdg: 1KB block=42056 remainder=0
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/boot.img of=/dev/sdg bs=1K skip=0  seek=20 count=42056
[ 4]: l4t_flash_from_kernel: Successfully flash the emmc
42056+0 records in
42056+0 records out
43065344 bytes (43 MB, 41 MiB) copied, 4.88797 s, 8.8 MB/s
Writing kernel partition done
writing item=3, 9:0:kernel-dtb, 67129344, 458752, kernel_tegra194-p3668-0001-p3509-0000.dtb, 326678, fixed-<reserved>-3, 74191f28d1810697c840f15ea4d7fe2ba9db686c
Writing kernel-dtb partition with kernel_tegra194-p3668-0001-p3509-0000.dtb
Get size of partition through connection.
326678 bytes from /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/kernel_tegra194-p3668-0001-p3509-0000.dtb to /dev/sdg: 1KB block=319 remainder=22
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/kernel_tegra194-p3668-0001-p3509-0000.dtb of=/dev/sdg bs=1K skip=0  seek=65556 count=319
319+0 records in
319+0 records out
326656 bytes (327 kB, 319 KiB) copied, 0.0328606 s, 9.9 MB/s
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/kernel_tegra194-p3668-0001-p3509-0000.dtb of=/dev/sdg bs=1 skip=326656  seek=67456000 count=22
22+0 records in
22+0 records out
22 bytes copied, 0.000252262 s, 87.2 kB/s
Writing kernel-dtb partition done
writing item=4, 9:0:reserved_for_chain_A_user, 67588096, 33554432, , , fixed-<reserved>-4, 
[ 9]: l4t_flash_from_kernel: Warning: skip writing reserved_for_chain_A_user partition as no image is specified
writing item=5, 9:0:kernel_b, 101142528, 67108864, boot.img, 43065344, fixed-<reserved>-5, 7300b876947a7f03575e6ad014a4dcbd5f92921e
Writing kernel_b partition with boot.img
Get size of partition through connection.
43065344 bytes from /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/boot.img to /dev/sdg: 1KB block=42056 remainder=0
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/boot.img of=/dev/sdg bs=1K skip=0  seek=98772 count=42056
42056+0 records in
42056+0 records out
43065344 bytes (43 MB, 41 MiB) copied, 5.06096 s, 8.5 MB/s
Writing kernel_b partition done
writing item=6, 9:0:kernel-dtb_b, 168251392, 458752, kernel_tegra194-p3668-0001-p3509-0000.dtb, 326678, fixed-<reserved>-6, 74191f28d1810697c840f15ea4d7fe2ba9db686c
Writing kernel-dtb_b partition with kernel_tegra194-p3668-0001-p3509-0000.dtb
Get size of partition through connection.
326678 bytes from /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/kernel_tegra194-p3668-0001-p3509-0000.dtb to /dev/sdg: 1KB block=319 remainder=22
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/kernel_tegra194-p3668-0001-p3509-0000.dtb of=/dev/sdg bs=1K skip=0  seek=164308 count=319
319+0 records in
319+0 records out
326656 bytes (327 kB, 319 KiB) copied, 0.0611201 s, 5.3 MB/s
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/kernel_tegra194-p3668-0001-p3509-0000.dtb of=/dev/sdg bs=1 skip=326656  seek=168578048 count=22
22+0 records in
22+0 records out
22 bytes copied, 0.00108366 s, 20.3 kB/s
Writing kernel-dtb_b partition done
writing item=7, 9:0:reserved_for_chain_B_user, 168710144, 33554432, , , fixed-<reserved>-7, 
[ 14]: l4t_flash_from_kernel: Warning: skip writing reserved_for_chain_B_user partition as no image is specified
writing item=8, 9:0:recovery, 202264576, 83886080, recovery.img, 46721024, fixed-<reserved>-8, d7d8a2d7d46b52296ce137051cac71ed58ca27e2
Writing recovery partition with recovery.img
Get size of partition through connection.
46721024 bytes from /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/recovery.img to /dev/sdg: 1KB block=45626 remainder=0
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/recovery.img of=/dev/sdg bs=1K skip=0  seek=197524 count=45626
45626+0 records in
45626+0 records out
46721024 bytes (47 MB, 45 MiB) copied, 5.71987 s, 8.2 MB/s
Writing recovery partition done
writing item=9, 9:0:recovery-dtb, 286150656, 524288, tegra194-p3668-0001-p3509-0000.dtb.rec, 326678, fixed-<reserved>-9, 74191f28d1810697c840f15ea4d7fe2ba9db686c
Writing recovery-dtb partition with tegra194-p3668-0001-p3509-0000.dtb.rec
Get size of partition through connection.
326678 bytes from /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/tegra194-p3668-0001-p3509-0000.dtb.rec to /dev/sdg: 1KB block=319 remainder=22
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/tegra194-p3668-0001-p3509-0000.dtb.rec of=/dev/sdg bs=1K skip=0  seek=279444 count=319
319+0 records in
319+0 records out
326656 bytes (327 kB, 319 KiB) copied, 0.0475032 s, 6.9 MB/s
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/tegra194-p3668-0001-p3509-0000.dtb.rec of=/dev/sdg bs=1 skip=326656  seek=286477312 count=22
22+0 records in
22+0 records out
22 bytes copied, 0.000229704 s, 95.8 kB/s
Writing recovery-dtb partition done
writing item=10, 9:0:RECROOTFS, 286674944, 104857600, , , fixed-<reserved>-10, 
[ 20]: l4t_flash_from_kernel: Warning: skip writing RECROOTFS partition as no image is specified
writing item=11, 9:0:esp, 391532544, 67108864, esp.img, 67108864, fixed-<reserved>-11, 5ef1d3afea11404b3dcd49c2dbb3daeb56d77400
Writing esp partition with esp.img
Get size of partition through connection.
67108864 bytes from /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/esp.img to /dev/sdg: 1KB block=65536 remainder=0
dd if=/home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/esp.img of=/dev/sdg bs=1K skip=0  seek=382356 count=65536
65536+0 records in
65536+0 records out
67108864 bytes (67 MB, 64 MiB) copied, 7.62685 s, 8.8 MB/s
Writing esp partition done
writing item=12, 9:0:recovery_alt, 458641408, 83886080, , , fixed-<reserved>-12, 
[ 28]: l4t_flash_from_kernel: Warning: skip writing recovery_alt partition as no image is specified
writing item=13, 9:0:recovery-dtb_alt, 542527488, 524288, , , fixed-<reserved>-13, 
[ 28]: l4t_flash_from_kernel: Warning: skip writing recovery-dtb_alt partition as no image is specified
writing item=14, 9:0:esp_alt, 543051776, 67108864, , , fixed-<reserved>-14, 
[ 28]: l4t_flash_from_kernel: Warning: skip writing esp_alt partition as no image is specified
writing item=15, 9:0:APP, 610160640, 15032385536, , , fixed-<reserved>-1, 
Formatting APP partition /dev/sdg1 ...
mke2fs 1.44.1 (24-Mar-2018)
Creating filesystem with 3670016 4k blocks and 917504 inodes
Filesystem UUID: 75bc5c0f-d797-42f8-846e-af523a40cb20
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables:   0/112       done                            
Writing inode tables:   0/112       done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information:   0/112       done

Formatting APP parition done
Formatting APP partition /dev/sdg1 ...
tar --xattrs -xpf /home/uii/NX/JP5.1/Linux_for_Tegra/tools/kernel_flash/images/external/system.img  --checkpoint=10000 --warning=no-timestamp --numeric-owner  -C  /tmp/ci-hXUBBT9JKF
tar: Read checkpoint 10000
tar: Read checkpoint 20000
tar: Read checkpoint 30000
tar: Read checkpoint 40000
tar: Read checkpoint 50000
tar: Read checkpoint 60000
tar: Read checkpoint 70000
tar: Read checkpoint 80000
tar: Read checkpoint 90000
tar: Read checkpoint 100000
tar: Read checkpoint 110000
tar: Read checkpoint 120000
tar: Read checkpoint 130000
tar: Read checkpoint 140000
tar: Read checkpoint 150000
tar: Read checkpoint 160000
tar: Read checkpoint 170000
tar: Read checkpoint 180000
tar: Read checkpoint 190000
tar: Read checkpoint 200000
tar: Read checkpoint 210000
tar: Read checkpoint 220000
tar: Read checkpoint 230000
tar: Read checkpoint 240000
tar: Read checkpoint 250000
tar: Read checkpoint 260000
tar: Read checkpoint 270000
tar: Read checkpoint 280000
tar: Read checkpoint 290000
tar: Read checkpoint 300000
tar: Read checkpoint 310000
tar: Read checkpoint 320000
tar: Read checkpoint 330000
tar: Read checkpoint 340000
tar: Read checkpoint 350000
tar: Read checkpoint 360000
tar: Read checkpoint 370000
tar: Read checkpoint 380000
tar: Read checkpoint 390000
tar: Read checkpoint 400000
tar: Read checkpoint 410000
tar: Read checkpoint 420000
tar: Read checkpoint 430000
tar: Read checkpoint 440000
tar: Read checkpoint 450000
tar: Read checkpoint 460000
tar: Read checkpoint 470000
tar: Read checkpoint 480000
tar: Read checkpoint 490000
tar: Read checkpoint 500000
tar: Read checkpoint 510000
tar: Read checkpoint 520000
tar: Read checkpoint 530000
tar: Read checkpoint 540000
tar: Read checkpoint 550000
Erased 33554432 bytes from address 0x00000000 in flash
Flash index file is /qspi/internal/flash.idx
Number of lines is 42
max_index=41
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 (2888 bytes) into  /dev/mtd0:0
Copied 2888 bytes from /qspi/internal/br_bct_BR.bct to address 0x00000000 in flash
[ 110]: l4t_flash_from_kernel: QSPI erase block size is 65536
[ 110]: l4t_flash_from_kernel: Writing 2 copies of /qspi/internal/br_bct_BR.bct
Writing /qspi/internal/br_bct_BR.bct (2888 bytes) into  /dev/mtd0:65536
Copied 2888 bytes from /qspi/internal/br_bct_BR.bct to address 0x00010000 in flash
Writing mb1_t194_prod_aligned_sigheader.bin.encrypt (parittion: mb1) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb1_t194_prod_aligned_sigheader.bin.encrypt
Writing /qspi/internal/mb1_t194_prod_aligned_sigheader.bin.encrypt (249008 bytes) into  /dev/mtd0:131072
Copied 249008 bytes from /qspi/internal/mb1_t194_prod_aligned_sigheader.bin.encrypt to address 0x00020000 in flash
Writing mb1_b_t194_prod_aligned_sigheader.bin.encrypt (parittion: mb1_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mb1_b_t194_prod_aligned_sigheader.bin.encrypt
Writing /qspi/internal/mb1_b_t194_prod_aligned_sigheader.bin.encrypt (249008 bytes) into  /dev/mtd0:393216
Copied 249008 bytes from /qspi/internal/mb1_b_t194_prod_aligned_sigheader.bin.encrypt to address 0x00060000 in flash
Writing mb1_cold_boot_bct_MB1_sigheader.bct.encrypt (parittion: 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 (30416 bytes) into  /dev/mtd0:655360
Copied 30416 bytes from /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt to address 0x000a0000 in flash
Writing mem_coldboot_sigheader.bct.encrypt (parittion: MEM_BCT) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mem_coldboot_sigheader.bct.encrypt
Writing /qspi/internal/mem_coldboot_sigheader.bct.encrypt (198656 bytes) into  /dev/mtd0:720896
Copied 198656 bytes from /qspi/internal/mem_coldboot_sigheader.bct.encrypt to address 0x000b0000 in flash
Writing spe_t194_sigheader.bin.encrypt (parittion: spe-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/spe_t194_sigheader.bin.encrypt
Writing /qspi/internal/spe_t194_sigheader.bin.encrypt (95232 bytes) into  /dev/mtd0:983040
Copied 95232 bytes from /qspi/internal/spe_t194_sigheader.bin.encrypt to address 0x000f0000 in flash
Writing nvtboot_t194_sigheader.bin.encrypt (parittion: mb2) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/nvtboot_t194_sigheader.bin.encrypt
Writing /qspi/internal/nvtboot_t194_sigheader.bin.encrypt (207584 bytes) into  /dev/mtd0:1245184
Copied 207584 bytes from /qspi/internal/nvtboot_t194_sigheader.bin.encrypt to address 0x00130000 in flash
Writing preboot_c10_prod_cr_sigheader.bin.encrypt (parittion: mts-preboot) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/preboot_c10_prod_cr_sigheader.bin.encrypt
Writing /qspi/internal/preboot_c10_prod_cr_sigheader.bin.encrypt (24016 bytes) into  /dev/mtd0:1507328
Copied 24016 bytes from /qspi/internal/preboot_c10_prod_cr_sigheader.bin.encrypt to address 0x00170000 in flash
Writing mce_c10_prod_cr_sigheader.bin.encrypt (parittion: mts-mce) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mce_c10_prod_cr_sigheader.bin.encrypt
Writing /qspi/internal/mce_c10_prod_cr_sigheader.bin.encrypt (145184 bytes) into  /dev/mtd0:1572864
Copied 145184 bytes from /qspi/internal/mce_c10_prod_cr_sigheader.bin.encrypt to address 0x00180000 in flash
Writing mts_c10_prod_cr_sigheader.bin.encrypt (parittion: mts-proper) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mts_c10_prod_cr_sigheader.bin.encrypt
Writing /qspi/internal/mts_c10_prod_cr_sigheader.bin.encrypt (3430416 bytes) into  /dev/mtd0:1769472
Copied 3430416 bytes from /qspi/internal/mts_c10_prod_cr_sigheader.bin.encrypt to address 0x001b0000 in flash
Writing warmboot_t194_prod_sigheader.bin.encrypt (parittion: sc7) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/warmboot_t194_prod_sigheader.bin.encrypt
Writing /qspi/internal/warmboot_t194_prod_sigheader.bin.encrypt (55264 bytes) into  /dev/mtd0:5963776
Copied 55264 bytes from /qspi/internal/warmboot_t194_prod_sigheader.bin.encrypt to address 0x005b0000 in flash
Writing xusb_sil_rel_fw (parittion: xusb-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/xusb_sil_rel_fw
Writing /qspi/internal/xusb_sil_rel_fw (129024 bytes) into  /dev/mtd0:6094848
Copied 129024 bytes from /qspi/internal/xusb_sil_rel_fw to address 0x005d0000 in flash
Writing nvdisp-init_sigheader.bin.encrypt (parittion: cpu-bootloader) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/nvdisp-init_sigheader.bin.encrypt
Writing /qspi/internal/nvdisp-init_sigheader.bin.encrypt (3215360 bytes) into  /dev/mtd0:6291456
Copied 3215360 bytes from /qspi/internal/nvdisp-init_sigheader.bin.encrypt to address 0x00600000 in flash
Writing tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt (parittion: bootloader-dtb) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt
Writing /qspi/internal/tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt (340032 bytes) into  /dev/mtd0:10485760
Copied 340032 bytes from /qspi/internal/tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt to address 0x00a00000 in flash
Writing tos-optee_t194_sigheader.img.encrypt (parittion: secure-os) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tos-optee_t194_sigheader.img.encrypt
Writing /qspi/internal/tos-optee_t194_sigheader.img.encrypt (914992 bytes) into  /dev/mtd0:10944512
Copied 914992 bytes from /qspi/internal/tos-optee_t194_sigheader.img.encrypt to address 0x00a70000 in flash
Writing eks_t194_sigheader.img.encrypt (parittion: eks) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/eks_t194_sigheader.img.encrypt
Writing /qspi/internal/eks_t194_sigheader.img.encrypt (5136 bytes) into  /dev/mtd0:13565952
Copied 5136 bytes from /qspi/internal/eks_t194_sigheader.img.encrypt to address 0x00cf0000 in flash
Writing adsp-fw_sigheader.bin.encrypt (parittion: adsp-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/adsp-fw_sigheader.bin.encrypt
Writing /qspi/internal/adsp-fw_sigheader.bin.encrypt (396864 bytes) into  /dev/mtd0:13631488
Copied 396864 bytes from /qspi/internal/adsp-fw_sigheader.bin.encrypt to address 0x00d00000 in flash
Writing camera-rtcpu-t194-rce_sigheader.img.encrypt (parittion: rce-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/camera-rtcpu-t194-rce_sigheader.img.encrypt
Writing /qspi/internal/camera-rtcpu-t194-rce_sigheader.img.encrypt (529776 bytes) into  /dev/mtd0:14680064
Copied 529776 bytes from /qspi/internal/camera-rtcpu-t194-rce_sigheader.img.encrypt to address 0x00e00000 in flash
[ 146]: l4t_flash_from_kernel: Warning: skip writing sce-fw partition as no image is specified
Writing bpmp-2_t194_sigheader.bin.encrypt (parittion: bpmp-fw) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/bpmp-2_t194_sigheader.bin.encrypt
Writing /qspi/internal/bpmp-2_t194_sigheader.bin.encrypt (1007392 bytes) into  /dev/mtd0:16777216
Copied 1007392 bytes from /qspi/internal/bpmp-2_t194_sigheader.bin.encrypt to address 0x01000000 in flash
Writing tegra194-a02-bpmp-p3668-a00_lz4_sigheader.dtb.encrypt (parittion: bpmp-fw-dtb) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tegra194-a02-bpmp-p3668-a00_lz4_sigheader.dtb.encrypt
Writing /qspi/internal/tegra194-a02-bpmp-p3668-a00_lz4_sigheader.dtb.encrypt (36176 bytes) into  /dev/mtd0:18350080
Copied 36176 bytes from /qspi/internal/tegra194-a02-bpmp-p3668-a00_lz4_sigheader.dtb.encrypt to address 0x01180000 in flash
[ 150]: l4t_flash_from_kernel: Warning: skip writing reserved_for_chain_A_boot partition as no image is specified
Writing mb1_cold_boot_bct_MB1_sigheader.bct.encrypt (parittion: MB1_BCT_b) 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 (30416 bytes) into  /dev/mtd0:21495808
Copied 30416 bytes from /qspi/internal/mb1_cold_boot_bct_MB1_sigheader.bct.encrypt to address 0x01480000 in flash
Writing mem_coldboot_sigheader.bct.encrypt (parittion: MEM_BCT_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mem_coldboot_sigheader.bct.encrypt
Writing /qspi/internal/mem_coldboot_sigheader.bct.encrypt (198656 bytes) into  /dev/mtd0:21561344
Copied 198656 bytes from /qspi/internal/mem_coldboot_sigheader.bct.encrypt to address 0x01490000 in flash
Writing spe_t194_sigheader.bin.encrypt (parittion: spe-fw_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/spe_t194_sigheader.bin.encrypt
Writing /qspi/internal/spe_t194_sigheader.bin.encrypt (95232 bytes) into  /dev/mtd0:21823488
Copied 95232 bytes from /qspi/internal/spe_t194_sigheader.bin.encrypt to address 0x014d0000 in flash
Writing nvtboot_t194_sigheader.bin.encrypt (parittion: mb2_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/nvtboot_t194_sigheader.bin.encrypt
Writing /qspi/internal/nvtboot_t194_sigheader.bin.encrypt (207584 bytes) into  /dev/mtd0:22085632
Copied 207584 bytes from /qspi/internal/nvtboot_t194_sigheader.bin.encrypt to address 0x01510000 in flash
Writing preboot_c10_prod_cr_sigheader.bin.encrypt (parittion: mts-preboot_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/preboot_c10_prod_cr_sigheader.bin.encrypt
Writing /qspi/internal/preboot_c10_prod_cr_sigheader.bin.encrypt (24016 bytes) into  /dev/mtd0:22347776
Copied 24016 bytes from /qspi/internal/preboot_c10_prod_cr_sigheader.bin.encrypt to address 0x01550000 in flash
Writing mce_c10_prod_cr_sigheader.bin.encrypt (parittion: mts-mce_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mce_c10_prod_cr_sigheader.bin.encrypt
Writing /qspi/internal/mce_c10_prod_cr_sigheader.bin.encrypt (145184 bytes) into  /dev/mtd0:22413312
Copied 145184 bytes from /qspi/internal/mce_c10_prod_cr_sigheader.bin.encrypt to address 0x01560000 in flash
Writing mts_c10_prod_cr_sigheader.bin.encrypt (parittion: mts-proper_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/mts_c10_prod_cr_sigheader.bin.encrypt
Writing /qspi/internal/mts_c10_prod_cr_sigheader.bin.encrypt (3430416 bytes) into  /dev/mtd0:22609920
Copied 3430416 bytes from /qspi/internal/mts_c10_prod_cr_sigheader.bin.encrypt to address 0x01590000 in flash
Writing warmboot_t194_prod_sigheader.bin.encrypt (parittion: sc7_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/warmboot_t194_prod_sigheader.bin.encrypt
Writing /qspi/internal/warmboot_t194_prod_sigheader.bin.encrypt (55264 bytes) into  /dev/mtd0:26804224
Copied 55264 bytes from /qspi/internal/warmboot_t194_prod_sigheader.bin.encrypt to address 0x01990000 in flash
Writing xusb_sil_rel_fw (parittion: xusb-fw_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/xusb_sil_rel_fw
Writing /qspi/internal/xusb_sil_rel_fw (129024 bytes) into  /dev/mtd0:26935296
Copied 129024 bytes from /qspi/internal/xusb_sil_rel_fw to address 0x019b0000 in flash
Writing nvdisp-init_sigheader.bin.encrypt (parittion: cpu-bootloader_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/nvdisp-init_sigheader.bin.encrypt
Writing /qspi/internal/nvdisp-init_sigheader.bin.encrypt (3215360 bytes) into  /dev/mtd0:27131904
Copied 3215360 bytes from /qspi/internal/nvdisp-init_sigheader.bin.encrypt to address 0x019e0000 in flash
Writing tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt (parittion: bootloader-dtb_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt
Writing /qspi/internal/tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt (340032 bytes) into  /dev/mtd0:31326208
Copied 340032 bytes from /qspi/internal/tegra194-p3668-0000-p3509-0000_sigheader.dtb.encrypt to address 0x01de0000 in flash
[ 178]: l4t_flash_from_kernel: Warning: skip writing reserved_for_chain_B_boot partition as no image is specified
[ 178]: l4t_flash_from_kernel: Warning: skip writing uefi_variables partition as no image is specified
[ 178]: l4t_flash_from_kernel: Warning: skip writing uefi_ftw 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:33161216
Copied 32768 bytes from /qspi/internal/bct_backup.img to address 0x01fa0000 in flash
[ 179]: l4t_flash_from_kernel: Warning: skip writing reserved_partition partition as no image is specified
Writing gpt_secondary_3_0.bin (parittion: secondary_gpt_backup) 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:33292288
Copied 16896 bytes from /qspi/internal/gpt_secondary_3_0.bin to address 0x01fc0000 in flash
Writing qspi_bootblob_ver.txt (parittion: VER_b) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/qspi_bootblob_ver.txt
Writing /qspi/internal/qspi_bootblob_ver.txt (109 bytes) into  /dev/mtd0:33357824
Copied 109 bytes from /qspi/internal/qspi_bootblob_ver.txt to address 0x01fd0000 in flash
Writing qspi_bootblob_ver.txt (parittion: VER) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/qspi_bootblob_ver.txt
Writing /qspi/internal/qspi_bootblob_ver.txt (109 bytes) into  /dev/mtd0:33423360
Copied 109 bytes from /qspi/internal/qspi_bootblob_ver.txt to address 0x01fe0000 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:33537536
Copied 16896 bytes from /qspi/internal/gpt_secondary_3_0.bin to address 0x01ffbe00 in flash
[ 179]: l4t_flash_from_kernel: Successfully flash the qspi
[ 179]: l4t_flash_from_kernel: Flashing success
writing item=16, 9:0:secondary_gpt, 128035659264, 16896, gpt_secondary_9_0.bin, 16896, fixed-<reserved>-0, 8c4d29a371d3fc65b1e93f9f54112bc2116e8434
[ 210]: l4t_flash_from_kernel: Successfully flash the external device
[ 210]: l4t_flash_from_kernel: Flashing success

Reboot target
Run command: sync; nohup reboot &>/dev/null & exit on root@fe80::1%enp0s20f0u1
SSH ready
Success
Cleaning up...

Hi,

then are you able to login via UART?
Does flashing with SDK Manager make any difference?

The log file is automatically generated by the Ubuntu host under /Linux_for_Tegra/intrdlog/. I didn’t flash it like this in SDKManager.

There is a phenomenon: on this basis, flash emmc can start normally, and it is still starting from nvme.

抱歉 我實在看不太懂你上面兩則回覆想表達什麼
我們可能說中文比較方便

我用上述方法在35.3.1的版本上刷机之后,发现设备启动不了,我开发板上接了显示器,一直出不来配置界面。后来刷了一下emmc后发现显示器上出现了配置界面,配置完成后查看启动方式就是从nvme启动的。所以我觉得有区别的是上述操作在32.6.1的版本上可以直接从nvme启动,而在35.3.1的版本上需要刷emmc后才能从nvme启动。这也是我的疑惑点。

Hi,

這個是正常的
因為r32到r35之間partiton layout的變動比較大
Xavier NX的bootloader在r35上有一部分是存在SD卡/eMMC上的,不是完全在QSPI上
(只有Xavier NX是這樣 其他裝置沒有)
所以你只刷QSPI和NVMe SSD才會不能開機

其實你直接用SDK Manager燒就會幫你處理好這些事了
或者是用README裡的Workflow 3,可以一個指令就燒好,不需要像你原本一樣分三步

sudo ADDITIONAL_DTB_OVERLAY_OPT=“BootOrderNvme.dtbo” ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_external.xml --showlogs jetson-xavier-nx-devkit external

是的,一条指令的我试了,是可以的正常启动的。我还有个问题,如果后面我用这种直接flash到外部存储然后从nvme启动的方式会对OTA升级有影响吗?或者说采用这种flash的方式后我想从32.6.1通过基于image的OTA升级到35.3.1是能够办到的吧?

可以的,不會有問題
還有就是因為上面的原因,如果你有SD卡版本的Xavier NX,升到r35之後也一定要插著SD卡才能開機、即使rootfs是存在其他外部裝置裡

好的,谢谢您的解答!

1 Like

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