From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Debugging into the kernel from u-boot
Date: Tue, 4 May 2010 14:30:24 +0200 [thread overview]
Message-ID: <201005041430.24160.sr@denx.de> (raw)
In-Reply-To: <569685F045B85741820D0265E0D2999D019CFE80@tddhh01.hh.thales-naval.de>
Hi Matthias,
On Friday 30 April 2010 14:55:42 Dunda, Matthias wrote:
> I - more or less - successfully got U-Boot up and running on our custom
> designed board.
>
> U-Boot leaves its premices in boot_jump_linux and this is the last I see on
> the console:
>
> ## Booting kernel from Legacy Image at 02000000 ...
> Image Name: Linux-2.6.29.6-rt23
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 1830522 Bytes = 1.7 MB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> ## Flattened Device Tree blob at 00400000
> Booting using the fdt blob at 0x400000
> Uncompressing Kernel Image ... OK
> ## Transferring control to Linux (at address 00000000)...
> Booting using OF flat tree...
>
> When I halt the board using the BDI3000 debugger, I find the PC somewhere
> in 0xc000c96c in __delay. Accessing 0xc000.... makes no sense, as we don't
> even have mapped memory there.
This address makes perfect sense. Linux maps physical address 0 to virtual
address 0xc000000 on PowerPC.
> Using HW breakpoints I can see the single instructions from 0x0 on, but I
> get no link to the source.
>
> Where can I get a meaningful starting point in the kernel?
You have all the equipment you need. Use the BDI3000 to debug the Linux
kernel.
> Why are all the symbols in vmlinux located at 0xc0...
See above.
> and how does the
> relocation take place? I saw some comment in arch/powerpc/kernel/setup_32.c
> but yet I have no clue where to start practically?
>
> Any help would be appreciated!
I suggest you take a look at this link as well:
http://www.denx.de/wiki/view/DULG/LinuxPostMortemAnalysis
Hope this helps.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
next prev parent reply other threads:[~2010-05-04 12:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-30 12:55 [U-Boot] Debugging into the kernel from u-boot Dunda, Matthias
2010-05-04 12:30 ` Stefan Roese [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-05-05 8:58 Dunda, Matthias
2010-05-05 9:52 ` 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=201005041430.24160.sr@denx.de \
--to=sr@denx.de \
--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.