--- deviceAssetsPath/flash_t234_qspi_sdmmc.xml	2024-06-22 10:29:48.651223772 +0300
+++ deviceAssetsPath/resinOS-flash.xml	2024-06-22 10:35:29.517076263 +0300
@@ -615,7 +615,7 @@
             <percent_reserved> 0 </percent_reserved>
         </partition>
     </device>
-    <device type="sdmmc_user" instance="3" sector_size="512" num_sectors="INT_NUM_SECTORS" >
+    <device type="sdmmc_user" instance="3" sector_size="512" num_sectors="124321792">
         <partition name="master_boot_record" type="protective_master_boot_record">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
@@ -632,148 +632,93 @@
             <allocation_attribute> 8 </allocation_attribute>
             <percent_reserved> 0 </percent_reserved>
         </partition>
-        <partition name="A_kernel" id="2" type="kernel">
+        <partition name="A_kernel" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
             <size> 134217728 </size>
             <file_system_attribute> 0 </file_system_attribute>
             <allocation_attribute> 8 </allocation_attribute>
             <percent_reserved> 0 </percent_reserved>
-            <filename> LNXFILE </filename>
         </partition>
-        <partition name="A_kernel-dtb" type="kernel_dtb">
+        <partition name="A_kernel-dtb" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> 786432 </size>
+            <size> 393216 </size>
             <file_system_attribute> 0 </file_system_attribute>
             <allocation_attribute> 8 </allocation_attribute>
             <percent_reserved> 0 </percent_reserved>
-            <filename> DTB_FILE </filename>
         </partition>
-        <partition name="A_reserved_on_user" type="data">
-            <allocation_policy> sequential </allocation_policy>
-            <filesystem_type> basic </filesystem_type>
-            <size> 33161216 </size>
-            <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
-            <percent_reserved> 0 </percent_reserved>
-        </partition>
-        <partition name="B_kernel" type="kernel">
+        <partition name="B_kernel" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
             <size> 134217728 </size>
             <file_system_attribute> 0 </file_system_attribute>
             <allocation_attribute> 8 </allocation_attribute>
             <percent_reserved> 0 </percent_reserved>
-            <filename> LNXFILE </filename>
-        </partition>
-        <partition name="B_kernel-dtb" type="kernel_dtb">
-            <allocation_policy> sequential </allocation_policy>
-            <filesystem_type> basic </filesystem_type>
-            <size> 786432 </size>
-            <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
-            <percent_reserved> 0 </percent_reserved>
-            <filename> DTB_FILE </filename>
-        </partition>
-        <partition name="B_reserved_on_user" type="data">
-            <allocation_policy> sequential </allocation_policy>
-            <filesystem_type> basic </filesystem_type>
-            <size> 33161216 </size>
-            <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
-            <percent_reserved> 0 </percent_reserved>
         </partition>
-        <partition name="RECNAME" type="kernel">
+        <partition name="B_kernel-dtb" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> RECSIZE </size>
+            <size> 393216 </size>
             <file_system_attribute> 0 </file_system_attribute>
             <allocation_attribute> 8 </allocation_attribute>
             <percent_reserved> 0 </percent_reserved>
-            <filename> RECFILE </filename>
-        </partition>
-        <partition name="RECDTB-NAME" type="kernel_dtb">
-            <allocation_policy> sequential </allocation_policy>
-            <filesystem_type> basic </filesystem_type>
-            <size> 524288 </size>
-            <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
-            <percent_reserved> 0 </percent_reserved>
-            <filename> RECDTB-FILE </filename>
         </partition>
         <partition name="esp" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> 67108864 </size>
+            <size> 70496256 </size>
             <file_system_attribute> 0 </file_system_attribute>
             <allocation_attribute> 0x8 </allocation_attribute>
             <percent_reserved> 0 </percent_reserved>
-            <filename> ESP_FILE </filename>
-            <partition_type_guid> C12A7328-F81F-11D2-BA4B-00A0C93EC93B </partition_type_guid>
             <description> **Required.** EFI system partition with L4T Launcher. </description>
         </partition>
-        <partition name="RECNAME_alt" type="kernel">
-            <allocation_policy> sequential </allocation_policy>
-            <filesystem_type> basic </filesystem_type>
-            <size> RECSIZE </size>
-            <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
-            <percent_reserved> 0 </percent_reserved>
-        </partition>
-        <partition name="RECDTB-NAME_alt" type="kernel_dtb">
+        <partition name="resin-boot" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> 524288 </size>
+            <size> 41943040 </size>
             <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
+	    <allocation_attribute> 0x8 </allocation_attribute>
+	    <filename> FILENAME </filename>
+	    <partition_type_guid> C12A7328-F81F-11D2-BA4B-00A0C93EC93B </partition_type_guid>
             <percent_reserved> 0 </percent_reserved>
         </partition>
-        <partition name="esp_alt" type="data">
+        <partition name="resin-rootA" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> 67108864 </size>
+            <size> 1027604480 </size>
             <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 0x8 </allocation_attribute>
+	    <allocation_attribute> 0x8 </allocation_attribute>
+	    <filename> FILENAME </filename>
             <percent_reserved> 0 </percent_reserved>
-            <description> **Required.** EFI system partition for fail-safe ESP update. </description>
-        </partition>
-        <partition name="UDA" type="data">
+    	</partition>
+        <partition name="resin-rootB" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> 419430400 </size>
+            <size> 1027604480 </size>
             <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
+	    <allocation_attribute> 0x8 </allocation_attribute>
+	    <filename> FILENAME </filename>
             <percent_reserved> 0 </percent_reserved>
-            <align_boundary> 16384 </align_boundary>
-           <description> **Required.** This partition may be mounted and used to store user
-              data. </description>
         </partition>
-        <partition name="reserved" type="data">
+        <partition name="resin-state" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> 502792192 </size> <!-- Recalculate the size if RECSIZE changed -->
+            <size> 20971520 </size>
             <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 8 </allocation_attribute>
+	    <allocation_attribute> 0x8 </allocation_attribute>
+	    <filename> FILENAME </filename>
             <percent_reserved> 0 </percent_reserved>
-            <description> **Required.** Reserve space in case there is any partition change
-              required in the future, for example, adding new partitions or increasing size
-              of some partitions. </description>
         </partition>
-        <partition name="APP" id="1" type="data">
+        <partition name="resin-data" type="data">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
-            <size> APPSIZE </size>
+            <size> FILESIZE </size>
             <file_system_attribute> 0 </file_system_attribute>
-            <allocation_attribute> 0x808 </allocation_attribute>
-            <align_boundary> 16384 </align_boundary>
+	    <allocation_attribute> 0x808 </allocation_attribute>
+	    <filename> FILENAME </filename>
             <percent_reserved> 0 </percent_reserved>
-            <unique_guid> APPUUID </unique_guid>
-            <filename> APPFILE </filename>
-            <description> **Required.** Contains the rootfs. This partition must be assigned
-              the "1" for id as it is physically put to the end of the device, so that it
-              can be accessed as the fixed known special device `/dev/mmcblk0p1`. </description>
-        </partition>
+	</partition>
         <partition name="secondary_gpt" type="secondary_gpt">
             <allocation_policy> sequential </allocation_policy>
             <filesystem_type> basic </filesystem_type>
