From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] 440EPX is not booting from 1Gb/128MB NAND flash
Date: Fri, 8 Feb 2008 05:50:10 +0100 [thread overview]
Message-ID: <200802080550.10933.sr@denx.de> (raw)
In-Reply-To: <e9eeaac20802071546y4f9584a5q6346c9bfd3c6db91@mail.gmail.com>
On Friday 08 February 2008, Nikhil Gautam wrote:
> I figured couple of more things that needed change
>
> In ndfc.c
> #ifdef CFG_NAND_4_ADDR_CYCLE
> /* Set NandFlash Core Configuration Register */
> /* 2 col x 2 rows */
> out32(base + NDFC_CCR, 0x00002000 | (cs << 24));
> #else
> /* Set NandFlash Core Configuration Register */
> /* 1 col x 2 rows */
> out32(base + NDFC_CCR, 0x00000000 | (cs << 24));
> #endif /* CFG_NAND_4_ADDR_CYCLE */
I don't think this change is needed. This only affects "auto-read" mode, so
the first stage NAND boot loader (IPL), that loads the 4k SPL which we are
talking about right now into memory. But you have to configure the
corresponding bits in the bootstrap EEPROM correctly of course.
> Also for 1Gb NAND flash, the address fetch is different then 256Mb,
> here is what I changed
>
> #ifdef CFG_NAND_4_ADDR_CYCLE
> /* Column address */
> this->write_byte(mtd, 0);
> /* A[7:0] */
> this->write_byte(mtd, (uchar)(page_addr & 0x0f));
> /* A[11:8] */
> this->write_byte(mtd, (uchar)((page_addr >> 4) & 0xff));
> /* A[19:12] */
> /* One more address cycle for devices > 32MiB */
> this->write_byte(mtd, (uchar)((page_addr >> 12) & 0xff));
> /* A[27:20] */
> #else
> /* Column address */
> this->write_byte(mtd, 0);
> /* A[7:0] */
> this->write_byte(mtd, (uchar)(page_addr & 0xff));
> /* A[16:9] */
> this->write_byte(mtd, (uchar)((page_addr >> 8) & 0xff));
> /* A[24:17] */
> #endif
This doesn't match the 4 address cycle mode used for bigger 512k page devices.
I think we may need another config define for 2k page devices.
> Even with these two changes, the board is not booting??
And where does it hang? Did you have a chance to see where execution stops? Is
nand_boot() called at all?
I suggest to debug things extensively with an BDI2000.
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:[~2008-02-08 4:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e9eeaac20802061636t14229054yebb41fa38dc5bffe@mail.gmail.com>
2008-02-07 0:38 ` [U-Boot-Users] 440EPX is not booting from 1Gb/128MB NAND flash Nikhil Gautam
2008-02-07 5:24 ` Stefan Roese
2008-02-07 23:46 ` Nikhil Gautam
2008-02-08 4:50 ` Stefan Roese [this message]
2008-02-08 22:57 ` Nikhil Gautam
2008-02-09 5:51 ` Stefan Roese
2008-02-11 14:43 ` Nikhil Gautam
2008-02-11 16:26 ` Stefan Roese
2008-02-12 1:16 ` Nikhil Gautam
2008-02-12 5:12 ` Stefan Roese
2008-02-12 6:02 ` Wolfgang Denk
2008-02-12 6:11 ` Stefan Roese
2008-02-12 22:31 ` Wolfgang Denk
2008-02-13 23:16 ` Nikhil Gautam
2008-02-14 5:36 ` 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=200802080550.10933.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