[U-Boot-Users] Boot 440EPx from NAND
Stefan Roese
sr at denx.de
Fri Dec 21 06:58:05 CET 2007
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
=====================================================================
More information about the U-Boot
mailing list