mbox series

[00/16] x86: zboot: Enhance the 'zboot' command

Message ID 20200801160824.17486-1-sjg@chromium.org
Headers show
Series x86: zboot: Enhance the 'zboot' command | expand

Message

Simon Glass Aug. 1, 2020, 4:08 p.m. UTC
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.


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            | 472 +++++++++++++++++++++++++++----
 doc/README.chromium              |  41 ++-
 7 files changed, 509 insertions(+), 66 deletions(-)

Comments

Wolfgang Wallner Aug. 13, 2020, 11:22 a.m. UTC | #1
Hi Simon,

-----"Simon Glass" <sjg@chromium.org> schrieb: -----
> Betreff: [PATCH 00/16] x86: zboot: Enhance the 'zboot' command
> 
> 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.

That series is really appreciated, especially 'zboot dump' :)

regards, Wolfgang