diff options
-rwxr-xr-x | scripts/tizen/sd_fusing.py | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/scripts/tizen/sd_fusing.py b/scripts/tizen/sd_fusing.py index 917e381a8b..e894e01af7 100755 --- a/scripts/tizen/sd_fusing.py +++ b/scripts/tizen/sd_fusing.py @@ -15,7 +15,7 @@ import sys import tarfile import tempfile -__version__ = "1.1.10" +__version__ = "1.1.11" Format = False Device = "" @@ -298,6 +298,40 @@ class Rpi3(InitParams, SdFusingTarget): self.user_partition = 4 super().__init__(device, "dos") +class OdroidC4(InitParams, SdFusingTarget): + long_name = "Odroid C4" + part_table = [ + {"size": 128, "name": "boot", "start": 4, "ptype": "0xe", "bootable": True, + "binaries": "boot.img"}, + {"size": 3072, "name": "rootfs", + "binaries": "rootfs.img"}, + {"size": 1344, "name": "system-data", + "binaries": "system-data.img"}, + {"size": None, "ptype": "5", "name": "extended", "start": 4548}, + {"size": None, "name": "user", + "binaries": "user.img"}, + {"size": 100, "name": "modules", + "binaries": "modules.img"}, + {"size": 32, "name": "ramdisk", + "binaries": "ramdisk.img"}, + {"size": 32, "name": "ramdisk-recovery", + "binaries": "ramdisk-recovery.img"}, + {"size": 8, "name": "inform", "fstype": "ext4"}, + {"size": 64, "name": "hal", + "binaries": "hal.img"}, + {"size": 128, "name": "reserved2"}, + ] + raw_binary_table = [ + {"name": "bootloader", + "start_sector": 1, + "binaries": "u-boot-c4.bin", }, + ] + + def __init__(self, device, args): + self.reserved_space = 12 + self.user_partition = 4 + super().__init__(device, "dos") + class Rpi4Super(InitParams, SdFusingTargetAB): long_name = "Raspberry Pi 4 w/ super partition" part_table = [ @@ -785,6 +819,7 @@ class X86emu64(X86emu): TARGETS = { 'rpi3': Rpi3, + 'odroidc4': OdroidC4, 'rpi4': Rpi4, 'rpi4s': Rpi4Super, 'rpi4aot': Rpi4AoT, |