From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Boot 440EPx from NAND
Date: Fri, 21 Dec 2007 06:58:05 +0100 [thread overview]
Message-ID: <200712210658.05786.sr@denx.de> (raw)
In-Reply-To: <406A31B117F2734987636D6CCC93EE3C02A2D91E@ehost011-3.exch011.intermedia.net>
On Thursday 20 December 2007, Leonid wrote:
> I am trying to boot 440EPx board similar to Seqouia from NAND. NAND
> flash is different from Sequoia's though, it has page size 2K, sector
> size 128K and it's 1Gb (128MB).
>
> I set following parameters in my <board>.h file:
>
> #define CFG_NAND_U_BOOT_SIZE (600 << 10) /* Size of RAM U-Boot
> image */
>
> /*
> * Now the NAND chip has to be defined (no autodetection used!)
> */
> #define CFG_NAND_PAGE_SIZE (2048) /* NAND chip page size
> */
> #define CFG_NAND_BLOCK_SIZE (128 << 10) /* NAND chip block size
> */
> #define CFG_NAND_PAGE_COUNT (64) /* NAND chip page count
> */
> #define CFG_NAND_BAD_BLOCK_POS (5) /* Location of bad block
> marker */
> #define CFG_NAND_4_ADDR_CYCLE /* Fourth addr used
> (>32MB) */
>
> but it doesn't boot.
>
> Any suggestion?
The current code is tested only for 512byte page size NAND devices. Very
likely it needs some changes for 2k devices. Especially the ECC stuff will
need some changes.
> What is CFG_NAND_PAGE_COUNT anyway?
CFG_NAND_PAGE_SIZE defines the number of pages per block. For example a
64MByte NAND chips has a page size of 512 bytes and a block size of 16kbytes.
This makes 16k/512 == 32.
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
=====================================================================
next prev parent reply other threads:[~2007-12-21 5:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 17:56 [U-Boot-Users] 4xx ethernet bringup shami Allam
2007-12-19 19:21 ` Stefan Roese
2007-12-20 11:52 ` shami Allam
2007-12-20 19:57 ` Wolfgang Denk
2007-12-20 20:11 ` [U-Boot-Users] Boot 440EPx from NAND Leonid
2007-12-21 5:58 ` Stefan Roese [this message]
2007-12-21 6:56 ` Leonid
2007-12-21 5:44 ` [U-Boot-Users] 4xx ethernet bringup Stefan Roese
2007-12-21 12:11 ` shami Allam
2007-12-21 12:26 ` Stefan Roese
2007-12-21 12:34 ` raj
2007-12-21 13:04 ` raj
2007-12-21 16:03 ` shami Allam
2007-12-22 10:01 ` shami Allam
2007-12-22 11:27 ` Stefan Roese
2007-12-22 12:33 ` shami Allam
2007-12-27 15:38 ` Stefan Roese
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=200712210658.05786.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