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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to