
12 Jul
2023
12 Jul
'23
1:48 p.m.
On Tue, Jun 20, 2023 at 4:25 PM Simon Glass sjg@chromium.org wrote:
The Linux command line consists of a number of words with optional values. At present U-Boot allows this to be changed using the bootargs environment variable.
But this is quite painful, since the command line can be very long.
Add a function which can adjust a single field in the command line, so that it is easier to make changes before booting.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v2:
- Add comment for copy_in()
- Avoid multiplication on a boolean
- Add a comment as to why @len is needed
boot/bootflow.c | 190 +++++++++++++++++++++++++++++++++++++++++++ include/bootflow.h | 40 +++++++++ test/boot/bootflow.c | 154 +++++++++++++++++++++++++++++++++++ 3 files changed, 384 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com