summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-04 19:57:37 +0300
committerBin Meng <bmeng.cn@gmail.com>2020-11-06 04:51:32 +0300
commite0028ab75a8da96b85b210adda323ca2bf3da94f (patch)
tree2b900924fdbdcc30f35bd6b471ae8e74948b2af8 /include
parent9910fc183a165db9d836877cd6d9c07e8ce71338 (diff)
downloadu-boot-e0028ab75a8da96b85b210adda323ca2bf3da94f.tar.xz
x86: Boot coral into Chrome OS by default
Add a script to boot Chrome OS from the internal MMC. This involved adding a few commands and options. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/chromebook_coral.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/configs/chromebook_coral.h b/include/configs/chromebook_coral.h
index a63c3c9eea..d4d32758e9 100644
--- a/include/configs/chromebook_coral.h
+++ b/include/configs/chromebook_coral.h
@@ -11,7 +11,14 @@
#define __CONFIG_H
#define CONFIG_BOOTCOMMAND \
- "fatload mmc 1:c 1000000 syslinux/vmlinuz.A; zboot 1000000"
+ "tpm init; tpm startup TPM2_SU_CLEAR; " \
+ "read mmc 2:2 100000 0 80; setexpr loader *001004f0; " \
+ "setexpr size *00100518; setexpr blocks $size / 200; " \
+ "read mmc 2:2 100000 80 $blocks; setexpr setup $loader - 1000; " \
+ "setexpr cmdline $loader - 2000; " \
+ "part uuid mmc 2:2 uuid; setenv bootargs_U $uuid; " \
+ "zboot start 100000 0 0 0 $setup $cmdline; " \
+ "zboot load; zboot setup; zboot dump; zboot go"
#include <configs/x86-common.h>
#include <configs/x86-chromebook.h>