From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-boot running on DDR fails to detect the CFI compliant flash
Date: Tue, 19 Jan 2010 08:58:27 -0500 [thread overview]
Message-ID: <4B55BA83.4050505@ge.com> (raw)
In-Reply-To: <201001191449.27687.sr@denx.de>
Stefan Roese wrote:
> On Tuesday 19 January 2010 07:24:10 prakash bedge wrote:
>> I have tried the code in the URL link you have provided. But still I am
>> facing the same problem. I am getting the error in "flash_detect_cfi" as
>> flash not found. It fails at initial stage at read CFI query command.
>> The code you have provided is for M29W128GL.(Numonix). Will this work for
>> M29W128GH (STMIcrotronics)?
>
> Frankly, I don't know. You need to check the datasheets, to see if there are
> some differences.
>
>> I believe Uboot support M29W128GH flash. I am using this flash chip in 16 x
>> 8 bit mode.
>> The URL I provided is available under the thread:
>> "[U-Boot] Query: Does Uboot support CFI flash driver forM29W128GH".
>> Can there be an endianness issue, as I am running uboot from SDRAM and in
>> Big endian mode?
>
> No, I don't think that this is an endian issue. All PPC4xx platforms are doing
> it the same way. This must be a different problem.
>
> Did you check that the NOR chip is really selected (chip select signal etc on
> the FLASH chip via oscilloscope)? Are the addresses correct for the query
> (etc) commands?
>
> Cheers,
> Stefan
IIRC, Prakash added debug print statements that showed the "Q" of the
"QRY" being read, but did not show anything more. As a result, it was
impossible to tell why the CFI detect was not working.
What I find is *VERY* helpful when trying to understand flash control
issues is to *manually* do the QRY write sequence (see your flash data
sheet) by using memory write/read commands from the u-boot command
prompt. This way I can quickly try different byte widths, lanes, etc.
for the writes and see the full QRY response from the memory. Usually
the problem is a simple misunderstanding of how the chip is configured
or the hardware is wired (beware of hardware designers doing "endian
fixes").
Good luck,
gvb
next prev parent reply other threads:[~2010-01-19 13:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-15 13:23 [U-Boot] U-boot running on DDR fails to detect the CFI compliant flash prakash bedge
2010-01-18 8:45 ` Stefan Roese
2010-01-19 6:24 ` prakash bedge
2010-01-19 13:49 ` Stefan Roese
2010-01-19 13:58 ` Jerry Van Baren [this message]
2010-01-19 14:19 ` Wolfgang Denk
2010-01-19 16:22 ` prakash bedge
2010-01-19 16:39 ` Stefan Roese
2010-01-19 16:44 ` Albert ARIBAUD
2010-01-20 9:44 ` prakash bedge
2010-01-20 13:05 ` Jerry Van Baren
2010-01-21 14:23 ` prakash bedge
2012-02-15 8:14 ` Francisco
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=4B55BA83.4050505@ge.com \
--to=gerald.vanbaren@ge.com \
--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