hi ,@seeky15
The UDA is a partition reserved by NV and not open to customers.
If the you need a new partition to store private data, it is recommended to increase the partition .
you can add partition as below, here is an example ,
- modify flash_l4t_t194_spi_emmc_p3668.xml
` <partition name="kernel-dtb" type="kernel_dtb" oem_sign="true">
<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<size> 458752 </size>
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
<filename> DTB_FILE </filename>
<description> **Required.** Slot A; contains kernel device tree blob. </description>
</partition>
<partition name="ADD1" type="data">
<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<size> 34123776 </size>
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
<description> **Required.** Reserved space for slot A. </description>
</partition>
<partition name="reserved_for_slot_A_user" type="data">
<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<size> 0 </size>
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
<description> **Required.** Reserved space for slot A. </description>
</partition>
`
you can also decrease the size of APP and increase the size of ADD1 you want.
- Add reading and writing support for new added partition
modify the flash.sh
#
# Comment out sc7 support. It is found that sc7 sigheader is different and it needs special handling
# See 200617500
#
# sc7 | sc7_b) target_partfile="${wb0bootname}";
# need_sign=1;
# ;;
*spe-fw | spe-fw_b)
target_partfile="${spefilename}";
need_sign=1;
;;
ADD1 | ADD2 )
target_partfile="add1.bin";
need_sign=1;
;;
CPUBL-CFG)
target_partfile="${cbootoptionfilename}";
;;
*) echo "*** Update ${tmp_updateid} is not supported. ***";
exit 1; ;;
esac;
-
flash your device
-
check the partition of ADD1 after flash , by command
sudo gdisk -l /dev/mmcblk0
you will find ADD1 partition -
write partition (write add1.bin to ADD1)
sudo ./flash.sh -k ADD1 --image add1.bin jetson-xavier-nx-devkit-emmc mmcblk0p1 -
read partition
sudo ./flash.sh -r -k ADD1 -G testadd1.txt jetson-xavier-nx-devkit-emmc mmcblk0p1
you can try it, Thanks