summaryrefslogtreecommitdiff
path: root/common/uart_buffering.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-05-08 14:34:03 -0700
committerBill Richardson <wfrichar@chromium.org>2012-05-10 17:27:36 -0700
commit8101b7131651e344807d2bd0ec77542b3196a653 (patch)
treedf058964eee0efdfe82cfa2bd0f7e6ef013c45b8 /common/uart_buffering.c
parent058079977e3d94d05d40e44144549b9d4e391144 (diff)
downloadchrome-ec-8101b7131651e344807d2bd0ec77542b3196a653.tar.gz
Enable verified boot for EC firmware
BUG=chrome-os-partner:7459 TEST=manual In the chroot: cd src/platform/ec make BOARD=link The firmware image (build/link/ec.bin) is signed with dev-keys. Reflash the EC and try it, and it should verify and reboot into RW A. Additional tests (setting USE_RO_NORMAL, poking random values into VBLOCK_A or FW_MAIN_A to force RW B to run, etc.) are left as an exercise for the reader. I've done them and they work, though. Change-Id: I29a23ea69aef02a11aebd4af3b043f6864723523 Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/uart_buffering.c')
-rw-r--r--common/uart_buffering.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/uart_buffering.c b/common/uart_buffering.c
index d83b34ea40..5848a30f1d 100644
--- a/common/uart_buffering.c
+++ b/common/uart_buffering.c
@@ -549,6 +549,11 @@ int uart_printf(const char *format, ...)
va_end(args);
return rv;
}
+/* For use when debugging verified boot. We could wrap it with a real function,
+ * but it's rarely needed and this doesn't add any extra code. We have to
+ * declare it here in order for this trick to work. */
+void VbExDebug(const char *format, ...)
+ __attribute__((weak, alias("uart_printf")));
void uart_flush_output(void)