diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 20:47:56 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-24 02:11:40 +0300 |
commit | 7638c85190dccc2dfacb86fc3b70deb165337b4b (patch) | |
tree | 75c5ef7a384c65309bdfeb2d7b1904a5ce662b10 /cmd | |
parent | 3e18860e3f3425bd2649e62cd2635bd008fe5f4d (diff) | |
download | u-boot-7638c85190dccc2dfacb86fc3b70deb165337b4b.tar.xz |
bootstd: Include the device tree in the bootflow
Some bootmeths provide a way to load a device tree as well as the base
OS image. Add a way to store this in the bootflow. Update the
'bootflow info' command to show this information.
Note that the device tree is not allocated, but instead is stored at
an address provided by an environment variable. This may need to be
adjusted at some point, but for now it works well and fits in with the
existing distro-boot scripts.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bootflow.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c index 2b6ed26fdc..56dd35b69c 100644 --- a/cmd/bootflow.c +++ b/cmd/bootflow.c @@ -344,6 +344,12 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc, printf("Logo size: %x (%d bytes)\n", bflow->logo_size, bflow->logo_size); } + printf("FDT: %s\n", bflow->fdt_fname); + if (bflow->fdt_fname) { + printf("FDT size: %x (%d bytes)\n", bflow->fdt_size, + bflow->fdt_size); + printf("FDT addr: %lx\n", bflow->fdt_addr); + } printf("Error: %d\n", bflow->err); if (dump && bflow->buf) { /* Set some sort of maximum on the size */ |