From c4bb9176248a50aa80f96be2cf69631fb73a6e44 Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Tue, 6 Aug 2024 14:13:25 +0200 Subject: scripts: sd_fusing: Remove code for handling hardcoded bootcode Remove the code for handling hardcoded bootcode as it is no longer used. Signed-off-by: Marek Szyprowski Change-Id: If399c8ae19789acf98b014fcac6307fadc564f5d --- scripts/tizen/sd_fusing.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/tizen/sd_fusing.py b/scripts/tizen/sd_fusing.py index a0c6bef867..30abf4c46d 100755 --- a/scripts/tizen/sd_fusing.py +++ b/scripts/tizen/sd_fusing.py @@ -135,8 +135,6 @@ class SdFusingTarget: self.part_table[self.user_partition]["size"] = self.user_size self.label = Label(self.part_table, ltype) - if not hasattr(self, 'bootcode'): - self.bootcode = None self.binaries = self._get_binaries('binaries') def apply_partition_sizes(self, partition_sizes): @@ -625,9 +623,6 @@ class LicheePi4A(InitParams, SdFusingTargetAB): "binaries": "bootcode.bin", }, ] - # bootcode written to the protective MBR, aka RV64 'J 0x4400' (sector 34) - bootcode = b'\x6f\x40\x00\x40' - def __init__(self, device, args): self.user_partition = 4 self.reserved_space = 5 @@ -677,9 +672,6 @@ class LicheePi4ASuper(InitParams, SdFusingTargetAB): "binaries": "bootcode.bin", }, ] - # bootcode written to the protective MBR, aka RV64 'J 0x4400' (sector 34) - bootcode = b'\x6f\x40\x00\x40' - def __init__(self, device, args): self.reserved_space = 8 self.user_partition = 4 @@ -902,12 +894,6 @@ def mkpart(args, target): logging.error(f"New partition table:\n" + str(target.label)) sys.exit(1) - if target.bootcode: - logging.debug("Writing bootcode\n") - with open(Device, "wb") as f: - f.write(target.bootcode) - f.close - # Run `udevadm settle` to ensure that partition change made by `sfdisk` is completely reflected in userspace. logging.info("Waiting for the udev event queue to empty...") argv = ['udevadm', 'settle'] -- cgit v1.2.3