import tarfile
import tempfile
-__version__ = "1.1.10"
+__version__ = "1.1.11"
Format = False
Device = ""
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 = [
TARGETS = {
'rpi3': Rpi3,
+ 'odroidc4': OdroidC4,
'rpi4': Rpi4,
'rpi4s': Rpi4Super,
'rpi4aot': Rpi4AoT,