From: David Hawkins <dwh@ovro.caltech.edu>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] minimum bdi config to read flash on 85xx
Date: Thu, 06 Sep 2007 19:00:06 -0700 [thread overview]
Message-ID: <46E0B0A6.8050306@ovro.caltech.edu> (raw)
In-Reply-To: <50d8dde80709061841o61fa17ecmcebee9229c696190@mail.gmail.com>
Hi Luiz,
> First of all, thanks for helping us!!! You are amazing guys!
There is a saying 'what goes around, comes around ...'.
So by helping you now, I hope someone helps me later :)
> Yes, we want to boot from flash. But firstly, we want to
> validate our hardware :)
Always helps to walk before running :)
> So, let me see if I understood you synchronizing some points:
>
> 1- In order to validate my flash circuitry, I don't need LA pins. I'm
> able to validate it using just simple FCI commands. Am I right?
Yes.
0. Scope out the pins and check the chip-select and write
pulse timing matches that specified by the Flash.
1. Try reading the manufacturer info.
> I'm not familiar with these command. Probably Robert knows it. But he is
> out of the office until tuesday. Can you please give some examples?
Its in the data sheet. See comments below.
> 2- LA pins are necessary just in case I want to boot from flash. Is it?
Yes. LA[27:31] need to be connected to the boot Flash.
> 3- Our flash is a S29GL01GP MirrorBit. I'm send you our flash schematic
> and datasheet. There you can see that WP# is tied high, BYTE# is tied
> high, RESET# is high (a FPGA controls this pin) and that there is no
> address pin floating.
Ok. I plan to use the same part.
Download the data sheet; eg. I seem to have a copy called
s29gl-p_00_a5_e.pdf
Look near the end of the document for the 'Memory Array Command
Definitions' table, x16.
Eg. to read the manufacturer ID perform the following sequence,
where wm.b means write memory byte, but you'll need to replace
this with the BDI2000 equivalent, which I can't recall at the
moment :) (and the 0x might be optional too). The point is
this will help you understand how to use the table:
wm.b 0x555 0xAA
wm.b 0x2AA 0x55
wm.b 0x555 0x90
wm.b 0x000 0x01
and then read say 8 bytes from the flash
md.b 8
Somewhere in the data sheet it'll tell you what the Spansion
manufacturer ID is supposed to be.
The 0x555 0xAA 0x2AA 0x55 is called the unlock sequence,
the remaining bytes are then command codes.
If you get the low-level routines to give you valid results,
then you can try higher-level Flash commands to see where
you get differing results.
You can use this method to program Flash bytes too.
Cheers,
Dave
next prev parent reply other threads:[~2007-09-07 2:00 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-04 18:11 [U-Boot-Users] minimum bdi config to read flash on 85xx robert lazarski
2007-09-04 18:26 ` David Hawkins
2007-09-04 19:45 ` Ben Warren
2007-09-04 20:50 ` robert lazarski
2007-09-04 21:12 ` Ben Warren
2007-09-04 21:15 ` David Hawkins
2007-09-05 15:05 ` robert lazarski
2007-09-05 16:35 ` David Hawkins
2007-09-05 19:53 ` robert lazarski
2007-09-05 21:19 ` David Hawkins
2007-09-06 21:03 ` Luiz Neto
2007-09-06 21:20 ` Ben Warren
2007-09-06 22:12 ` David Hawkins
2007-09-06 22:06 ` David Hawkins
2007-09-07 1:41 ` Luiz Neto
2007-09-07 2:00 ` David Hawkins [this message]
[not found] ` <50d8dde80709072035j3c066e81wab5216e78d47f89c@mail.gmail.com>
2007-09-08 3:46 ` David Hawkins
2007-09-12 17:23 ` robert lazarski
2007-09-12 18:00 ` David Hawkins
2007-09-12 18:13 ` Jerry Van Baren
2007-09-12 18:23 ` David Hawkins
2007-09-12 18:29 ` David Hawkins
2007-09-12 18:39 ` Jerry Van Baren
2007-09-12 18:44 ` David Hawkins
2007-09-12 19:19 ` robert lazarski
2007-09-12 19:41 ` David Hawkins
2007-09-12 20:06 ` Jerry Van Baren
2007-09-12 20:16 ` David Hawkins
2007-09-12 20:40 ` Jerry Van Baren
2007-09-12 21:39 ` David Hawkins
2007-09-14 18:21 ` robert lazarski
2007-09-14 18:34 ` Jerry Van Baren
2007-09-14 18:43 ` Ben Warren
2007-09-14 19:12 ` David Hawkins
2007-09-14 20:05 ` robert lazarski
2007-09-14 20:14 ` Ben Warren
2013-05-27 13:01 ` [U-Boot] " Monica
2013-05-27 13:37 ` Fabio Estevam
2013-05-28 5:35 ` Monica
2007-09-14 20:16 ` [U-Boot-Users] " Jerry Van Baren
2007-09-14 20:34 ` Leon Woestenberg
2007-09-14 21:04 ` Scott Mann
2007-09-14 20:31 ` David Hawkins
2007-09-06 22:43 ` Clemens Koller
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=46E0B0A6.8050306@ovro.caltech.edu \
--to=dwh@ovro.caltech.edu \
--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