[BeagleBone Black Test PATCH 2/2] BeagleBone Black: in u-boot, force to use default_environment[index]

Xuebing Wang xbing6 at gmail.com
Mon Apr 7 09:25:52 UTC 2014


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



More information about the freebsd-arm mailing list