All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Latest u-boot release on BeagleBone Black for FreeBSD
@ 2014-04-08  8:52 Xuebing Wang
  2014-05-04 11:33 ` Jeroen Hofstee
  0 siblings, 1 reply; 8+ messages in thread
From: Xuebing Wang @ 2014-04-08  8:52 UTC (permalink / raw)
  To: u-boot

Hi u-boot community,

I am trying to port u-boot (release u-boot-2014.04-rc3.tar.bz2) to 
FreeBSD on BeagleBone Black.

In FreeBSD, there is a u-boot loader (named ubldr), which can call 
u-boot API to get fdt (Flat Device Tree) data.

I have to comment out below 3 lines, in order to get correct fdt data in 
FreeBSD ubldr from u-boot. Would you please advice what is the best way 
to fix this?

In file common/env_common.c:
const uchar *env_get_addr(int index)
{
//      if (gd->env_valid)
//              return (uchar *)(gd->env_addr + index);
//      else
                 return &default_environment[index];
}

-- 
Thanks,
Xuebing Wang

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot] Latest u-boot release on BeagleBone Black for FreeBSD
@ 2014-04-07  7:16 Xuebing Wang
  2014-04-08 13:00 ` Ian Lepore
  0 siblings, 1 reply; 8+ messages in thread
From: Xuebing Wang @ 2014-04-07  7:16 UTC (permalink / raw)
  To: u-boot

Hi u-boot community,

I am trying to port u-boot (release u-boot-2014.04-rc3.tar.bz2) to 
FreeBSD on BeagleBone Black.

In FreeBSD, there is a u-boot loader (named ubldr), which can call 
u-boot API to get fdt (Flat Device Tree) data. Example is:
-- fdt header

I have to comment out below 3 lines, in order to get correct fdt data in 
FreeBSD ubldr from u-boot. Would you please advice what is the best way 
to fix this?

In file common/env_common.c:
const uchar *env_get_addr(int index)
{
//      if (gd->env_valid)
//              return (uchar *)(gd->env_addr + index);
//      else
                 return &default_environment[index];
}

-- 
Thanks,
Xuebing Wang

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-07 15:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-08  8:52 [U-Boot] Latest u-boot release on BeagleBone Black for FreeBSD Xuebing Wang
2014-05-04 11:33 ` Jeroen Hofstee
2014-05-07  2:09   ` Xuebing Wang
2014-05-07 14:15     ` Ian Lepore
2014-05-07 15:02     ` Tim Kientzle
2014-05-07 15:17       ` Tim Kientzle
  -- strict thread matches above, loose matches on Subject: below --
2014-04-07  7:16 Xuebing Wang
2014-04-08 13:00 ` Ian Lepore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.