Hi, I have a Orin Nano devkit and I’m trying to install a redundant rootfs.
Everything seems to work fine, except it doesn’t create a APP_B partition and the APP partition grows to the entirety of the nvme SSD.
I also tried this config file as suggested by the developper’s guide flash_l4t_nvme_rootfs_ab.xml
And I also get a crash :
[ 3.4917 ] tegrahost_v2 --chip 0x23 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
Traceback (most recent call last):
File "./tegraflash.py", line 1383, in <module>
tegraflash_run_commands()
File "./tegraflash.py", line 1217, in tegraflash_run_commands
interpreter.onecmd(command)
File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
return func(arg)
File "./tegraflash.py", line 278, in do_flash
self.chip_inst.tegraflash_flash(exports)
File "/home/test/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py", line 909, in tegraflash_flash
self.tegraflash_send_to_bootrom()
File "/home/test/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py", line 947, in tegraflash_send_to_bootrom
info_print(mb1_bin + " filename is from images_list")
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Failed flashing t186ref.
I’ve solved my problem by changing the configuration file. There is no configuration file that exists for AB partition on the orin nano devkit with nvme SSD. the nvme SSD is the only medium I can install images on because there’s no SD card slot on the devkit.
I changed flash_t234_qspi_nvme.xml which is the configuration file used for the devkit-nvme.
I added this before the secondary_gpt partition tag and everything works as intended. OTA update AB works.
<partition name="APP_b" id="17" type="data">
<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<size> APPSIZE </size>
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x8 </allocation_attribute>
<align_boundary> 16384 </align_boundary>
<percent_reserved> 0 </percent_reserved>
<unique_guid> APPUUID_b </unique_guid>
<filename> APPFILE_b </filename>
<description> **Required.** Contains the rootfs. This partition must be defined
after `primary_GPT` so that it can be accessed as the fixed known special device
`/dev/mmcblk1p2`. </description>
</partition>