diff options
author | Sam Lewis <sam.vr.lewis@gmail.com> | 2020-08-03 20:50:49 +1000 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-09-09 10:49:05 +0000 |
commit | 266c136304b00b0776365ad820854c04aab3db13 (patch) | |
tree | 42d8e54bf7c82022557e115d7f11470d3fe8e610 /src/soc/ti/am335x/header.c | |
parent | f58fb59ea0d16e1213e3c9844416dfe9b605a333 (diff) |
soc/ti/am335x: Fix MLO build
Allows the AM335X to boot from the coreboot generated MLO by:
- Fixing the load address in the MLO header to be the start of SRAM
- Fixing the way that the bootblock size is calculated (which is
embedded into the MLO so that the MLO knows how much to load into
SRAM). The previous method relied on parsing cbfstool output - the
output has changed format since this was originally written so this no
longer works. Directly using the filesize of the built binary is
probably a more stable way of doing this.
As part of this, the start addresses of SRAM and DRAM were fixed to be
consistent with the AM335x Technical Reference Manual (spruh73, rev Q).
TEST: Booted Beaglebone Black from MLO placed at offset 0x00 on an SD card
Change-Id: I514d7cda65ddcbf27e78286dc6857c9e81ce6f9e
Signed-off-by: Sam Lewis <sam.vr.lewis@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44381
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/ti/am335x/header.c b/src/soc/ti/am335x/header.c index 9edfdd062b..c0a7589abd 100644 --- a/src/soc/ti/am335x/header.c +++ b/src/soc/ti/am335x/header.c @@ -52,6 +52,6 @@ struct omap_image_headers headers __attribute__((section(".header"))) = { }, .image_header = { .size = (uintptr_t)&header_load_size, - .destination = (uintptr_t)_dram + .destination = (uintptr_t)_sram } }; |