All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erik Christiansen <erik@dd.nec.com.au>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Debugging u-boot on a custom 8548 board
Date: Fri, 21 Sep 2007 16:59:04 +1000	[thread overview]
Message-ID: <20070921065904.GC8826@dd.nec.com.au> (raw)
In-Reply-To: <67194FEE6056B947B4EF756C9E497A2E01C68EC4@zuk35exm60.ds.mot.com>

On Fri, Sep 21, 2007 at 07:14:20AM +0100, Demke Torsten-atd012 wrote:
> 
> > ATUM4>mdh 0xfff80000
> > 0_fff80000 : 2705 1956 552d 426f 6f74 2031 2e33 2e30  '..VU-Boot 1.3.0
> > 
> > ATUM4>bi 0xfffff01c
> > Breakpoint identification is 0
> > ATUM4>go 0xfff80000
> > ATUM4>halt
> >     Target CPU        : MPC85xx (e500v2 rev.2)
> >     Target state      : halted
> >     Debug entry cause : COP halt
> >     Current PC        : 0xf0000000
> >     Current CR        : 0x00000000
> >     Current MSR       : 0x00000200
> >     Current LR        : 0x00000000
> >     Current CCSRBAR   : 0x0_e0000000
> > 
> This cannot work, as your own memory dump shows (above). 
> You have the "magic word" and some ASCCI string at 0xfff80000. 
> These are not valid ppc assembler instructions, but the begin of the
> u-boot image.
> Please check/dump address 0xfffffffc. There should be a valid
> jump instruction (see resetvec.S) which jumps to an address 
> within a 4kbyte  page at the end of the address space. 
> ((0xfffff000, _start_e500()).
> There will be code that initializes the MMU that you can access
> the rest of the flash device(s), including the u-boot image (e.g
> cpu_init_f().

Errm, having just done an initial build for the ep8248e, I first looked
in the generated u-boot.map file. In my case, it says:

.text
...
                0xfff00100                _start

so I'm planning to "go 0xfff00100", and if that doesn't do it, then "go
0x100", because CS0 is then hopefully mapping flash to put _start at the
reset vector, so it'll work at power-on. (Just an optimistic WAG at this
stage.)

Anyway, what does robert's u-boot.map say?

Erik

(Sorry, just subscribed, and it's Friday, so couldn't resist rashly
chiming in. :)

  reply	other threads:[~2007-09-21  6:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-19 17:35 [U-Boot-Users] Debugging u-boot on a custom 8548 board robert lazarski
2007-09-19 19:34 ` Jerry Van Baren
2007-09-19 20:17   ` Detlev Zundel
2007-09-20 14:04   ` robert lazarski
2007-09-20 18:45     ` Steve Williams
2007-09-20 19:47       ` robert lazarski
2007-09-21  6:14         ` Demke Torsten-atd012
2007-09-21  6:59           ` Erik Christiansen [this message]
2007-09-21  7:25             ` Demke Torsten-atd012
2007-09-21  9:02               ` Erik Christiansen
2007-09-21 12:00                 ` Demke Torsten-atd012
2007-09-21 15:33           ` robert lazarski
2007-09-24 15:43           ` robert lazarski

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=20070921065904.GC8826@dd.nec.com.au \
    --to=erik@dd.nec.com.au \
    --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.