Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2015 20:32:14 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283579 - head/sys/boot/uboot/lib
Message-ID:  <201505262032.t4QKWEKk068225@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505262032.t4QKWEKk068225>