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>
38 lines
584 B
Plaintext
38 lines
584 B
Plaintext
## SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
if BOARD_TI_BEAGLEBONE
|
|
|
|
config BOARD_SPECIFIC_OPTIONS
|
|
def_bool y
|
|
select SOC_TI_AM335X
|
|
select BOARD_ROMSIZE_KB_32768
|
|
select MISSING_BOARD_RESET
|
|
select COMMONLIB_STORAGE
|
|
select COMMONLIB_STORAGE_SD
|
|
|
|
config MAINBOARD_DIR
|
|
string
|
|
default "ti/beaglebone"
|
|
|
|
config MAINBOARD_PART_NUMBER
|
|
string
|
|
default "Beaglebone"
|
|
|
|
config MAX_CPUS
|
|
int
|
|
default 1
|
|
|
|
config DRAM_SIZE_MB
|
|
int
|
|
default 256
|
|
|
|
config UART_FOR_CONSOLE
|
|
int
|
|
default 0
|
|
|
|
config FMDFILE
|
|
string
|
|
default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/board.fmd"
|
|
|
|
endif # BOARD_TI_BEAGLEBONE
|