From 8f4cdd37ca7086ebcc3e51a800c4a26fdde35143 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Fri, 12 Jan 2024 09:55:25 +0900 Subject: [PATCH] scripts: tizen: sd_fusing.py: Add Rpi4AoT partition map Add Rpi4Aot Partition map to support an AoT on RPi4. Change-Id: I6ab6b1d51408c01cb2e219cc6f4699eb849f130e Signed-off-by: Jaehoon Chung --- scripts/tizen/sd_fusing.py | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/scripts/tizen/sd_fusing.py b/scripts/tizen/sd_fusing.py index 8fff28b..417454c 100755 --- a/scripts/tizen/sd_fusing.py +++ b/scripts/tizen/sd_fusing.py @@ -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, -- 2.7.4