[PATCH 05/17] bootstd: Add more debugging to bootmeth_extlinux
Simon Glass
sjg at chromium.org
Wed Mar 19 15:37:59 CET 2025
Add a little more debugging to help figure out why bootflows are not
found.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
boot/bootmeth_extlinux.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/boot/bootmeth_extlinux.c b/boot/bootmeth_extlinux.c
index bb68391d551..71a9009479b 100644
--- a/boot/bootmeth_extlinux.c
+++ b/boot/bootmeth_extlinux.c
@@ -108,13 +108,18 @@ static int extlinux_read_bootflow(struct udevice *dev, struct bootflow *bflow)
loff_t size;
int ret, i;
+ log_debug("starting part %d\n", bflow->part);
ret = uclass_first_device_err(UCLASS_BOOTSTD, &bootstd);
- if (ret)
+ if (ret) {
+ log_debug("no bootstd\n");
return log_msg_ret("std", ret);
+ }
/* If a block device, we require a partition table */
- if (bflow->blk && !bflow->part)
+ if (bflow->blk && !bflow->part) {
+ log_debug("no partition table\n");
return -ENOENT;
+ }
prefixes = bootstd_get_prefixes(bootstd);
i = 0;
@@ -122,10 +127,13 @@ static int extlinux_read_bootflow(struct udevice *dev, struct bootflow *bflow)
do {
prefix = prefixes ? prefixes[i] : NULL;
+ log_debug("try prefix %s\n", prefix);
ret = bootmeth_try_file(bflow, desc, prefix, EXTLINUX_FNAME);
} while (ret && prefixes && prefixes[++i]);
- if (ret)
+ if (ret) {
+ log_debug("no file found\n");
return log_msg_ret("try", ret);
+ }
size = bflow->size;
ret = bootmeth_alloc_file(bflow, 0x10000, ARCH_DMA_MINALIGN,
--
2.43.0
More information about the U-Boot
mailing list