Author: gonzo
Date: Tue May 26 20:32:14 2015
New Revision: 283579
URL: https://svnweb.freebsd.org/changeset/base/283579

Log:
  Print error message if autoload fails due to missing DTB blob, otherwise
  ubldr just falls back to loader prompt with no apparent reason

Modified:
  head/sys/boot/uboot/lib/module.c

Modified: head/sys/boot/uboot/lib/module.c
==============================================================================
--- head/sys/boot/uboot/lib/module.c    Tue May 26 19:46:41 2015        
(r283578)
+++ head/sys/boot/uboot/lib/module.c    Tue May 26 20:32:14 2015        
(r283579)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to