Skip to content

Commit

Permalink
x86: coral: Update the boot script
Browse files Browse the repository at this point in the history
Make use of the new bootargs substitution mechanism and zboot command
syntax.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
  • Loading branch information
sjg20 authored and lbmeng committed Dec 16, 2020
1 parent 6c9a835 commit 1b6314b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/configs/chromebook_coral.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 1b6314b

Please sign in to comment.