linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: "Joao Vicente" <joao.vicente@spectel.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Problem debugging ppc kernel with DDD/GDB/BDI2000 on a custom MPC8260 board
Date: Thu, 09 Oct 2003 14:38:07 +0200	[thread overview]
Message-ID: <20031009123812.E439CC59E4@atlas.denx.de> (raw)
In-Reply-To: Your message of "Thu, 09 Oct 2003 10:52:17 BST." <DEF39A0710293E489D45B10E06645CBD0243B1A7@dub-msx1.spectelcorp.com>


Dear Joao,

in message <DEF39A0710293E489D45B10E06645CBD0243B1A7@dub-msx1.spectelcorp.com> you wrote:
>
> I am trying to boot the ppc kernel on a MPC8260 based custom board.
...
> One of the doubts that I have is that when I look into the system.map file, it shows that the start address is at 0xc0000000 (as shown below)
>
> c0000000 T _start

Yes, this is the correct kernel virtual address.

> To the best of my knowledge the kernel image is not relocatable, so I am wondering if this could be my problem or just one of them ...
> Should the map file be showing
>
> 00000000 T _start

No!!!

> If so, where should I change the .text address so that that happens ?

Don't change anything!

> I am also trying to debug the code from that address with gdb/BDI2000, but I am not getting very far.
> Basically I can see the program counter incrementing when I single step, but I cannot see the source even though I am trying to load the symbol table at 0x00000000 with the  'add-symbol-file vmlinux 0x00000000' gdb command, after invoking gdb from the k
> ernel base directory (where vmlinux is)

Just use the vmlinux file _without_ relocating  any  addresses.  Make
sure  to  enable  "MMU  XLAT"  and define "PTBASE" in your BDI config
file.


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"If people are good only because they fear punishment, and  hope  for
reward, then we are a sorry lot indeed."            - Albert Einstein

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

  reply	other threads:[~2003-10-09 12:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-09  9:52 Problem debugging ppc kernel with DDD/GDB/BDI2000 on a custom MPC8260 board Joao Vicente
2003-10-09 12:38 ` Wolfgang Denk [this message]
     [not found] <DEF39A0710293E489D45B10E06645CBD0243B1E7@dub-msx1.spectelcorp.com>
2003-10-09 16:18 ` Wolfgang Denk
2003-10-09 19:02 ` DONG-IN KANG
  -- strict thread matches above, loose matches on Subject: below --
2003-10-10 10:23 Joao Vicente
     [not found] <DEF39A0710293E489D45B10E06645CBD0243B232@dub-msx1.spectelcorp.com>
2003-10-10 13:00 ` Wolfgang Denk
2003-10-10 14:24 Joao Vicente
2003-10-15 17:47 Joao Vicente
2003-10-15 17:56 ` Wolfgang Denk

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=20031009123812.E439CC59E4@atlas.denx.de \
    --to=wd@denx.de \
    --cc=joao.vicente@spectel.com \
    --cc=linuxppc-embedded@lists.linuxppc.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).