[U-Boot] [RFC 09/11] sunxi/nand: Enable UBI and NAND commands

Roy Spliet
2015-06-08T07:38:33Z

Oh yes, thanks for pointing this one out. I increased the malloc pool
during debugging as google hinted towards UBI being rather
memory-hungry, but forgot to double-check whether it was required. I
just did, and as it turns out it really only needs to be increased to
8MiB for UBI to work in my set-up. As we have plenty of memory anyway,
should I allocate some extra headroom for set-ups I haven't tested (e.g.
many partitions, large bad-block tables etc.) and go for 16MiB instead?

Roy

Op 06-06-15 om 17:36 schreef Ian Campbell:
> On Sat, 2015-06-06 at 17:13 +0200, Hans de Goede wrote:
>>> @@ -113,7 +113,7 @@
>>> #endif
>>>
>>> /* 4MB of malloc() pool */
>>> -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (4 << 20))
>>> +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (64 << 20))
>>>
>>> /*
>>> * Miscellaneous configurable options
>> Please update the comment about malloc_pool size to match :)
> ...and explain in the commit log why this needs increasing as part of
> this change.
>
> Ian.
>

--

IMAGINE IT >> MAKE IT

Meet us online at Twitter <http://twitter.com/ultimaker>, Facebook
<http://facebook.com/ultimaker>, Google+ <http://google.com/+Ultimaker>