How to reflash bootloader only on Xavier AGX

Board: Xavier AGX
Reflashing the entire system takes more tha ten minutes.
How can I reflash bootloader only on Xavier AGX ?

I tried this (from the document [1]) but it ends with an error.

export BOARD="jetson-xavier"
sudo ./flash.sh -k EBT ${BOARD} mmcblk0p1


# L4T BSP Information:
# R32 , REVISION: 4.2
...
Welcome to Tegra Flash
version 1.0.0
...
[   5.4098 ] Sending bootloader and pre-requisite binaries
[   5.4107 ] tegrarcm_v2 --download blob blob.bin
[   5.4114 ] Applet version 01.00.0000
[   5.4289 ] Sending blob
[   5.4290 ] [................................................] 100%
[   6.2924 ] 
[   6.2941 ] tegrarcm_v2 --boot recovery
[   6.2960 ] Applet version 01.00.0000
[   6.3025 ] 
[   7.3051 ] tegrarcm_v2 --isapplet
[   7.8712 ] 
[   7.8747 ] tegrarcm_v2 --ismb2
[   7.8797 ] 
[   7.8827 ] tegradevflash_v2 --iscpubl
[   7.8841 ] Bootloader version 01.00.0000
[   7.9006 ] Bootloader version 01.00.0000
[   7.9016 ] 
[   7.9016 ] Writing partition
[   7.9034 ] tegradevflash_v2 --write EBT 1_nvtboot_cpu_t194_sigheader.bin.encrypt
[   7.9049 ] Bootloader version 01.00.0000
[   7.9208 ] Writing partition EBT with 1_nvtboot_cpu_t194_sigheader.bin.encrypt
[   7.9218 ] 000000000d0d000d: o open partition %s.
[   7.9222 ] 
[   7.9222 ] 
Error: Return value 13
Command tegradevflash_v2 --write EBT 1_nvtboot_cpu_t194_sigheader.bin.encrypt
Failed to flash/read t186ref.

[1] https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/quick_start.html

Hi,

Parameters in flash.sh

“-r” means re-use the system.img so that it will take less time

“-k” needs to have a partition name as input to indicate which partition to flash.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fpart_config.html

If you want to flash cboot only, then the command should be

sudo ./flash.sh -r -k cpu-bootloader jetson-xavier mmcblk0p1.

Hi @WayneWWW,
thank you.

In this case I replace the file cboot_t194.bin

cp out/build-t194/lk.bin ../Linux_for_Tegra/bootloader/cboot_t194.bin

and call the programmer again

sudo ./flash.sh -r -k cpu-bootloader jetson-xavier mmcblk0p1

It works and allows me to run a fast development/test cycle.
Thanks

1 Like