summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2024-08-14 09:49:28 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2024-08-14 13:18:07 +0200
commit53796194e761255221ba543ae210589a2210708a (patch)
treee175808e7f44d3dfe174a1ef7c5ca1318797b836
parentdc1662398c5752c1dd771f6dd15192c9f284ba3d (diff)
downloadu-boot-53796194e761255221ba543ae210589a2210708a.tar.gz
u-boot-53796194e761255221ba543ae210589a2210708a.tar.bz2
u-boot-53796194e761255221ba543ae210589a2210708a.zip
scripts: sd_fusing: Add support for Amlogic Meson based Odroid C4 board
This allows to easily fuse Tizen to SD card or eMMC module in SD card adapter. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Ifea9a29ca23dafab7b9745efb71c7202fa025170
-rwxr-xr-xscripts/tizen/sd_fusing.py37
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,