From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] nand_bbt: Out of memory for large block NAND
Date: Mon, 27 Jul 2009 06:15:12 +0200 [thread overview]
Message-ID: <200907270615.12173.sr@denx.de> (raw)
In-Reply-To: <17434f2e0907261735g37584534ub32dd47783cd1ef8@mail.gmail.com>
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
=====================================================================
prev parent reply other threads:[~2009-07-27 4:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200907270615.12173.sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox