PERFORCE change 176674 for review

Rafal Jaworowski raj at FreeBSD.org
Thu Apr 8 16:50:31 UTC 2010


http://p4web.freebsd.org/@@176674?ac=10

Change 176674 by raj at raj_fdt on 2010/04/08 16:49:41

	Show warning if [verbose] booting without DTB loaded.
	
	This only applies when FDT is enabled.

Affected files ...

.. //depot/projects/fdt/sys/boot/uboot/common/metadata.c#6 edit

Differences ...

==== //depot/projects/fdt/sys/boot/uboot/common/metadata.c#6 (text+ko) ====

@@ -366,7 +366,9 @@
 #if defined(LOADER_FDT_SUPPORT)
 	/* Handle device tree blob */
 	fdt_fixup();
-	bfp = file_findfile(NULL, "dtb");
+	if ((bfp = file_findfile(NULL, "dtb")) == NULL &&
+	    (howto & RB_VERBOSE))
+		printf("**WARNING** Booting with no DTB loaded!\n");
 #endif
 	dtbp = bfp == NULL ? 0 : bfp->f_addr;
 	file_addmetadata(kfp, MODINFOMD_DTBP, sizeof dtbp, &dtbp);


More information about the p4-projects mailing list