scripts: Add InitParams about RV64 38/303538/1
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 2 Jan 2024 01:40:55 +0000 (10:40 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 2 Jan 2024 03:56:44 +0000 (12:56 +0900)
Add InitParams about RV64(Visionfive2 board).
It will be created reboot-param.bin and reboot-param.info.

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

index a3d4415..8fff28b 100755 (executable)
@@ -322,7 +322,7 @@ class Rpi4(InitParams, SdFusingTargetAB):
         self.update = args.update
         super().__init__(device, "gpt")
 
-class RV64(SdFusingTarget):
+class RV64(InitParams, SdFusingTarget):
     long_name = "QEMU RISC-V 64-bit"
     part_table = [
         {"size": 2,    "fstype": "raw",  "name": "SPL", "start": 4,
@@ -347,13 +347,15 @@ class RV64(SdFusingTarget):
          "binaries": "ramdisk.img"},
         {"size": 32,   "fstype": "ext4", "name": "ramdisk-recovery_a",
          "binaries": "ramdisk-recovery.img"},
-        {"size": 8,    "fstype": "raw",  "name": "inform"},
+        {"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