All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] minimum bdi config to read flash on 85xx
Date: Fri, 14 Sep 2007 14:34:11 -0400	[thread overview]
Message-ID: <46EAD423.6040801@smiths-aerospace.com> (raw)
In-Reply-To: <f87675ee0709141121sd224ebfi3facebe13dffb5fb@mail.gmail.com>

robert lazarski wrote:
> On 9/12/07, David Hawkins <dwh@ovro.caltech.edu> wrote:
>> 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.
> 
> After a few days with the docs, we've had some limited success. We
> moved back to 128MB of ram and a base address of F8000000 . We think
> we may have some timimg issues.

Interaction with RAM size is unexpected.  Time to quadruple check your 
OR/BR?  Read out the registers directly with the BDI, don't trust nobody.

[snip]

> In the bdi, we executed:
> 
> ATUM>mmh 0xf8000AAA 0x00AA
> ATUM>mmh 0xf8000554 0x0055
> ATUM>mmh 0xf8000AAA 0x0090
> ATUM>mmh 0xf8000AAA 0x0090
> ATUM>mdh 0xf8000000 1
> 
> At which point we got the manufactor id and everything else.
> Unfortunately the next day we weren't able to repeat it - can the
> manufactor id be erased?

Whoo-heee!

No, the manufacture ID cannot be erased.  Something odd is happening.

> Anyways, we were able to write a word:
> 
> ATUM>mmh 0xf8000AAA 0x00AA
> ATUM>mmh 0xf8000554 0x0055
> ATUM>mmh 0xf8000AAA 0x00A0
> ATUM>mmh 0xf8000F00 0xCAFE
> ATUM>mdh 0xf8000F00 1
> 0_f8000f00 : 0xcafe  -13570

Whoo-heee!

> We have yet to be able to repeat that feat at any other address. We
> can read 0xCAFE from 0xf8000F00 , but only after about a minute after
> a bdi boot. We cannot overwrite 0xf8000F00 , nor can we erase the
> entire chip via the documented sequence. As I said we think we have
> timing issues. Any suggestions? More RTFM? We do have a logic
> analyzer.

* Works only after waiting a minute?  That's odd.  Does your flash have 
a reset pin?  Do you have a buffer (address or data) between the 
processor and flash with an enable pin?  Are the reset/enables connected 
properly (not floating)?

* Detune (set to maximum delays) all the speed parameters in the BR/OR 
that controls flash.

* Use the logic analyzer to measure timing (tough nowadays with BGAs and 
fine traces).

gvb

  reply	other threads:[~2007-09-14 18:34 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
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 [this message]
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=46EAD423.6040801@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.