Image backup with secure boot

Hi,

We burned fused using “sudo ./odmfuse.sh -X fuse_rsa3k.xml -i 0x19 jetson-xavier-nx-devkit-emmc” and flashed devkit using “sudo ./flash.sh -u rsa3k.pem -v sbk.key jetson-xavier-nx-devkit-emmc mmcblk0p1”.

when we tried to backup image using: “sudo ./flash.sh -u rsa3k.pem -v sbk.key -r -k APP -G backup.img jetson-xavier-nx-devkit-emmc mmcblk0p1”, we got the following eror:
"Error: Return value 22
Command tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
*** The [APP] has been read successfully. ***
Converting RAW image to Sparse image… mv: cannot stat ‘/mnt/sd/BSP_Target/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/backup.img’: No such file or directory
open input file /mnt/sd/BSP_Target/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/backup.img.raw failed.
"

when we tried w/o PKC+SBK keys, it failed due to keys missing.

We are using Jetpack 5.1.2 and there is also an option to backup the partitions via tools/backup_restore/l4t_backup_restore.sh

Tried this command also:

sudo ./tools/backup_restore/l4t_backup_restore.sh -u rsa3k.pem -v sbk.key -e mmcblk0p1 -b jetson-xavier-nx-devkit-emmc

This is the output log:

Log is saved to Linux_for_Tegra/initrdlog/flash_1-1.4_0_20241014-094621.log
Run command:
ln -s /proc/self/fd /dev/fd && mount -o nolock [fc00:1:1::1]:/mnt/sd/BSP_Target/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/tools/backup_restore /mnt && /mnt/nvbackup_partitions.sh -e mmcblk0p1 -n && echo Backup image is stored in /mnt/sd/BSP_Target/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/tools/backup_restore/images
on root@fc00:1:1::2
cat: /sys/block/mmcblk0p1/size: No such file or directory
tes@tes-desktop:/mnt/sd/BSP_Target/JetPack_5.1.2_Linux_JET

Any idea what am I doing wrong?

hello nir51yqu,

may I know what’s your actual use-case?
it’s because partition update, (i.e. -k options) is disabled once you’ve secureboot enabled.

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