Hi
Recently,I check the OTA Update process.I got a problem(i want to recover the corrupted slot with OTA,but failed).i didn’t find some useful information.please give some help.following is my test enviroment:
Hardware:Jetson Xavier Nx and Nvidia board internal 16G emmc.
Software:R3273
A/B rootfs:Yes(unified bootloader and rootfs a/b is enabled,can NOT inquiry rootfs info!)
the system boot from slot 0,and the slot 1 is bootable.if switch the boot slot with nvbootctrl,the system can boot from slot 1.
Now,the system boot from slot 0,and i destroy the mmcblk0p1(dd if=/dev/zero of=/dev/mmcblk0p1 bs=1M count=1),which is a part of slot 0.then use the reset gpio to reset the device.expect the system boot from slot 0 failed,and then switch to slot 1,and boot from successful.
the reality is the sytem booting from slot 0 hang and reset the device with reset gpio,the system boot from slot 1 successful(the retry count set 1).
when boot from slot 1,and enter the system,i want to run OTA to update the slot 0,but OTA update slot 0 failed.The some log shows as follows:
…
current slot 1
SM:11
Set slot 0 as unbootable and start updating
Satrt running"/mnt/nme/ota_work/nv_ota_rootfs_updater.sh -p /dev/disk/by-partlabel/APP -d /mnt/nvme/ota/ota_work /mnt/nvme/ota_work/system.img
update_rootfs_partition /mnt/nvme/ota_work/system.img /dev/disk/by-partlabel/APP /mnt/nvme/ota_work
validate /mnt/nvme/oat_work/system.img
Mounting rootfs partition /dev/disk/by-partlabel/APP …
backing up files into /mnt/nvme/ota_work
back_up_file /tmp/mnt/boot/extlinux/extlinux.conf /mnt/nvme/ota_work/extlinux.conf.ota_backup
The specified file /tmp/mnt/boot/extlinux/extlinux.conf is not found
Failed to run “back_up_file /tmp/mnt/boot/extlinux/extlinux.conf /mnt/nvme/ota_work/extlinux.conf.ota_backup”
Failed to “back_up_specified_files /mnt/nvme/ota_work /tmp/mnt”
Failed to run “update_rootfs_oartition /mnt/nvme/ota_work/system.img /dev/disk/by-partlabel/APP /mnt/nvme/ota_work”
slot 0 update rootfs failed
…
I use dd command to destroy the app partiton to simulate the filesystem broke down.could the OTA update and recover the bad filesystem?
hello zhuliushun126,
since it’s quite old release version,
could you please try moving to the latest jetson-linux-r3560, or, the linux-tegra-r3275 release version for checking.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.