I'm trying to make some changes to the latest (as of now) upstream u-boot for the da850evm (for now). One trivial, one less so.
The trivial change is getting rid of the warning about not using the new "Generic Board" framework. Adding
#define CONFIG_SYS_GENERIC_BOARD
to da850evm.h gets rid of that with no obvious bad effects. Has anyone else enabled that and seen any problems?
The less trivial change is enabling device tree support. Enabling it is easy enough, by adding
#define CONFIG_OF_LIBFDT
And bootm suddenly handles a separate fdt. However, doing so also wrecks the environment. On first boot you get the not-unexpected "bad CRC" warning. But if I save the environment, the next (and subsequent boots) don't work properly - e.g.
U-Boot SPL 2015.01-rc1 (Nov 27 2014 - 14:30:26)
U-Boot 2015.01-rc1 (Nov 27 2014 - 14:30:26)
I2C: ready
DRAM: 64 MiB
WARNING: Caches not enabled
MMC: davinci: 0
SF: Detected M25P64 with page size 256 Bytes, erase size 64 KiB, total 8 MiB
In: serial
Out: serial
Err: serial
SF: Detected M25P64 with page size 256 Bytes, erase size 64 KiB, total 8 MiB
Warning: Invalid MAC address read from SPI flash
Net: DaVinci-EMAC
Error: DaVinci-EMAC address not set.
U-Boot > help
data abort
pc : [<c108ffd8>] lr : [<c10900b4>]
sp : c3e5f838 ip : 00000000 fp : c3e5fda4
r10: c10b1f28 r9 : c3e5ff08 r8 : 0000000e
r7 : c10b22c4 r6 : c10aa2a0 r5 : 00000000 r4 : 0000001b
r3 : c10b8f70 r2 : 00000001 r1 : c3e5f840 r0 : ffffffff
Flags: Nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
resetting ...
Anyone have any insight into what's going wrong?