scripts: tizen: sd_fusing.py: Add Rpi4AoT partition map 93/304193/1
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 12 Jan 2024 00:55:25 +0000 (09:55 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 12 Jan 2024 00:55:25 +0000 (09:55 +0900)
Add Rpi4Aot Partition map to support an AoT on RPi4.

Change-Id: I6ab6b1d51408c01cb2e219cc6f4699eb849f130e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
scripts/tizen/sd_fusing.py

index 8fff28b..417454c 100755 (executable)
@@ -322,6 +322,67 @@ class Rpi4(InitParams, SdFusingTargetAB):
         self.update = args.update
         super().__init__(device, "gpt")
 
+class Rpi4AoT(InitParams, SdFusingTargetAB):
+    long_name = "Raspberry Pi 4 for AoT"
+    part_table = [
+        {"size": 64,   "fstype": "vfat", "name": "boot_a", "start": 4,
+         "ptype": "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
+         "binaries": "boot.img"},
+        {"size": 3072, "fstype": "ext4", "name": "rootfs_a",
+         "binaries": "rootfs.img"},
+        {"size": 1344, "fstype": "ext4", "name": "system-data",
+         "binaries": "system-data.img"},
+        {"size": 36,   "fstype": "raw",  "name": "none"},
+        {"size": None, "fstype": "ext4", "name": "user",
+         "binaries": "user.img"},
+        {"size": 32,   "fstype": "ext4", "name": "module_a",
+         "binaries": "modules.img"},
+        {"size": 32,   "fstype": "ext4", "name": "ramdisk_a",
+         "binaries": "ramdisk.img"},
+        {"size": 32,   "fstype": "ext4", "name": "ramdisk-recovery_a",
+         "binaries": "ramdisk-recovery.img"},
+        {"size": 8,    "fstype": "ext4", "name": "inform"},
+        {"size": 256,  "fstype": "ext4", "name": "hal_a",
+         "binaries": "hal.img"},
+        {"size": 64,   "fstype": "vfat", "name": "boot_b",
+         "ptype": "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
+         "binaries_b": "boot.img"},
+        {"size": 3072, "fstype": "ext4", "name": "rootfs_b",
+         "binaries_b": "rootfs.img"},
+        {"size": 32,   "fstype": "ext4", "name": "module_b",
+         "binaries_b": "modules.img"},
+        {"size": 32,   "fstype": "ext4", "name": "ramdisk_b",
+         "binaries_b": "ramdisk.img"},
+        {"size": 32,   "fstype": "ext4", "name": "ramdisk-recovery_b",
+         "binaries_b": "ramdisk-recovery.img"},
+        {"size": 256,  "fstype": "ext4", "name": "hal_b",
+         "binaries_b": "hal.img"},
+        {"size": 1536,  "fstype": "ext4", "name": "aot-system_a",
+         "binaries": "system.img"},
+        {"size": 1536,  "fstype": "ext4", "name": "aot-system_b",
+         "binaries_b": "system.img"},
+        {"size": 256,  "fstype": "ext4", "name": "aot-vendor_a",
+         "binaries": "vendor.img"},
+        {"size": 256,  "fstype": "ext4", "name": "aot-vendor_b",
+         "binaries_b": "vendor.img"},
+        {"size": 4,    "fstype": "ext4", "name": "param"},
+        {"size": 64,  "fstype": "ext4", "name": "reserved1"},
+        {"size": 125,  "fstype": "ext4", "name": "reserved2"},
+    ]
+    params = (('reboot-param.bin', 'norm'),
+              ('reboot-param.info', 'norm'),
+              ('partition-ab.info', 'a'),
+              ('partition-ab-cloned.info', '1'),
+              ('upgrade-status.info', '0'),
+              ('partition-a-status.info', 'ok'),
+              ('partition-b-status.info', 'ok'))
+
+    def __init__(self, device, args):
+        self.reserved_space = 5
+        self.user_partition = 4
+        self.update = args.update
+        super().__init__(device, "gpt")
+
 class RV64(InitParams, SdFusingTarget):
     long_name = "QEMU RISC-V 64-bit"
     part_table = [
@@ -406,6 +467,7 @@ TARGETS = {
     'rpi3': Rpi3,
     'rpi4': Rpi4,
     'rpi4s': Rpi4Super,
+    'rpi4aot': Rpi4AoT,
     'vf2': VF2,
     'rv64': RV64,
     'x86emu32': X86emu32,