From owner-freebsd-arm@FreeBSD.ORG Mon Apr 7 09:25:52 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C92A746; Mon, 7 Apr 2014 09:25:52 +0000 (UTC) Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com [IPv6:2607:f8b0:400e:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F41910E; Mon, 7 Apr 2014 09:25:52 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id r10so6268807pdi.16 for ; Mon, 07 Apr 2014 02:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=048RJhdgkA5CoOnvGBXGoMy0wgd9dxwh6NxbR5uDows=; b=ztzK376wT/rXwXM9TAVNLQcFlOB5It5X9O2pVFmAuQ+yD7byh0kHptoJkO6sM99a0D RNRgA/dlHeyt8RLkQWzIGxzB5TSTWie7zeoqv7w+r+rQ9Kq0uybYBJmW5AsS2ymwQIUb xBfcIC3RBuBLtaJ1iWl1jIQWCJT5MbJq2YzE9lHRiydBYU4UEBrgvmEhF3s39RbQXkdU MnqU1vcmdd0BfwnBT+PXb87e0OFwVx7G4r/euGb6fxuS2ggcb4uTj/xv7DEeulsQKgRa LlS6rdrhz/QAUKjc4m8Q2y2mRAf8gxA9XCrUUwmMkSLkcyp14aatN0B98aJVUL8gRRDL ru9g== X-Received: by 10.68.133.163 with SMTP id pd3mr541163pbb.166.1396862752115; Mon, 07 Apr 2014 02:25:52 -0700 (PDT) Received: from localhost.localdomain ([216.131.71.149]) by mx.google.com with ESMTPSA id vx10sm83226003pac.17.2014.04.07.02.25.49 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 02:25:51 -0700 (PDT) From: Xuebing Wang To: freebsd-arm@freebsd.org, kientzle@FreeBSD.org Subject: [BeagleBone Black Test PATCH 2/2] BeagleBone Black: in u-boot, force to use default_environment[index] Date: Mon, 7 Apr 2014 17:25:32 +0800 Message-Id: <1396862732-4961-3-git-send-email-xbing6@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396862732-4961-1-git-send-email-xbing6@gmail.com> References: <1396862732-4961-1-git-send-email-xbing6@gmail.com> Cc: xbing6@gmail.com X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 09:25:52 -0000 Without this patch, ubldr can NOT get fdt (Flat Device Tree) by calling u-boot API, thus can not boot FreeBSD kernel. TODO: This is a test patch, needs to find a better way. --- common/env_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/env_common.c b/common/env_common.c index c0bfc2f..2fd399f 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -59,9 +59,9 @@ uchar env_get_char(int index) const uchar *env_get_addr(int index) { - if (gd->env_valid) - return (uchar *)(gd->env_addr + index); - else +// if (gd->env_valid) +// return (uchar *)(gd->env_addr + index); +// else return &default_environment[index]; } -- 1.9.0