From: Albert ARIBAUD <albert.aribaud@free.fr>
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 17:44:15 +0100 [thread overview]
Message-ID: <4B55E15F.5040505@free.fr> (raw)
In-Reply-To: <b9c1f3ac1001190822w2869b579h2ad94603e213ffd0@mail.gmail.com>
prakash bedge a ?crit :
> Hi Baren and Stefan
>
> 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
> I tested the same using "mw" and "md" commands from uboot prompt for read
> CFI query command. But test failed.
>
> Log details:
> mw 0xfc000000 0xf0
> mw 0xfc000055 0x98
> md 0xfc000010
> fc000010: ffffffff ffffffff ffffffff ffffffff ................
> fc000020: ffffffff ffffffff ffffffff ffffffff ................
> fc000030: ffffffff ffffffff ffffffff ffffffff ................
> fc000040: ffffffff ffffffff ffffffff ffffffff ................
> fc000050: ffffffff ff000000 98ffffff ffffffff ..... ........
> fc000060: ffffffff ffffffff ffffffff ffffffff ................
> fc000070: ffffffff ffffffff ffffffff ffffffff ................
> fc000080: ffffffff ffffffff ffffffff ffffffff ................
> fc000090: ffffffff ffffffff ffffffff ffffffff ................
> fc0000a0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000b0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000c0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000d0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000e0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000f0: ffffffff ffffffff ffffffff ffffffff ................
> fc000100: ffffffff ffffffff ffffffff ffffffff ................
>
> mw 0xfc000000 0xf0
> mw 0xfc0000AA 0x98 ... This is the actual mapping.
> md 0xfc000020
> fc000020: ffffffff ffffffff ffffffff ffffffff ................
> fc000030: ffffffff ffffffff ffffffff ffffffff ................
> fc000040: ffffffff ffffffff ffffffff ffffffff ................
> fc000050: ffffffff ff000000 98ffffff ffffffff ..... ........
> fc000060: ffffffff ffffffff ffffffff ffffffff ................
> fc000070: ffffffff ffffffff ffffffff ffffffff ................
> fc000080: ffffffff ffffffff ffffffff ffffffff ................
> fc000090: ffffffff ffffffff ffffffff ffffffff ................
> fc0000a0: ffffffff ffffffff ffff0000 0098ffff .......... ...
> fc0000b0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000c0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000d0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000e0: ffffffff ffffffff ffffffff ffffffff ................
> fc0000f0: ffffffff ffffffff ffffffff ffffffff ................
> fc000100: ffffffff ffffffff ffffffff ffffffff ................
> fc000110: ffffffff ffffffff ffffffff ffffffff ................
>
> I believe that I am executing correct commands. If wrong please guide me.
>
> M29W128Gh details:
> chip is 16 bit (is this chipwidth?)
> bus is 8 bit (is this portwidth?)
> Algorithm -AMD
> Banks- 1
> sectors - 128
>
> Which u-boot version you used where you do not need to change the uboot code
> for ST make M29W128GH?
> What other configuration or code I need to check in order to identify the
> root cause?
Two things strike me as weird:
1) You're writing 32-bit words to the chip. At most it should be 16-bit
words, possibly even 8-bits. Try mw.w and mw.b.
2) Your writes actually appear where you did them, as if the flash was
already in write mode, which is highly unlikely, or if you had some
cache enabled for this area of your address space.
Amicalement,
--
Albert.
next prev parent reply other threads:[~2010-01-19 16:44 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
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 [this message]
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=4B55E15F.5040505@free.fr \
--to=albert.aribaud@free.fr \
--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