diff options
author | Simon Glass | 2020-11-09 07:12:25 -0700 |
---|---|---|
committer | Bin Meng | 2020-12-16 13:46:13 +0800 |
commit | 1b6314be50df11d9c07ba3c13618bac9df838d07 (patch) | |
tree | 147ad920dc4a356ca8aeef820e917d3d34564ce9 /include/configs | |
parent | 6c9a83502facf265406bc87f7a6949cc3c66872d (diff) |
x86: coral: Update the boot script
Make use of the new bootargs substitution mechanism and zboot command
syntax.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/chromebook_coral.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/configs/chromebook_coral.h b/include/configs/chromebook_coral.h index d4d32758e99..6e8e8ec1709 100644 --- a/include/configs/chromebook_coral.h +++ b/include/configs/chromebook_coral.h @@ -15,10 +15,13 @@ "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" + "setexpr cmdline_ptr $loader - 2000; " \ + "setexpr.s cmdline *$cmdline_ptr; " \ + "setexpr cmdline gsub %U \\\\${uuid}; " \ + "if part uuid mmc 2:2 uuid; then " \ + "zboot start 100000 0 0 0 $setup cmdline; " \ + "zboot load; zboot setup; zboot dump; zboot go;" \ + "fi" #include <configs/x86-common.h> #include <configs/x86-chromebook.h> |