aboutsummaryrefslogtreecommitdiffstats
path: root/src/console
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-04-10 18:04:04 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-27 20:49:09 +0200
commit6e20e2f16872a276c9af18b7ca11b1ea62bfb820 (patch)
tree44eb1d233d77850daa95f1e445dc0753c223c3e6 /src/console
parent5bdbd004e689157588c01b9689611b826d2382c9 (diff)
downloadcoreboot-6e20e2f16872a276c9af18b7ca11b1ea62bfb820.tar.gz
coreboot-6e20e2f16872a276c9af18b7ca11b1ea62bfb820.tar.xz
coreboot-6e20e2f16872a276c9af18b7ca11b1ea62bfb820.zip
cbmem: add and use a function to dump console buffer
The new function can be compiled in only when serial console is disabled. When invoked, this function initializes the serial interface and dumps the contents of the CBMEM console buffer to serial output. BRANCH=none BUG=chromium:475347 TEST=compiled for different platforms with and without serial console enabled. No actual test of this function yet. Change-Id: Ia8d16649dc9d09798fa6970f2cfd893438e00dc5 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: a38a8254dd788ad188ba2509b9ae117d6f699579 Original-Change-Id: Ib85759a2727e31ba1ca21da7e6c346e434f83b52 Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/265293 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9984 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 28070393d..7d6fa0e36 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -184,6 +184,15 @@ config CONSOLE_CBMEM_BUFFER_SIZE
value (128K or 0x20000 bytes) is large enough to accommodate
even the BIOS_SPEW level.
+config CONSOLE_CBMEM_DUMP_TO_UART
+ depends on !CONSOLE_SERIAL
+ bool "Dump CBMEM console on resets"
+ default n
+ help
+ Enable this to have CBMEM console buffer contents dumped on the
+ serial output in case serial console is disabled and the device
+ resets itself while trying to boot the payload.
+
endif
config CONSOLE_QEMU_DEBUGCON