public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] More problems booting an i.MX6 from NOR flash
Date: Tue, 11 Sep 2012 21:05:10 +0200	[thread overview]
Message-ID: <504F8B66.3050300@gmail.com> (raw)
In-Reply-To: <CAJtJ-H5gnOdh6occrxF6cFLARM+DrsEJ+Ja6Jmsi5F2Bwzjf+w@mail.gmail.com>

On 11.09.2012 18:32, Carolyn Smith wrote:
> Thanks to Dirk for your previous advice. We had a pullup on one of the
> reserved BOOT_CFG pins that caused problems accessing NOR flash.
>
> Now I can put code in the NOR flash. If the code is incorrect in some way
> (not sure how yet), I end up with a board that I can't get control of with
> the BDI. I get
>
> - TARGET: processing reset request
> - TARGET: BDI executes scan chain init string
> - TARGET: Bypass check 0x00000001 =>  0x00000004
> - TARGET: JTAG exists check passed
> - Core#0: ID code is 0x4BA00477
> - Core#0: DP-CSW  is 0xF0000000
> - Core#0: DBG-AP  at 0x82150000
> - Core#0: DIDR    is 0x3513702A
> - TARGET: Reset sequence passed
> - TARGET: resetting target passed
> - TARGET: processing target startup ....
> # TARGET: core #0 startup failed
> # TARGET: timeout while waiting for debug mode
> # TARGET: processing target startup failed
> # TARGET: timeout while waiting for debug mode
> I've tried different STARTUP modes, adding WAKEUP delays, different RESET
> modes all of which don't help.
>
> Any suggestions?

Well, this depends on your question ;)

If your question is "how to re-enable a board which has wrong code in 
the NOR flash and therefore doesn't boot and I can't access the NOR 
flash any more to correct it": Then you have to re-solder the boot 
mode resistors so that a different boot mode is used (e.g. from SD 
card). This will disable the boot from the broken NOR and prevent the 
boot ROM from crashing.

If your question is "what's wrong with the content of my boot ROM?": I 
would propose to use a quite simple image in the NOR: No DCD Data, as 
user code just one assembly instructions like an infinite loop and as 
execution address of that loop the internal OCRAM. You could use an 
existing U-Boot i.MX6 board and strip it down. This should bring you 
to an image which let the boot ROM jump to the internal OCRAM and wait 
there in the infinite loop. You are successful with this if you attach 
with your debugger and can see the infinite loop running in the 
internal OCRAM, then.

If your question is "why can't I attach with the debugger any more?": 
Well, maybe because your code in the NOR flash confuses the boot ROM 
so much that it crashes in a way that stops the access with the JTAG. 
I saw this in the past with corrupted NOR flash images, too. The only 
way I could find out of this was to switch the boot mode by 
re-soldering, see my answer above.

Best regards

Dirk

      reply	other threads:[~2012-09-11 19:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-11 16:32 [U-Boot] More problems booting an i.MX6 from NOR flash Carolyn Smith
2012-09-11 19:05 ` Dirk Behme [this message]

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=504F8B66.3050300@gmail.com \
    --to=dirk.behme@gmail.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