On Mon, Jul 25, 2016 at 01:20:39PM +0200, Mike Looijmans wrote: > The devicetrees for various platforms already exceed 16k. Add a define > CONFIG_SYS_FDT_SIZE to specify the FDT size, and default to 16k. This > allows platforms with larger devicetree blobs to boot from NOR.
Ug, yes, that is too small. > Signed-off-by: Mike Looijmans <[email protected]> > --- > common/spl/spl_nor.c | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c > index da2422f..b37a023 100644 > --- a/common/spl/spl_nor.c > +++ b/common/spl/spl_nor.c > @@ -7,6 +7,11 @@ > #include <common.h> > #include <spl.h> > > +/* 16 KiB default size for DT */ > +#ifndef CONFIG_SYS_FDT_SIZE > +# define CONFIG_SYS_FDT_SIZE (16<<10) > +#endif There's not a lot of CONFIG_SPL_NOR_SUPPORT boards today, so can we please move this into the config.h file for all, rather than "hide" this here? Thanks! -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

