scripts: Add InitParams about RV64
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 2 Jan 2024 01:40:55 +0000 (10:40 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 4 Dec 2024 11:00:00 +0000 (12:00 +0100)
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>
sd_fusing.py

index a3d4415678a111fd4e3618331d68d9e74c3307a7..8fff28bfa23c0eac9d8ec19fa75f82b8a2647aaf 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