summaryrefslogtreecommitdiff
path: root/src/soc/ti/am335x/header.c
diff options
context:
space:
mode:
authorSam Lewis <sam.vr.lewis@gmail.com>2020-08-19 21:14:40 +1000
committerArthur Heymans <arthur@aheymans.xyz>2021-03-30 11:20:56 +0000
commitc25d54b97e0f6debf37e25841f53114b6318063d (patch)
tree838da2eda86b7d06ada7b66bc2819fe8407050e1 /src/soc/ti/am335x/header.c
parentdb3fbf22c2cfd9778092ccbb3d7a97ec872a5ad0 (diff)
mb/ti/beaglebone: Load romstage/ramstage from SD
Adds a "sd_media" boot_device to allow booting from the SD card. This assumes that the generated "MLO" file is placed at a 128KB offset from the start of the SD card, to allow for the MBR etc. to be at the start of the SD card. Placing the MLO file here allows the AM335x boot ROM to load and execute the bootblock stage as well, as 128KB is one of the offsets the boot ROM checks when looking for the next stage to execute. As part of this, a FMD for the Beaglebone has also been defined. It's sized at 32M somewhat arbitrarily, as SD cards could allow for much bigger payloads. TEST: Beaglebone boots from bootblock into romstage. Romstage to ramstage still doesn't work as it needs RAM initialization first. Change-Id: I5f6901217fb974808e84aeb679af2f47eeae30fd Signed-off-by: Sam Lewis <sam.vr.lewis@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44385 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/ti/am335x/header.c')
-rw-r--r--src/soc/ti/am335x/header.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/soc/ti/am335x/header.c b/src/soc/ti/am335x/header.c
index 66d7c2003e..7f42a388ee 100644
--- a/src/soc/ti/am335x/header.c
+++ b/src/soc/ti/am335x/header.c
@@ -6,23 +6,6 @@
#include "header.h"
-struct config_headers {
- // The table of contents.
- struct configuration_header_toc_item toc_chsettings;
- struct configuration_header_toc_item toc_end;
-
- // An inert instance of chsettings.
- struct configuration_header_settings chsettings;
-} __packed;
-
-struct omap_image_headers {
- union {
- struct config_headers config_headers;
- uint8_t bytes[512];
- };
- struct gp_device_header image_header;
-};
-
// A symbol which defines how much of the image the iROM should load.
extern char header_load_size;