public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] nand_bbt: Out of memory for large block NAND
@ 2009-07-27  0:35 J.C. Wren
  2009-07-27  4:15 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: J.C. Wren @ 2009-07-27  0:35 UTC (permalink / raw)
  To: u-boot

The NAND bad block code is throwing an error at startup of 'nand_bbt: Out of
memory' for large block NAND flash (block size of 128K).
The vmalloc() call is trying to allocate 135,168 bytes.
CONFIG_SYS_MALLOC_LEN is (0x10000 + 128*1024).

Bumping CONFIG_SYS_MALLOC_LEN to (0x20000 + 128*1024) wasn't sufficient,
however (0x40000 + 128*1024) was.

Any recommendations what this should be adjusted to? The system has 256MB of
RAM and a single 512MB NAND.

--jc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] nand_bbt: Out of memory for large block NAND
  2009-07-27  0:35 [U-Boot] nand_bbt: Out of memory for large block NAND J.C. Wren
@ 2009-07-27  4:15 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2009-07-27  4:15 UTC (permalink / raw)
  To: u-boot

On Monday 27 July 2009 02:35:00 J.C. Wren wrote:
> The NAND bad block code is throwing an error at startup of 'nand_bbt: Out
> of memory' for large block NAND flash (block size of 128K).
> The vmalloc() call is trying to allocate 135,168 bytes.
> CONFIG_SYS_MALLOC_LEN is (0x10000 + 128*1024).
>
> Bumping CONFIG_SYS_MALLOC_LEN to (0x20000 + 128*1024) wasn't sufficient,
> however (0x40000 + 128*1024) was.
>
> Any recommendations what this should be adjusted to? The system has 256MB
> of RAM and a single 512MB NAND.

I would use something like 1MB. This will give you enough for other malloc-
intensive things like UBIFS as well.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-27  4:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27  0:35 [U-Boot] nand_bbt: Out of memory for large block NAND J.C. Wren
2009-07-27  4:15 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox