Flash Xavier NX external SSD(nvme)

Hi, we are trying to flash our OS on external SSD on Xavier NX. But when we do that reference the “Workflow 3: How to flash to an external storage:”. we meed a problem and can not fix it now. please help us to check this.

seeed@seeed-O:~/Downloads/Linux_for_Tegra$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_nvme.xml --external-only -S 64GiB --showlogs jetson-xavier-nx-devkit-emmc nvme0n1p1
/home/seeed/Downloads/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_nvme.xml --external-only -S 64GiB --showlogs jetson-xavier-nx-devkit-emmc nvme0n1p1
************************************
*                                  *
*  Step 1: Generate flash packages *
*                                  *
************************************
Create folder to store images to flash
Generate images to be flashed
BOOTDEV=nvme0n1p1 /home/seeed/Downloads/Linux_for_Tegra/flash.sh --no-flash --sign --external-device -c "./tools/kernel_flash/flash_l4t_nvme.xml" -S "64GiB"  jetson-xavier-nx-devkit-emmc nvme0n1p1

###############################################################################
# L4T BSP Information:
# R32 , REVISION: 6.1
###############################################################################
Board ID() version() sku() revision()
Copy /home/seeed/Downloads/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb to /home/seeed/Downloads/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb.rec
copying bctfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg)... done.
copying bctfile1(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying minratchet_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-ratchet-p3668.cfg)... done.
copying device_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-qspi-p3668.cfg)... done.
copying misc_cold_boot_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)... done.
copying misc_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)... done.
copying pinmux_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg)... done.
copying gpioint_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg)... done.
copying pmic_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p3668-0001-a00.cfg)... done.
copying pmc_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p3668-a01.cfg)... done.
copying prod_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p3668-0001-a00.cfg)... done.
copying scr_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying scr_cold_boot_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying bootrom_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p3668-0001-a00.cfg)... done.
copying dev_params(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-qspi.cfg)... done.
Existing bootloader(/home/seeed/Downloads/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/seeed/Downloads/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
/home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign boot.img kernel
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.0011 ] Generating signature
[   0.0054 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0056 ] Assuming zero filled SBK key : not reading
[   0.0056 ] Generating ratchet blob
[   0.0093 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0114 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0120 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0121 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0121 ]
[   0.0124 ] header_magic: 414e4452
[   0.0145 ] tegrahost_v2 --chip 0x19 --align 1_boot.img
[   0.0163 ]
[   0.0198 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_boot.img zerosbk
[   0.0223 ] adding BCH for 1_boot.img
[   1.8058 ]
[   1.8118 ] tegrasign_v3.py --key  --list 1_boot_sigheader.img_list.xml --pubkeyhash pub_key.key
[   1.8121 ] Assuming zero filled SBK key : not reading
[   2.0146 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_boot_sigheader.img.encrypt 1_boot_sigheader.img.hash zerosbk
[   3.0281 ]
[   3.1245 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
l4t_sign_image.sh: Generate header for boot_sigheader.img.encrypt
l4t_sign_image.sh: chip 0x19: add 0x27cb800 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for boot_sigheader.img.encrypt
l4t_sign_image.sh: the signed file is /home/seeed/Downloads/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
done.
Making recovery ramdisk for recovery image...
Re-generating recovery ramdisk for recovery image...
~/Downloads/Linux_for_Tegra/bootloader/ramdisk_tmp ~/Downloads/Linux_for_Tegra/bootloader ~/Downloads/Linux_for_Tegra
30412 blocks
_BASE_KERNEL_VERSION=4.9.253-tegra
~/Downloads/Linux_for_Tegra/bootloader/ramdisk_tmp/lib ~/Downloads/Linux_for_Tegra/bootloader/ramdisk_tmp ~/Downloads/Linux_for_Tegra/bootloader ~/Downloads/Linux_for_Tegra
66117 blocks
Making Recovery image...
copying recdtbfile(/home/seeed/Downloads/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb.rec)... done.
20+0 records in
20+0 records out
20 bytes copied, 0.000737929 s, 27.1 kB/s
Existing sosfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing tegraboot(/home/seeed/Downloads/Linux_for_Tegra/bootloader/nvtboot_t194.bin) reused.
Existing cpu_bootloader(/home/seeed/Downloads/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
Existing mb2blfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mtspreboot(/home/seeed/Downloads/Linux_for_Tegra/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mcepreboot(/home/seeed/Downloads/Linux_for_Tegra/bootloader/mce_c10_prod_cr.bin) reused.
Existing mtsproper(/home/seeed/Downloads/Linux_for_Tegra/bootloader/mts_c10_prod_cr.bin) reused.
Existing mb1file(/home/seeed/Downloads/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing bpffile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/bpmp_t194.bin) reused.
copying bpfdtbfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p3668-a00.dtb)... done.
Existing scefile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/seeed/Downloads/Linux_for_Tegra/bootloader/camera-rtcpu-rce.img) reused.
Existing spefile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing wb0boot(/home/seeed/Downloads/Linux_for_Tegra/bootloader/warmboot_t194_prod.bin) reused.
Existing tosfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/tos-trusty_t194.img) reused.
Existing eksfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/eks.img) reused.
copying soft_fuses(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
copying dtbfile(/home/seeed/Downloads/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)... done.
Copying nv_boot_control.conf to rootfs
/home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign kernel_tegra194-p3668-all-p3509-0000.dtb kernel_dtb
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.0012 ] Generating signature
[   0.0038 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0040 ] Assuming zero filled SBK key : not reading
[   0.0039 ] Generating ratchet blob
[   0.0072 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0093 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0099 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0100 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0100 ]
[   0.0103 ] header_magic: d00dfeed
[   0.0138 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0163 ]
[   0.0197 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p3668-all-p3509-0000.dtb zerosbk
[   0.0218 ] adding BCH for 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0320 ]
[   0.0380 ] tegrasign_v3.py --key  --list 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[   0.0383 ] Assuming zero filled SBK key : not reading
[   0.0501 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.hash zerosbk
[   0.0573 ]
[   0.0584 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x31f5f to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the signed file is /home/seeed/Downloads/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
done.
        populating kernel to rootfs... done.
        populating initrd to rootfs... done.
        populating kernel_tegra194-p3668-all-p3509-0000.dtb to rootfs... done.
Making system.img...
        populating rootfs from /home/seeed/Downloads/Linux_for_Tegra/rootfs ...         populating /boot/extlinux/extlinux.conf ... done.
        generating sig file of Image ... /home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign ./boot/Image kernel
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.0017 ] Generating signature
[   0.0045 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0047 ] Assuming zero filled SBK key : not reading
[   0.0045 ] Generating ratchet blob
[   0.0068 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0082 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0109 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0110 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0110 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0110 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0110 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0110 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0110 ]
[   0.0116 ] header_magic: 405614
[   0.0140 ] tegrahost_v2 --chip 0x19 --align 1_Image
[   0.0171 ]
[   0.0208 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_Image zerosbk
[   0.0229 ] adding BCH for 1_Image
[   1.5346 ]
[   1.5743 ] tegrasign_v3.py --key  --list 1_Image_sigheader_list.xml --pubkeyhash pub_key.key
[   1.5745 ] Assuming zero filled SBK key : not reading
[   1.9161 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_Image_sigheader.encrypt 1_Image_sigheader.hash zerosbk
[   7.9490 ]
[   8.0280 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/mnt/Image_sigheader.encrypt
l4t_sign_image.sh: Generate header for Image_sigheader.encrypt
l4t_sign_image.sh: chip 0x19: add 0x20e3008 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for Image_sigheader.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/Image.sig
done.
done.
        generating sig file of kernel_tegra194-p3668-all-p3509-0000.dtb ... /home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign ./boot/dtb/kernel_tegra194-p3668-all-p3509-0000.dtb kernel_dtb
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.0014 ] Generating signature
[   0.0041 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0043 ] Assuming zero filled SBK key : not reading
[   0.0041 ] Generating ratchet blob
[   0.0073 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0095 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0101 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0102 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0102 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0102 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0102 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0102 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0102 ]
[   0.0111 ] header_magic: d00dfeed
[   0.0130 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0150 ]
[   0.0183 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p3668-all-p3509-0000.dtb zerosbk
[   0.0205 ] adding BCH for 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0314 ]
[   0.0373 ] tegrasign_v3.py --key  --list 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[   0.0375 ] Assuming zero filled SBK key : not reading
[   0.0479 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.hash zerosbk
[   0.0551 ]
[   0.0562 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/mnt/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x31f5f to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/dtb/kernel_tegra194-p3668-all-p3509-0000.dtb.sig
done.
done.
        generating sig file of initrd ... /home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --cmd sign ./boot/initrd data
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.0013 ] Generating signature
[   0.0040 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0042 ] Assuming zero filled SBK key : not reading
[   0.0047 ] header_magic: 1f8b0800
[   0.0082 ] tegrahost_v2 --chip 0x19 --align 1_initrd
[   0.0110 ]
[   0.0146 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_initrd zerosbk
[   0.0169 ] adding BCH for 1_initrd
[   0.3358 ]
[   0.3418 ] tegrasign_v3.py --key  --list 1_initrd_sigheader_list.xml --pubkeyhash pub_key.key
[   0.3421 ] Assuming zero filled SBK key : not reading
[   0.3840 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_initrd_sigheader.encrypt 1_initrd_sigheader.hash zerosbk
[   0.5495 ]
[   0.5669 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/mnt/initrd_sigheader.encrypt
l4t_sign_image.sh: Generate header for initrd_sigheader.encrypt
l4t_sign_image.sh: chip 0x19: add 0x6e72c8 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for initrd_sigheader.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/initrd.sig
done.
done.
        generating sig file of extlinux.conf ... /home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --cmd sign ./boot/extlinux/extlinux.conf data
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.0014 ] Generating signature
[   0.0038 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0040 ] Assuming zero filled SBK key : not reading
[   0.0040 ] header_magic: 54494d45
[   0.0073 ] tegrahost_v2 --chip 0x19 --align 1_extlinux.conf
[   0.0098 ]
[   0.0131 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_extlinux.conf zerosbk
[   0.0150 ] adding BCH for 1_extlinux.conf
[   0.0155 ]
[   0.0212 ] tegrasign_v3.py --key  --list 1_extlinux_sigheader.conf_list.xml --pubkeyhash pub_key.key
[   0.0215 ] Assuming zero filled SBK key : not reading
[   0.0305 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_extlinux_sigheader.conf.encrypt 1_extlinux_sigheader.conf.hash zerosbk
[   0.0331 ]
[   0.0338 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/mnt/extlinux_sigheader.conf.encrypt
l4t_sign_image.sh: Generate header for extlinux_sigheader.conf.encrypt
l4t_sign_image.sh: chip 0x19: add 0x350 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for extlinux_sigheader.conf.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/extlinux/extlinux.conf.sig
done.
done.
        Sync'ing system.img ... done.
        Converting RAW image to Sparse image... done.
system.img built successfully.
Existing tbcfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/cboot_t194.bin) reused.
copying tbcdtbfile(/home/seeed/Downloads/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)... done.
copying cfgfile(/home/seeed/Downloads/Linux_for_Tegra/tools/kernel_flash/flash_l4t_nvme.xml) to flash.xml... done.
Existing flasher(/home/seeed/Downloads/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing flashapp(/home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl nvtboot_recovery_cpu_t194.bin --sdram_config tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg,tegra194-memcfg-sw-override.cfg  --odmdata 0xB8190000 --applet mb1_t194_prod.bin --cmd "sign" --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg  --cfg flash.xml --chip 0x19 --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --device_config tegra19x-mb1-bct-device-qspi-p3668.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p3668-a01.cfg --gpioint_config tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --pmic_config tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --pmc_config tegra19x-mb1-padvoltage-p3668-a01.cfg --prod_config tegra19x-mb1-prod-p3668-0001-a00.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --br_cmd_config tegra194-mb1-bct-reset-p3668-0001-a00.cfg --dev_params tegra194-br-bct-qspi.cfg  --bin "mb2_bootloader nvtboot_recovery_t194.bin; mts_preboot preboot_c10_prod_cr.bin; mts_mce mce_c10_prod_cr.bin; mts_proper mts_c10_prod_cr.bin; bpmp_fw bpmp_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00.dtb; spe_fw spe_t194.bin; tlk tos-trusty_t194.img; eks eks.img; bootloader_dtb tegra194-p3668-all-p3509-0000.dtb" --skipuid  --trim_bpmp_dtb --external_device
saving flash command in /home/seeed/Downloads/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/seeed/Downloads/Linux_for_Tegra/bootloader/flash_win.bat
*** Sign and generate flashing ready partition images... ***
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.0204 ] Using default ramcode: 0
[   0.0204 ] Generating BPMP dtb for ramcode - 0
[   0.1450 ] Old BPMP dtb size - 277874 bytes
[   0.1451 ] New BPMP dtb size - 195698 bytes
[   0.1453 ]
[   0.1505 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.1508 ] Assuming zero filled SBK key
[   0.1538 ] Generating RCM messages
[   0.1578 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[   0.1601 ] Header already present for mb1_t194_prod.bin
[   0.1685 ]
[   0.1733 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.1736 ] Assuming zero filled SBK key
[   0.1779 ] tegrasign_v3.py --file mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[   0.1782 ] Assuming zero filled SBK key
[   0.1896 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[   0.1979 ]
[   0.2041 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[   0.2075 ]
[   0.2115 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.2140 ] FwIndex: 1, MinRatchetLevel: 0
[   0.2148 ] FwIndex: 2, MinRatchetLevel: 0
[   0.2148 ] FwIndex: 3, MinRatchetLevel: 0
[   0.2149 ] FwIndex: 4, MinRatchetLevel: 0
[   0.2149 ] FwIndex: 5, MinRatchetLevel: 0
[   0.2149 ] FwIndex: 6, MinRatchetLevel: 0
[   0.2150 ] FwIndex: 7, MinRatchetLevel: 0
[   0.2150 ] FwIndex: 11, MinRatchetLevel: 0
[   0.2150 ] FwIndex: 12, MinRatchetLevel: 0
[   0.2151 ] FwIndex: 13, MinRatchetLevel: 0
[   0.2151 ] FwIndex: 14, MinRatchetLevel: 0
[   0.2151 ] FwIndex: 15, MinRatchetLevel: 0
[   0.2152 ] FwIndex: 16, MinRatchetLevel: 0
[   0.2152 ] FwIndex: 17, MinRatchetLevel: 0
[   0.2153 ] FwIndex: 18, MinRatchetLevel: 0
[   0.2153 ] FwIndex: 19, MinRatchetLevel: 0
[   0.2153 ] FwIndex: 30, MinRatchetLevel: 0
[   0.2154 ] FwIndex: 31, MinRatchetLevel: 0
[   0.2154 ] FwIndex: 32, MinRatchetLevel: 0
[   0.2154 ]
[   0.2186 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[   0.2207 ] RCM 0 is saved as rcm_0.rcm
[   0.2287 ] RCM 1 is saved as rcm_1.rcm
[   0.2287 ] RCM 2 is saved as rcm_2.rcm
[   0.2287 ] List of rcm files are saved in rcm_list.xml
[   0.2287 ]
[   0.2288 ] Signing RCM messages
[   0.2325 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.2327 ] Assuming zero filled SBK key
[   0.2480 ] Copying signature to RCM mesages
[   0.2515 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.2548 ]
[   0.2548 ] Parsing partition layout
[   0.2821 ] tegraparser_v2 --pt flash.xml.tmp
[   0.2873 ]
[   0.2874 ] Creating list of images to be signed
[   0.2915 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --ratchet_blob ratchet_blob.bin --list images_list.xml zerosbk
[   0.2941 ] adding BCH for boot.img
[   0.3493 ] adding BCH for boot.img
[   2.1247 ] adding BCH for kernel_tegra194-p3668-all-p3509-0000.dtb
[   4.8026 ] adding BCH for kernel_tegra194-p3668-all-p3509-0000.dtb
[   4.8119 ] adding BCH for recovery.img
[   5.0201 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb.rec
[   7.0739 ]
[   7.0740 ] Filling MB1 storage info
[   7.0740 ] Generating br-bct
[   7.0777 ] Performing cfg overlay
[   7.0778 ] ['tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg', 'tegra194-memcfg-sw-override.cfg']
[   7.0785 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg -s tegra194-memcfg-sw-override.cfg -o /home/seeed/Downloads/Linux_for_Tegra/bootloader/2362/tmpubdfvpmj1.cfg
[   7.1793 ]
[   7.1796 ] Updating dev and MSS params in BR BCT
[   7.1797 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi.cfg --sdram /home/seeed/Downloads/Linux_for_Tegra/bootloader/2362/tmpubdfvpmj1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   7.2450 ]
[   7.2451 ] Updating bl info
[   7.2487 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[   7.2513 ]
[   7.2514 ] Generating signatures
[   7.2554 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key
[   7.2556 ] Assuming zero filled SBK key
[   8.2764 ] Copying signatures
[   8.2798 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[  13.2708 ]
[  13.2747 ] tegraparser_v2 --generategpt --pt flash.xml.bin
[  13.2767 ] End sector for APP, expected at: 60604382, actual: 134217767
[  13.2770 ]
Error: Return value 4
Command tegraparser_v2 --generategpt --pt flash.xml.bin
Error: /home/seeed/Downloads/Linux_for_Tegra/bootloader/signed/flash.idx is not found
Error: failed to relocate images to /home/seeed/Downloads/Linux_for_Tegra/tools/kernel_flash/images
Cleaning up...
seeed@seeed-O:~/Downloads/Linux_for_Tegra$ ^C

duplicated with topic 237824?

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