summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2015-05-26 20:32:14 +0000
committergonzo <gonzo@FreeBSD.org>2015-05-26 20:32:14 +0000
commit0df0890db9a4fd80e3602abb04b1b1ffc7b4152a (patch)
tree84fa540c901ce60437348c86503d6124bbe988c8
parentc32ee7f1c54d414ff19ede25d44ffbc7c4b0956b (diff)
downloadFreeBSD-src-0df0890db9a4fd80e3602abb04b1b1ffc7b4152a.zip
FreeBSD-src-0df0890db9a4fd80e3602abb04b1b1ffc7b4152a.tar.gz
Print error message if autoload fails due to missing DTB blob, otherwise
ubldr just falls back to loader prompt with no apparent reason
-rw-r--r--sys/boot/uboot/lib/module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/uboot/lib/module.c b/sys/boot/uboot/lib/module.c
index ed887b7..0951ed6 100644
--- a/sys/boot/uboot/lib/module.c
+++ b/sys/boot/uboot/lib/module.c
@@ -47,8 +47,10 @@ uboot_autoload(void)
#if defined(LOADER_FDT_SUPPORT)
int err;
- if ((err = fdt_setup_fdtp()) != 0)
+ if ((err = fdt_setup_fdtp()) != 0) {
+ printf("No valid device tree blob found!\n");
return (err);
+ }
#endif
return(0);
OpenPOWER on IntegriCloud