Hi Tom, I tested the entire patchset with the da850evm booting from SPI flash with SPL (make da850evm_config && make u-boot.ais).
I had to add defines for mem_malloc_init to make it work, please see my comment below. On Wed, Aug 15, 2012 at 11:30 PM, Tom Rini <tr...@ti.com> wrote: > - Convert the non-relocation part of board_init_f to spl_board_init, > turn on CONFIG_SPL_BOARD_INIT in the configs. > - Remove duplicated code. > - Add spl_boot_device() that returns the statically chosen boot device. > > Signed-off-by: Tom Rini <tr...@ti.com> > --- > arch/arm/cpu/arm926ejs/davinci/spl.c | 45 > +++++++------------------------ > arch/arm/include/asm/arch-davinci/spl.h | 28 +++++++++++++++++++ > include/configs/cam_enc_4xx.h | 2 ++ > include/configs/da850evm.h | 2 ++ > include/configs/hawkboard.h | 2 ++ > 5 files changed, 44 insertions(+), 35 deletions(-) > create mode 100644 arch/arm/include/asm/arch-davinci/spl.h [...] > diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h > index e6adb1f..5bb5379 100644 > --- a/include/configs/da850evm.h > +++ b/include/configs/da850evm.h > @@ -313,6 +313,8 @@ > > /* defines for SPL */ > #define CONFIG_SPL > +#define CONFIG_SPL_FRAMEWORK > +#define CONFIG_SPL_BOARD_INIT > #define CONFIG_SPL_SPI_SUPPORT > #define CONFIG_SPL_SPI_FLASH_SUPPORT > #define CONFIG_SPL_SPI_LOAD Please add #define CONFIG_SYS_SPL_MALLOC_START (CONFIG_SYS_TEXT_BASE - CONFIG_SYS_MALLOC_LEN) #define CONFIG_SYS_SPL_MALLOC_SIZE CONFIG_SYS_MALLOC_LEN here, booting from SPI requires malloc. Apart from that it works great, I like it :-) Thank you! Regards, Christian _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot