Patchwork [U-Boot,RFC,44/44] WIP: sandbox: config: Add test config for verified boot

login
register
mail settings
Submitter Simon Glass
Date Jan. 5, 2013, 1:52 a.m.
Message ID <1357350734-13737-45-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/209625/
State Superseded, archived
Headers show

Comments

Simon Glass - Jan. 5, 2013, 1:52 a.m.
This adds a test command to sandbox so that it can be used for running
verified boot tests.

This patch is not intended to be merged.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 include/configs/sandbox.h |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

Patch

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index fb1c583..baf892a 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -24,6 +24,7 @@ 
 
 #define CONFIG_NR_DRAM_BANKS	1
 #define CONFIG_DRAM_SIZE	(128 << 20)
+#define CONFIG_SYS_TEXT_BASE	0
 
 /* Number of bits in a C 'long' on this architecture */
 #define CONFIG_SANDBOX_BITS_PER_LONG	64
@@ -107,8 +108,19 @@ 
 
 #define CONFIG_BOOTARGS ""
 
+#define CONFIG_SANDBOX_ENV \
+	"test=sb load host 0 100 test.fit; " \
+		"fdt addr 100;" \
+		"bootm 100;" \
+		"reset;" \
+		"\0"
+
 #define CONFIG_EXTRA_ENV_SETTINGS	"stdin=serial\0" \
 					"stdout=serial\0" \
-					"stderr=serial\0"
+					"stderr=serial\0" \
+					CONFIG_SANDBOX_ENV
+
+#define CONFIG_BOOTCOMMAND	"run test"
+#define CONFIG_BOOTDELAY	0		/* -1 to disable auto boot */
 
 #endif