Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  7 Apr 2014 17:25:32 +0800
From:      Xuebing Wang <xbing6@gmail.com>
To:        freebsd-arm@freebsd.org, kientzle@FreeBSD.org
Cc:        xbing6@gmail.com
Subject:   [BeagleBone Black Test PATCH 2/2] BeagleBone Black: in u-boot, force to use default_environment[index]
Message-ID:  <1396862732-4961-3-git-send-email-xbing6@gmail.com>
In-Reply-To: <1396862732-4961-1-git-send-email-xbing6@gmail.com>
References:  <1396862732-4961-1-git-send-email-xbing6@gmail.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1396862732-4961-3-git-send-email-xbing6>