From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 1 Aug 2020 10:08:08 -0600 Subject: [PATCH 00/16] x86: zboot: Enhance the 'zboot' command Message-ID: <20200801160824.17486-1-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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(-) -- 2.28.0.163.g6104cc2f0b6-goog