From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xuebing Wang Date: Mon, 07 Apr 2014 15:16:14 +0800 Subject: [U-Boot] Latest u-boot release on BeagleBone Black for FreeBSD Message-ID: <534250BE.9030202@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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