console: Add Kconfig to dump pre-bootblock cbmem contents

Hardware / Coreboot - Raul E Rangel [chromium.org] - 17 January 2022 15:46 UTC

Pre-bootblock stages (i.e., VBOOT_STARTS_BEFORE_BOOTBLOCK) might not have the ability to log to the UART, so their console messages are inaccessible until the boot processes gets into the payload or OS. This makes it difficult to debug verstage.

This feature will dump the pre-bootblock CBMEM console immediately after the bootblock console is initialized. I chose to do this in console_init instead of bootblock_soc_init because I wanted to have the pre-bootblock contents dumped before the coreboot bootblock starting message is printed.

BUG=b:213828947 TEST=Boot guybrush with PSP verstage and verify verstage logs are dumped to the UART.

80a7f4e7b6 console: Add Kconfig to dump pre-bootblock cbmem contents
src/console/Kconfig | 8 ++++++++
src/console/init.c | 4 ++++
2 files changed, 12 insertions(+)

Upstream: review.coreboot.org


  • Share