Hi all. I am attempting to flash a Jetson Xavier NX (developer kit) with Jetpack 4.6.1 using initrd. Flashing to a brand new NVM SSD. But the flash process will meet problem of missing file of “Linux_for_Tegra/bootloader/signed/flash.idx”.
I have followed some troubleshooting steps outlined in this thread but still can’t resolve the error: Issue with flashing an NVMe ssd with initrd
Here is the command I am using to flash:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_nvme.xml -S 64GiB --showlogs jetson-xavier external
and here is the output when run this command
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 -S 64GiB --showlogs jetson-xavier external
/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 -S 64GiB --showlogs jetson-xavier external
************************************
* *
* Step 1: Generate flash packages *
* *
************************************
Create folder to store images to flash
Generate images to be flashed
BOOTDEV=external /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 external
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 6.1
###############################################################################
Board ID() version() sku() revision()
Copy /home/seeed/Downloads/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb to /home/seeed/Downloads/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb.rec
Using UUID 47b413af-eee4-4ce2-bbcc-b345694e28cf for mounting root APP_ext partition.
copying bctfile(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p2888.cfg)... done.
copying bctfile1(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying uphy_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg)... done.
copying minratchet_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg)... done.
copying device_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-sdmmc.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-p2888-0000-a04-p2822-0000-b01.cfg)... done.
copying gpioint_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg)... done.
copying pmic_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg)... done.
copying pmc_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg)... done.
copying prod_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg)... done.
copying scr_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)... done.
copying scr_cold_boot_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)... done.
copying bootrom_config(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg)... done.
copying dev_params(/home/seeed/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-sdmmc.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-p2888-0000-p2822-0000.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.0010 ] Generating signature
[ 0.0050 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0053 ] Assuming zero filled SBK key : not reading
[ 0.0052 ] Generating ratchet blob
[ 0.0089 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[ 0.0108 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0114 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0115 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0115 ]
[ 0.0118 ] header_magic: 414e4452
[ 0.0154 ] tegrahost_v2 --chip 0x19 --align 1_boot.img
[ 0.0176 ]
[ 0.0211 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_boot.img zerosbk
[ 0.0233 ] adding BCH for 1_boot.img
[ 1.8035 ]
[ 1.8094 ] tegrasign_v3.py --key --list 1_boot_sigheader.img_list.xml --pubkeyhash pub_key.key
[ 1.8097 ] Assuming zero filled SBK key : not reading
[ 1.9957 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_boot_sigheader.img.encrypt 1_boot_sigheader.img.hash zerosbk
[ 3.0036 ]
[ 3.0985 ] 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-p2888-0001-p2822-0000.dtb.rec)... done.
20+0 records in
20+0 records out
20 bytes copied, 0.000514763 s, 38.9 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-p2888-a01.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-p2888-0001-p2822-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-p2888-0000-p2822-0000.cfg --cmd sign kernel_tegra194-p2888-0001-p2822-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.0054 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0056 ] Assuming zero filled SBK key : not reading
[ 0.0056 ] Generating ratchet blob
[ 0.0092 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[ 0.0112 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0118 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0119 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0119 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0119 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0119 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0119 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0119 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0119 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0119 ]
[ 0.0122 ] header_magic: d00dfeed
[ 0.0158 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0184 ]
[ 0.0217 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p2888-0001-p2822-0000.dtb zerosbk
[ 0.0239 ] adding BCH for 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0379 ]
[ 0.0436 ] tegrasign_v3.py --key --list 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[ 0.0439 ] Assuming zero filled SBK key : not reading
[ 0.0541 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.hash zerosbk
[ 0.0641 ]
[ 0.0658 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x45651 to offset 0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the signed file is /home/seeed/Downloads/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
done.
populating kernel to rootfs... done.
populating initrd to rootfs... done.
populating kernel_tegra194-p2888-0001-p2822-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-p2888-0000-p2822-0000.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.0061 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0063 ] Assuming zero filled SBK key : not reading
[ 0.0062 ] Generating ratchet blob
[ 0.0106 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[ 0.0127 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0154 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0155 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0156 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0156 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0156 ]
[ 0.0162 ] header_magic: 405614
[ 0.0194 ] tegrahost_v2 --chip 0x19 --align 1_Image
[ 0.0228 ]
[ 0.0267 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_Image zerosbk
[ 0.0292 ] adding BCH for 1_Image
[ 1.5349 ]
[ 1.5411 ] tegrasign_v3.py --key --list 1_Image_sigheader_list.xml --pubkeyhash pub_key.key
[ 1.5413 ] Assuming zero filled SBK key : not reading
[ 1.7045 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_Image_sigheader.encrypt 1_Image_sigheader.hash zerosbk
[ 2.5060 ]
[ 2.5815 ] 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-p2888-0001-p2822-0000.dtb ... /home/seeed/Downloads/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key --minratchet_config tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg --cmd sign ./boot/dtb/kernel_tegra194-p2888-0
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.0018 ] Generating signature
[ 0.0059 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0062 ] Assuming zero filled SBK key : not reading
[ 0.0062 ] Generating ratchet blob
[ 0.0098 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[ 0.0119 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0125 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0125 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0125 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0125 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0125 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0125 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0125 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0126 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0126 ]
[ 0.0133 ] header_magic: d00dfeed
[ 0.0170 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0198 ]
[ 0.0234 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p2888-0001-p2822-0000.dtb zerosbk
[ 0.0256 ] adding BCH for 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0417 ]
[ 0.0474 ] tegrasign_v3.py --key --list 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[ 0.0477 ] Assuming zero filled SBK key : not reading
[ 0.0589 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.hash zerosbk
[ 0.0683 ]
[ 0.0697 ] Signed file: /home/seeed/Downloads/Linux_for_Tegra/bootloader/mnt/kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x45651 to offset 0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/dtb/kernel_tegra194-p2888-0001-p2822-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.0014 ] Generating signature
[ 0.0039 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0041 ] Assuming zero filled SBK key : not reading
[ 0.0045 ] header_magic: 1f8b0800
[ 0.0080 ] tegrahost_v2 --chip 0x19 --align 1_initrd
[ 0.0107 ]
[ 0.0141 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_initrd zerosbk
[ 0.0161 ] adding BCH for 1_initrd
[ 0.3351 ]
[ 0.3411 ] tegrasign_v3.py --key --list 1_initrd_sigheader_list.xml --pubkeyhash pub_key.key
[ 0.3414 ] Assuming zero filled SBK key : not reading
[ 0.3830 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_initrd_sigheader.encrypt 1_initrd_sigheader.hash zerosbk
[ 0.5478 ]
[ 0.5663 ] 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.0015 ] Generating signature
[ 0.0044 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0046 ] Assuming zero filled SBK key : not reading
[ 0.0046 ] header_magic: 54494d45
[ 0.0080 ] tegrahost_v2 --chip 0x19 --align 1_extlinux.conf
[ 0.0104 ]
[ 0.0139 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_extlinux.conf zerosbk
[ 0.0160 ] adding BCH for 1_extlinux.conf
[ 0.0164 ]
[ 0.0225 ] tegrasign_v3.py --key --list 1_extlinux_sigheader.conf_list.xml --pubkeyhash pub_key.key
[ 0.0228 ] Assuming zero filled SBK key : not reading
[ 0.0322 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_extlinux_sigheader.conf.encrypt 1_extlinux_sigheader.conf.hash zerosbk
[ 0.0343 ]
[ 0.0350 ] 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 0x380 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-p2888-0001-p2822-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-p2888.cfg,tegra194-memcfg-sw-override.cfg --odmdata 0x9190000 --applet mb1_t194_prod.bin --cmd "sign" --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --cfg flash.xml --chip 0x19 --uphy_c22-0000.cfg --device_config tegra19x-mb1-bct-device-sdmmc.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --gpioint_config tegra194-mb1-bct-gpioint-pb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --prod_config tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini.cfg --br_cmd_config tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg rod_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-p2888-a01.dtb; spe_fw spe_t194.bin; tlk tos-trusty_t194.img; eks eks.img; bootloader_dtb tegra194-p2888-0001-p2822-0000.dtb" --skipuid --external_de
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.0171 ] Using default ramcode: 0
[ 0.0171 ] Disable BPMP dtb trim, using default dtb
[ 0.0171 ]
[ 0.0197 ] tegrasign_v3.py --getmode mode.txt --key None
[ 0.0199 ] Assuming zero filled SBK key
[ 0.0203 ] Generating RCM messages
[ 0.0242 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[ 0.0261 ] Header already present for mb1_t194_prod.bin
[ 0.0336 ]
[ 0.0377 ] tegrasign_v3.py --getmode mode.txt --key None
[ 0.0380 ] Assuming zero filled SBK key
[ 0.0426 ] tegrasign_v3.py --file mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[ 0.0429 ] Assuming zero filled SBK key
[ 0.0670 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[ 0.0744 ]
[ 0.0788 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[ 0.0817 ]
[ 0.0851 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[ 0.0874 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0880 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0881 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0881 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0881 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0881 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0882 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0882 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0882 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0882 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0883 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0883 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0883 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0883 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0884 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0884 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0884 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0884 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0885 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0885 ]
[ 0.0910 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[ 0.0925 ] RCM 0 is saved as rcm_0.rcm
[ 0.1003 ] RCM 1 is saved as rcm_1.rcm
[ 0.1003 ] RCM 2 is saved as rcm_2.rcm
[ 0.1003 ] List of rcm files are saved in rcm_list.xml
[ 0.1003 ]
[ 0.1004 ] Signing RCM messages
[ 0.1040 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.1042 ] Assuming zero filled SBK key
[ 0.1185 ] Copying signature to RCM mesages
[ 0.1221 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.1412 ]
[ 0.1414 ] Parsing partition layout
[ 0.1464 ] tegraparser_v2 --pt flash.xml.tmp
[ 0.1515 ]
[ 0.1516 ] Creating list of images to be signed
[ 0.1556 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --ratchet_blob ratchet_blob.bin --list images_list.xml zerosbk
[ 0.1579 ] adding BCH for boot.img
[ 0.2143 ] adding BCH for boot.img
[ 1.9960 ] adding BCH for kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 4.8164 ] adding BCH for kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 4.8290 ] adding BCH for recovery.img
[ 4.9419 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb.rec
[ 7.0033 ]
[ 7.0034 ] Filling MB1 storage info
[ 7.0035 ] Generating br-bct
[ 7.0071 ] Performing cfg overlay
[ 7.0072 ] ['tegra194-mb1-bct-memcfg-p2888.cfg', 'tegra194-memcfg-sw-override.cfg']
[ 7.0080 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p2888.cfg -s tegra194-memcfg-sw-override.cfg -o /home/seeed/Downloads/Linux_for_Tegra/bootloader/5654/tmpx53__4bv1.cfg
[ 7.1112 ]
[ 7.1115 ] Updating dev and MSS params in BR BCT
[ 7.1117 ] tegrabct_v2 --dev_param tegra194-br-bct-sdmmc.cfg --sdram /home/seeed/Downloads/Linux_for_Tegra/bootloader/5654/tmpx53__4bv1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[ 7.2397 ]
[ 7.2398 ] Updating bl info
[ 7.2436 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[ 7.2462 ]
[ 7.2463 ] Generating signatures
[ 7.2503 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key
[ 7.2505 ] Assuming zero filled SBK key
[ 8.7801 ] Copying signatures
[ 8.7837 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[ 13.7627 ]
[ 13.7665 ] tegraparser_v2 --generategpt --pt flash.xml.bin
[ 13.7688 ] End sector for APP, expected at: 60604382, actual: 134217767
[ 13.7692 ]
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
I also has try to touch a flash.idx file, but it also did not work.