[PATCH v2 00/16] x86: zboot: Enhance the 'zboot' command
Simon Glass
sjg at chromium.org
Sat Aug 29 23:41:41 CEST 2020
This command is currently monolithic and does not support scripts which
want to adjust the boot process. This series updates it to be more like
'bootm', in that it has sub-commands for each stage of the boot. This
allows some stages to be adjusted or skipped.
It also adds a way to dump out the setup block.
With these changes it is possible to boot an x86 Chrome OS image from a
script.
Changes in v2:
- Fix comment about argv[0] in do_zboot_parent()
- Add a comment explaining the logic for a specified setup-base address
Simon Glass (16):
x86: Update the bootparam header
x86: zimage: Use a state struct to hold the state
x86: zimage: Avoid using #ifdef
x86: zboot: Move kernel-version code into a function
x86: zboot: Correct image type
x86: zimage: Disable interrupts just before booting
x86: zboot: Set up a sub-command structure
x86: zboot: Add a 'go' subcommand
x86: zboot: Add an 'info' subcommand
x86: zboot: Add an 'setup' subcommand
x86: zboot: Set environment variables for image locations
x86: zboot: Allow setting a separate setup base address
x86: zboot: Add an option to dump the setup information
x86: zboot: Allow overriding the command line
cros: Update chromium documentation
cros: Add information about booting Chrome OS on x86
README | 4 +
arch/x86/include/asm/bootparam.h | 25 +-
arch/x86/include/asm/e820.h | 1 +
arch/x86/include/asm/zimage.h | 30 +-
arch/x86/lib/bootm.c | 2 +-
arch/x86/lib/zimage.c | 483 +++++++++++++++++++++++++++----
doc/README.chromium | 41 ++-
7 files changed, 520 insertions(+), 66 deletions(-)
--
2.28.0.402.g5ffc5be6b7-goog
More information about the U-Boot
mailing list