scripts: tizen: sd_fusing.py: Separate the VF2 from RV64 06/307506/1
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 11 Mar 2024 09:24:21 +0000 (18:24 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 11 Mar 2024 09:24:21 +0000 (18:24 +0900)
VisionFive2 needs to flash the u-boot-spl.bin.normal.out.
Separate the VF2 from RV64.

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

index 417454c..3130c55 100755 (executable)
@@ -424,8 +424,46 @@ class RV64(InitParams, SdFusingTarget):
         self.apply_partition_sizes(args.partition_sizes)
         super().__init__(device, 'gpt')
 
-class VF2(RV64):
+class VF2(InitParams, SdFusingTarget):
     long_name = "VisionFive2"
+    part_table = [
+        {"size": 2,    "fstype": "raw",  "name": "SPL", "start": 4,
+         "ptype": "2E54B353-1271-4842-806F-E436D6AF6985",
+         "binaries": ["u-boot-spl.bin.normal.out"],},
+        {"size": 4,    "fstype": "raw",  "name": "u-boot",
+         "ptype": "5B193300-FC78-40CD-8002-E86C45580B47",
+         "binaries": ["u-boot.img", "u-boot.itb"],},
+        {"size": 292,  "fstype": "vfat", "name": "boot_a",
+         "ptype": "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
+         "binaries": "boot.img"},
+        {"size": 36,   "fstype": "raw",  "name": "none"},
+        {"size": 3072, "fstype": "ext4", "name": "rootfs_a",
+         "binaries": "rootfs.img"},
+        {"size": 1344, "fstype": "ext4", "name": "system-data",
+         "binaries": "system-data.img"},
+        {"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": 4,    "fstype": "raw",  "name": "reserved0"},
+        {"size": 64,   "fstype": "raw",  "name": "reserved1"},
+        {"size": 125,  "fstype": "raw",  "name": "reserved2"},
+    ]
+    params = (('reboot-param.bin', 'norm'),
+              ('reboot-param.info', 'norm'))
+
+    def __init__(self, device, args):
+        self.user_partition = 6
+        self.reserved_space = 5
+        self.apply_partition_sizes(args.partition_sizes)
+        super().__init__(device, 'gpt')
 
 class X86emu(SdFusingTarget):
     part_table = [