linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: mpc@mail2000.com.tw
Cc: linuxppc-embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Debug ppclinux with BDI2000
Date: Thu, 10 May 2001 21:44:30 +0200	[thread overview]
Message-ID: <20010510194435.5CB352814D@denx.denx.de> (raw)
In-Reply-To: Your message of "Fri, 11 May 2001 02:55:48 +0800." <989520948.8638.mpc@mail2000.com.tw>


In message <989520948.8638.mpc@mail2000.com.tw> you wrote:
>
>  I followed the procedure mentioned in BDI's manual
>  (Sec3.3.4, P29).
>  I just type 'load' on BDI's telnet terminal to load
>  target zImage file(arch/ppc/mbxboot/zImage).
>  After that BDI shows:
>  "File offset 0x00010000 to address 0x00210000 size
>   514200"
>  Then I type "go 0x00210000" on BDI's telnet terminal.
>  However, nothing happened!!

Of course something happened: your kernel crashed.

>  I can not get any responce from serial console.
>  Did I lose something?

Yes.  The  Linux  kernel,  even  with  the  mbxboot  bootstrap  stuff
attached,   is  not  a  standalone  program.  It  expects  a  lot  of
initialization to be done  by  the  firmware,  and  some  information
passed, too.

I don't see why you go such a difficult route.

Both PPCboot and Linux are running out of the  box  on  the  TQM8xxL.
Just install and run.

If you want to debug your own kernel modifications, you can still use
PPCBoot to load and start the kernel - but remember that PPCBoot does
not use zImage files, it uses it's own image format instead.

A simple but efficient way to enter the debugger  _after_  Linux  has
started  and  the  MMU  has  been  turned on is to set an instruction
breakpoint for the address range 0xC0000000 ... 0xC1000000  (use  the
"BI" command at the telnet prompt to do so).

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
panic: kernel trap (ignored)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2001-05-10 19:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-10 18:55 Debug ppclinux with BDI2000 Kirk Lee
2001-05-10 19:44 ` Wolfgang Denk [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=20010510194435.5CB352814D@denx.denx.de \
    --to=wd@denx.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=mpc@mail2000.com.tw \
    /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).