Jetson AGX Xavier flash.sh issue

Hello All,

I am trying to update the dtb file using flash.sh on the xavier board.

When the flash.sh command is executed, flashing is terminated with the following error.

jpchae@ubuntu:~/Linux_for_Tegra$ sudo ./flash.sh -k kernel-dtb jetson-agx-xavier-devkit  mmcblk0p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 6.1
###############################################################################
# Target Board Information:
# Name: jetson-agx-xavier-devkit, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/jpchae/Linux_for_Tegra/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo cvm.bin;reboot recovery" 
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0024 ] Generating RCM messages
[   0.0053 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/jpchae/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[   0.0059 ] Header already present for /home/jpchae/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[   0.0086 ] 
[   0.0114 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.0115 ] Assuming zero filled SBK key
[   0.0145 ] tegrasign_v3.py --file /home/jpchae/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[   0.0146 ] Assuming zero filled SBK key
[   0.0203 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/jpchae/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/jpchae/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[   0.0233 ] 
[   0.0261 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[   0.0269 ] 
[   0.0293 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/jpchae/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[   0.0298 ] RCM 0 is saved as rcm_0.rcm
[   0.0322 ] RCM 1 is saved as rcm_1.rcm
[   0.0322 ] RCM 2 is saved as rcm_2.rcm
[   0.0322 ] List of rcm files are saved in rcm_list.xml
[   0.0322 ] 
[   0.0322 ] Signing RCM messages
[   0.0345 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0345 ] Assuming zero filled SBK key
[   0.0398 ] Copying signature to RCM mesages
[   0.0422 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0437 ] 
[   0.0438 ] Boot Rom communication
[   0.0462 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[   0.0470 ] RCM version 0X190001
[   0.1550 ] Boot Rom communication completed
[   1.2002 ] 
[   2.2087 ] tegrarcm_v2 --isapplet
[   2.2120 ] Applet version 01.00.0000
[   2.4803 ] 
[   2.4865 ] tegrarcm_v2 --ismb2
[   2.6207 ] 
[   2.6260 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[   2.6294 ] 
[   2.6331 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[   2.6363 ] adding BCH for nvtboot_applet_t194.bin
[   2.6417 ] 
[   2.6448 ] tegrasign_v3.py --key None --list nvtboot_applet_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[   2.6449 ] Assuming zero filled SBK key
[   2.6487 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[   2.6508 ] 
[   2.6536 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[   2.6542 ] Applet version 01.00.0000
[   2.9145 ] Sending mb2
[   2.9145 ] [................................................] 100%
[   2.9954 ] 
[   2.9981 ] tegrarcm_v2 --boot recovery
[   2.9987 ] Applet version 01.00.0000
[   3.2939 ] 
[   4.3009 ] tegrarcm_v2 --isapplet
[   4.5763 ] 
[   4.5825 ] tegrarcm_v2 --ismb2
[   4.5860 ] MB2 Applet version 01.00.0000
[   4.8506 ] 
[   4.8569 ] tegrarcm_v2 --ismb2
[   4.8605 ] MB2 Applet version 01.00.0000
[   5.1289 ] 
[   5.1350 ] Retrieving board information
[   5.1387 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[   5.1396 ] MB2 Applet version 01.00.0000
[   5.4655 ] Saved platform info in chip_info.bin
[   5.5014 ] Chip minor revision: 2
[   5.5015 ] Bootrom revision: 0x7
[   5.5015 ] Ram code: 0x0
[   5.5016 ] Chip sku: 0xd0
[   5.5016 ] Chip Sample: non es
[   5.5249 ] 
[   5.5251 ] Retrieving EEPROM data
[   5.5252 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/jpchae/Linux_for_Tegra/bootloader/cvm.bin
[   5.5262 ] MB2 Applet version 01.00.0000
[   5.8556 ] Saved platform info in /home/jpchae/Linux_for_Tegra/bootloader/cvm.bin
[   5.9474 ] 
[   5.9474 ] Rebooting to recovery mode
[   5.9501 ] tegrarcm_v2 --ismb2
[   5.9507 ] MB2 Applet version 01.00.0000
[   6.0954 ] 
[   6.0955 ] Rebooting to recovery mode
[   6.1015 ] tegrarcm_v2 --reboot recovery
[   6.1047 ] MB2 Applet version 01.00.0000
[   6.4575 ] 
Board ID(2888) version(400) sku(0001) revision(J.0)
copying bctfile(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p2888.cfg)... done.
copying bctfile1(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying uphy_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg)... done.
copying device_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-sdmmc.cfg)... done.
copying misc_cold_boot_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)... done.
copying misc_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)... done.
copying pinmux_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg)... done.
copying gpioint_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg)... done.
copying pmic_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p2888-0001-a04-E-0-p2822-0000.cfg)... done.
copying pmc_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg)... done.
copying prod_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg)... done.
copying scr_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)... done.
copying scr_cold_boot_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)... done.
copying bootrom_config(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg)... done.
copying dev_params(/home/jpchae/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-sdmmc.cfg)... done.
Existing bootloader(/home/jpchae/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/jpchae/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
cp: cannot stat '/home/jpchae/Linux_for_Tegra/bootloader/tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg': No such file or directory
/home/jpchae/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.0004 ] Generating signature
[   0.0030 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0031 ] Assuming zero filled SBK key : not reading 
[   0.0030 ] Generating ratchet blob
[   0.0050 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[   0.0056 ] Empty File tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[   0.0057 ] Failed to Parse file tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg: 0x0000000a
[   0.0057 ] File tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg open failed
[   0.0057 ] 
Error: Return value 19
Command tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
l4t_sign_image.sh: Error: Unable to find the signed file generated by tegraflash.py
failed.

Your log says some files are missing. Did you ever do the full flash with this Linux_for_Tegra before?

Hello WayneWWW ,

No, i didn’t run full flash fusing.
i was upgrade 32.6.1 using sdkmanager tool.
so i was trying to change the custom sensor device tree.

Please run --no-flash first and see if the missing file is back.

sudo ./flash.sh --no-flash jetson-agx-xavier-devkit mmcblk0p1

Hello WayneWWW ,

It’s work so good!

Thank you so much.