summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2024-08-06 14:13:25 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2024-08-06 14:21:06 +0200
commitc4bb9176248a50aa80f96be2cf69631fb73a6e44 (patch)
tree10a9c53b799e55b43890e78467769e5b5c10c856
parenta91959e2a39d8a2cd6f3b966f84a612876711b6f (diff)
downloadu-boot-c4bb9176248a50aa80f96be2cf69631fb73a6e44.tar.gz
u-boot-c4bb9176248a50aa80f96be2cf69631fb73a6e44.tar.bz2
u-boot-c4bb9176248a50aa80f96be2cf69631fb73a6e44.zip
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 <m.szyprowski@samsung.com> Change-Id: If399c8ae19789acf98b014fcac6307fadc564f5d
-rwxr-xr-xscripts/tizen/sd_fusing.py14
1 files changed, 0 insertions, 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']