linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: "Lei Sun" <leisun124@gmail.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: reboot on PQ2FADS board.
Date: Thu, 20 Jul 2006 08:46:26 +0200	[thread overview]
Message-ID: <20060720064626.30695352681@atlas.denx.de> (raw)
In-Reply-To: Your message of "Wed, 19 Jul 2006 23:46:37 EDT." <f9a7e7a80607192046s3f17e8a5s4cfba43f1747e9ec@mail.gmail.com>

In message <f9a7e7a80607192046s3f17e8a5s4cfba43f1747e9ec@mail.gmail.com> you wrote:
>
> m8260_restart(char * cmd)
...
>         startaddr = 0x04400000; /* this is taken from u-boot-1.1.4 */

This is a random address which  happens  to  be  not  mapped  in  the
specific  board  (MPC8260ADS.h).  The approach taken here is strongly
deprecated - it is juat an examp[le of a badly maintained board.  In-
stead, I recommend to use an addrress which causes a checkstop on all
boards,  idependently of the cspecific memory map. This is what we do
here:

> >         dummy = ((immap_t *)IMAP_ADDR)->im_clkrst.res[0];

In the end, the effect is the same.

And I have no idea why it would not work  on  your  board.  Attach  a
debugger and find out where exactly the code is hanging.

Ummm... and if you run under a debugger, *detach*  it  and  check  if
reset starts to work...

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
It's certainly  convenient  the  way  the  crime  (or  condition)  of
stupidity   carries   with   it  its  own  punishment,  automatically
admisistered without remorse, pity, or prejudice. :-)
         -- Tom Christiansen in <559seq$ag1$1@csnews.cs.colorado.edu>

  reply	other threads:[~2006-07-20  6:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18  3:40 reboot on PQ2FADS board Lei Sun
2006-07-19  5:06 ` Li Yang-r58472
2006-07-19  6:33   ` Wolfgang Denk
2006-07-19 14:12     ` Lei Sun
2006-07-19 16:41       ` Mathieu Deschamps
2006-07-20  2:45         ` Lei Sun
2006-07-20  3:46     ` Lei Sun
2006-07-20  6:46       ` Wolfgang Denk [this message]
2006-07-20  7:22     ` Liu Dave-r63238
  -- strict thread matches above, loose matches on Subject: below --
2006-08-17 17:00 Zhimin (Jimmy) Liu
2006-08-18  1:45 ` Liu Dave-r63238

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=20060720064626.30695352681@atlas.denx.de \
    --to=wd@denx.de \
    --cc=leisun124@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).