]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: coral: Update the boot script
authorSimon Glass <sjg@chromium.org>
Mon, 9 Nov 2020 14:12:25 +0000 (07:12 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 16 Dec 2020 05:46:13 +0000 (13:46 +0800)
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>
include/configs/chromebook_coral.h

index d4d32758e990f69e101814a8ab8a57c469f1207d..6e8e8ec17093d9228eacbdfeaad8c0cda55eb299 100644 (file)
        "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>