summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2025-03-05 17:25:01 -0700
committerTom Rini <[email protected]>2025-03-18 13:12:15 -0600
commit1592ff27d502efdc79992f57c07ff0cf81bc9305 (patch)
tree2b2283956104544fe2eb87c441af05a632dfb3cd /cmd
parent4e36b1739b03e81ff395959b58fe33e67c4d2233 (diff)
bootstd: Correct display of kernel version
The address of the bzImage is not recorded in the bootflow, so we cannot actually locate the version at present. Handle this case, to avoid showing invalid data. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootflow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 72b06a42e4d..da17fd93b8b 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -383,6 +383,8 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc,
struct bootm_info bmi;
bootm_init(&bmi);
+ /* we don't know this at present */
+ bootm_x86_set(&bmi, bzimage_addr, 0);
zimage_dump(&bmi, bflow->x86_setup, false);
return 0;