Skip to content

bootstd: Improve ChromiumOS support

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16bootstd: cros: Correct reporting of I/O errorsboot/bootmeth_cros.c+2 -21 reply
2/16bootstd: cros: Move partition reading into a functionboot/bootmeth_cros.c+50 -161 reply
3/16bootstd: cros: Bring in some ChromiumOS structuresboot/bootmeth_cros.c boot/bootmeth_cros.h+201 -21 reply
4/16bootstd: cros: Support a kernel on either partitionboot/bootmeth_cros.c+14 -71 reply
5/16bootstd: cros: Decode some kernel preamble fieldsboot/bootmeth_cros.c+37 -171 reply
6/16bootstd: cros: Simplify setup and cmdline expressionsboot/bootmeth_cros.c+10 -101 reply
7/16bootstd: Move common zimage functions to bootm.harch/x86/include/asm/zimage.h boot/bootmeth_cros.c include/bootm.h+29 -301 reply
8/16bootstd: cros: Add docs for the kernel layoutboot/bootmeth_cros.c+29 -01 reply
9/16bootstd: cros: Add private info for ChromiumOSboot/bootmeth_cros.c+42 -131 reply
10/16bootstd: Add private bootmeth data to the bootflowboot/bootflow.c include/bootflow.h+3 -01 reply
11/16bootstd: cros: Add a function to read info from partitionboot/bootmeth_cros.c+121 -01 reply
12/16bootstd: cros: Add a function to read a kernelboot/bootmeth_cros.c+39 -01 reply
13/16bootstd: cros: Split up reading info and kernelboot/bootmeth_cros.c+23 -731 reply
14/16bootstd: Allow display of the x86 setup informationarch/x86/include/asm/zimage.h arch/x86/lib/zimage.c cmd/bootflow.c +3 more+86 -181 reply
15/16bootstd: Add a command to read all files for a bootflowboot/bootflow.c boot/bootmeth-uclass.c boot/bootmeth_cros.c +4 more+186 -30 replies
16/16bootstd: cros: Add ARM supportboot/Kconfig boot/bootm.c boot/bootmeth_cros.c +1 more+57 -81 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/16] bootstd: Improve ChromiumOS support

The ChromiumOS bootmeth is fairly basic at present. It is able to boot only x86 kernels and contains quite a few hard-coded offsets.

This series tidies it up by bringing in some vboot structures and adding support for ARM.

It adds a few more features to bootstd, including display of x86 setup information.

So far this does not actually boot correctly on any ARM Chromebook:

jerry - hangs when booting kernel
bob - Bad Linux ARM64 Image magic! with lz4-compressed kernel

Further work can address these issues.

Simon Glass (16):
bootstd: cros: Correct reporting of I/O errors
bootstd: cros: Move partition reading into a function
bootstd: cros: Bring in some ChromiumOS structures
bootstd: cros: Support a kernel on either partition
bootstd: cros: Decode some kernel preamble fields
bootstd: cros: Simplify setup and cmdline expressions
bootstd: Move common zimage functions to bootm.h
bootstd: cros: Add docs for the kernel layout
bootstd: cros: Add private info for ChromiumOS
bootstd: Add private bootmeth data to the bootflow
bootstd: cros: Add a function to read info from partition
bootstd: cros: Add a function to read a kernel
bootstd: cros: Split up reading info and kernel
bootstd: Allow display of the x86 setup information
bootstd: Add a command to read all files for a bootflow
bootstd: cros: Add ARM support

 arch/x86/include/asm/zimage.h |  37 ----
 arch/x86/lib/zimage.c         |   8 +-
 boot/Kconfig                  |   4 +-
 boot/bootflow.c               |  15 ++
 boot/bootm.c                  |  37 ++++
 boot/bootmeth-uclass.c        |  10 +
 boot/bootmeth_cros.c          | 363 ++++++++++++++++++++++++++++------
 boot/bootmeth_cros.h          | 197 ++++++++++++++++++
 cmd/bootflow.c                |  47 ++++-
 doc/usage/cmd/bootflow.rst    | 139 ++++++++++++-
 include/bootflow.h            |  15 +-
 include/bootm.h               |  47 +++++
 include/bootmeth.h            |  23 +++
 13 files changed, 836 insertions(+), 106 deletions(-)
 create mode 100644 boot/bootmeth_cros.h
Signature · 1 line
2.41.0.487.g6d72f3e995-goog