[PATCH 11/16] bootstd: cros: Add a function to read info from partition

Simon Glass sjg at chromium.org
Fri Aug 11 15:37:44 CEST 2023


The code to read the ChromiumOS information from the partition is
currently all in one function. It reads the entire kernel, which is
unnecessary unless it is to be booted.

Create a new function which reads just the minimum required data from the
disk, then obtains what it needs from there.

For now this function is not used. Future work will plumb it in.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 boot/bootmeth_cros.c | 121 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 121 insertions(+)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list