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: Wed, 12 Sep 2007 12:41:54 -0700 [thread overview]
Message-ID: <46E84102.3010800@ovro.caltech.edu> (raw)
In-Reply-To: <f87675ee0709121219q481c54dej4a6383be07b78b2b@mail.gmail.com>
Hi Robert,
> OK guys I have a sense of humour
Its a pre-requisite; that, and tough skin ;)
> In the meantime we'll be spending quality with our
> manuals. We have OE and CE toggling on our erase, mm,
> and prog commands
Thats definitely a good start.
> but we cannot read the values we write with mm.
Were you able to connect a logic analyzer to the bus
to confirm bus values versus processor values?
> We cannot read the manufactorer id on 0xfc000000.
0xFC00_0000 is 64MB from the end of memory.
If accesses to this address generate Flash CE# and OE#,
then next I would check the timing.
Don't move onto anything until you can read the
manufacturer ID, you've found a problem, so you
need to figure it out here first.
> Beyond that the magic numbers are for the first and second
> unlock cycles and for autoselect, we cannot understand why
> bdi configs use 0x0600 and 0x00d0 for their magic
> numbers - which are not the same magic numbers in the
> manuals best as we can tell.
It depends on how the Flash is wired. As far as data
wires go, Flash[15:0] can connect to Processor[15:0]
or Processor[0:15]. Whatever the processor writes,
it'll read back.
However, the Flash command codes expect the bit pattern
as defined in the command codes table on Flash[15:0].
So you've got lots of board specific cases;
* bits reversed
* bytes swapped
* bits in bytes reversed
and so on ...
If the command code was 0x0006, and the BDI config you
copied shows 0x0600, then they've got bytes swapped.
If the code was 0x0060, and the bus is reversed
then you'll get 0x0600.
When you copy someone elses design without understanding
it, you can end up copying their mistakes.
In your case, you hooked up your Flash correctly, but
you're trying to interpret someone else's design in
the context of your design.
Rather than that, just look at the data sheets and
your specific design. You've gained an understanding
of what the BDI configuration file should contain,
now toss away anyone elses configs ... or look at them
with a 'grain of salt'.
Cheers,
Dave
> We tried writing the
> same magic numbers in the manuals directly via the bdi to seemingly no
> effect.
>
> That all being said, our knowledge is slowly getting there - and it
> would have exponentially slower without the help so far.
>
> Cheers,
> Robert
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
next prev parent reply other threads:[~2007-09-12 19:41 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
[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 [this message]
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=46E84102.3010800@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