From db608d7d942ad1ad6a52b85869ca35efcb5f6ea8 Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Tue, 6 Aug 2024 14:12:30 +0200 Subject: [PATCH] scripts: sd_fusing: Add entry for raw binary bootcode for LicheePi4A The content of the bootcode will be moved from sd_fusing.py script to the boot images, so add a new raw binary entry for the bootcode.bin file for the LicheePi4A platform. Signed-off-by: Marek Szyprowski Change-Id: If399c8ae19789acf98b014fcac6307fadc564f5c --- sd_fusing.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sd_fusing.py b/sd_fusing.py index 2954838..dc0015e 100755 --- a/sd_fusing.py +++ b/sd_fusing.py @@ -613,6 +613,11 @@ class LicheePi4A(InitParams, SdFusingTargetAB): {"size": 64, "name": "reserved1"}, {"size": 125, "name": "reserved2"}, ] + raw_binary_table = [ + {"name": "bootcode", + "start_sector": 0, # part of protective MBR (bootcode) + "binaries": "bootcode.bin", }, + ] # bootcode written to the protective MBR, aka RV64 'J 0x4400' (sector 34) bootcode = b'\x6f\x40\x00\x40' @@ -660,6 +665,11 @@ class LicheePi4ASuper(InitParams, SdFusingTargetAB): {"size": 64, "name": "reserved1"}, {"size": 125, "name": "reserved2"} ] + raw_binary_table = [ + {"name": "bootcode", + "start_sector": 0, # part of protective MBR (bootcode) + "binaries": "bootcode.bin", }, + ] # bootcode written to the protective MBR, aka RV64 'J 0x4400' (sector 34) bootcode = b'\x6f\x40\x00\x40' -- 2.34.1