NX update device tree failed!

Hi,
I tried to update NX’s device tree but failed,What went wrong, please.
sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1

 sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 6.1
###############################################################################
# Target Board Information:
# Name: jetson-xavier-nx-devkit-emmc, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/jetson/Documents/TX2SDK/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.0041 ] Generating RCM messages
[   0.0055 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[   0.0078 ] Header already present for /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[   0.0119 ] 
[   0.0157 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.0159 ] Assuming zero filled SBK key
[   0.0194 ] tegrasign_v3.py --file /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[   0.0195 ] Assuming zero filled SBK key
[   0.0343 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[   0.0392 ] 
[   0.0439 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[   0.0458 ] 
[   0.0535 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[   0.0547 ] RCM 0 is saved as rcm_0.rcm
[   0.0578 ] RCM 1 is saved as rcm_1.rcm
[   0.0578 ] RCM 2 is saved as rcm_2.rcm
[   0.0578 ] List of rcm files are saved in rcm_list.xml
[   0.0578 ] 
[   0.0578 ] Signing RCM messages
[   0.0603 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0604 ] Assuming zero filled SBK key
[   0.0719 ] Copying signature to RCM mesages
[   0.0733 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0776 ] 
[   0.0779 ] Boot Rom communication
[   0.0813 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[   0.0830 ] RCM version 0X190001
[   0.0853 ] Boot Rom communication completed
[   1.1316 ] 
[   2.1361 ] tegrarcm_v2 --isapplet
[   2.1370 ] Applet version 01.00.0000
[   2.2073 ] 
[   2.2109 ] tegrarcm_v2 --ismb2
[   2.2892 ] 
[   2.2938 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[   2.2977 ] 
[   2.3007 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[   2.3026 ] adding BCH for nvtboot_applet_t194.bin
[   2.3053 ] 
[   2.3110 ] tegrasign_v3.py --key None --list nvtboot_applet_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[   2.3111 ] Assuming zero filled SBK key
[   2.3189 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[   2.3257 ] 
[   2.3287 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[   2.3301 ] Applet version 01.00.0000
[   2.3992 ] Sending mb2
[   2.3993 ] [................................................] 100%
[   2.4904 ] 
[   2.4934 ] tegrarcm_v2 --boot recovery
[   2.4977 ] Applet version 01.00.0000
[   2.5927 ] 
[   3.5986 ] tegrarcm_v2 --isapplet
[   3.6706 ] 
[   3.6755 ] tegrarcm_v2 --ismb2
[   3.6765 ] MB2 Applet version 01.00.0000
[   3.7449 ] 
[   3.7473 ] tegrarcm_v2 --ismb2
[   3.7481 ] MB2 Applet version 01.00.0000
[   3.8126 ] 
[   3.8154 ] Retrieving board information
[   3.8180 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[   3.8188 ] MB2 Applet version 01.00.0000
[   3.9493 ] Saved platform info in chip_info.bin
[   3.9940 ] Chip minor revision: 2
[   3.9946 ] Bootrom revision: 0xf
[   3.9951 ] Ram code: 0x0
[   3.9953 ] Chip sku: 0xde
[   3.9953 ] Chip Sample: non es
[   4.0183 ] 
[   4.0189 ] Retrieving EEPROM data
[   4.0190 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/cvm.bin
[   4.0205 ] MB2 Applet version 01.00.0000
[   4.1519 ] Saved platform info in /home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/cvm.bin
[   4.2621 ] 
[   4.2622 ] Rebooting to recovery mode
[   4.2669 ] tegrarcm_v2 --ismb2
[   4.2699 ] MB2 Applet version 01.00.0000
[   4.3322 ] 
[   4.3323 ] Rebooting to recovery mode
[   4.3357 ] tegrarcm_v2 --reboot recovery
[   4.3367 ] MB2 Applet version 01.00.0000
[   4.5046 ] 
Board ID(3668) version(300) sku(0000) revision(B.0)
copying bctfile(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg)... done.
copying bctfile1(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying device_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-qspi-p3668.cfg)... done.
copying misc_cold_boot_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)... done.
copying misc_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)... done.
copying pinmux_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg)... done.
copying gpioint_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg)... done.
copying pmic_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p3668-0001-a00.cfg)... done.
copying pmc_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p3668-a01.cfg)... done.
copying prod_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p3668-0001-a00.cfg)... done.
copying scr_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying scr_cold_boot_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying bootrom_config(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p3668-0001-a00.cfg)... done.
copying dev_params(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-qspi.cfg)... done.
Existing bootloader(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
cp: cannot stat '/home/jetson/Documents/TX2SDK/Linux_for_Tegra/bootloader/tegra194-mb1-bct-ratchet-p3668.cfg': No such file or directory
/home/jetson/Documents/TX2SDK/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.0006 ] Generating signature
[   0.0039 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0040 ] Assuming zero filled SBK key : not reading 
[   0.0039 ] Generating ratchet blob
[   0.0074 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0091 ] Empty File tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0093 ] Failed to Parse file tegra194-mb1-bct-ratchet-p3668.cfg: 0x0000000a
[   0.0093 ] File tegra194-mb1-bct-ratchet-p3668.cfg open failed
[   0.0093 ] 
Error: Return value 19
Command tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
l4t_sign_image.sh: Error: Unable to find the signed file generated by tegraflash.py
failed.

Is this your first time flashing the board using this directory?

Yes.it is.
Is there any difference in between the NX and Nano?

Try full flash first without -r -k kernel-dtb.

And NX and Nano use different SoC. Totally different.

Sorry,I didn’t make myself clear.I mean if I want update device tree only ,Is there any difference operation in NX and Nano.
First,compiling device tree
Second, copy DTB file "tegra194-p3668-all-p3509-0000.dtb"to …/…/…/Linux_for_Tegra/kernel/dtb
Finally,use this command to flash:sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1.

Try full flash first without -r -k kernel-dtb.

I’ll try it if there’s no other way.Thank you for your advice.

The log shows can not find the file: tegra194-mb1-bct-ratchet-p3668.cfg .Is there any way to fix it? Appreciate for your any suggestion.

Full flash will copy the file to that location.

Thank you for your reply,I flashed it successfully with this command:

sudo ./flash.sh -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1

NO -r , It works.

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