From owner-p4-projects@FreeBSD.ORG Thu Apr 8 16:50:31 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 47199106567C; Thu, 8 Apr 2010 16:50:31 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B7D81065672 for ; Thu, 8 Apr 2010 16:50:31 +0000 (UTC) (envelope-from raj@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EEDD08FC26 for ; Thu, 8 Apr 2010 16:50:30 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o38GoUhG080748 for ; Thu, 8 Apr 2010 16:50:30 GMT (envelope-from raj@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o38GoU9l080746 for perforce@freebsd.org; Thu, 8 Apr 2010 16:50:30 GMT (envelope-from raj@freebsd.org) Date: Thu, 8 Apr 2010 16:50:30 GMT Message-Id: <201004081650.o38GoU9l080746@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to raj@freebsd.org using -f From: Rafal Jaworowski To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 176674 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2010 16:50:31 -0000 http://p4web.freebsd.org/@@176674?ac=10 Change 176674 by raj@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);