bootstd: Support automatically setting Linux parameters
authorSimon Glass <sjg@chromium.org>
Wed, 12 Jul 2023 15:04:42 +0000 (09:04 -0600)
committerBin Meng <bmeng@tinylab.org>
Mon, 17 Jul 2023 05:38:35 +0000 (13:38 +0800)
commit33ebcb468109c40ef0dce262be00a4c161265b90
tree7d2a0d0fd11a2d8c9329d2e83fb3f76ed8a39600
parent63b7ccbf9ffe9e79a6762a94eec74c8159f11a14
bootstd: Support automatically setting Linux parameters

Some Linux parameters can be set automatically by U-Boot, if it knows the
device being used. For example, since U-Boot knows the serial console
being used, it can add parameters for earlycon and console.

Add support for this.

Note that this is an experimental feature and we will see how useful it
turns out to be. It is very handy for ChromeOS, since otherwise it is very
difficult to manually determine the UART address or port number,
particularly in a script.

Provide an example of how this is used with ChromeOS.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
boot/bootflow.c
cmd/bootflow.c
doc/usage/cmd/bootflow.rst
include/bootflow.h