public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Debugging into the kernel from u-boot
@ 2010-04-30 12:55 Dunda, Matthias
  2010-05-04 12:30 ` Stefan Roese
  0 siblings, 1 reply; 4+ messages in thread
From: Dunda, Matthias @ 2010-04-30 12:55 UTC (permalink / raw)
  To: u-boot

Hi all-

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.

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? 

Why are all the symbols in vmlinux located at 0xc0... 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!

Have a nice weekend!
Matthias

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [U-Boot] Debugging into the kernel from u-boot
@ 2010-05-05  8:58 Dunda, Matthias
  2010-05-05  9:52 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Dunda, Matthias @ 2010-05-05  8:58 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

> 
> You have all the equipment you need. Use the BDI3000 to debug 
> the Linux 
> kernel.

is it correct, that I can only use HARD breakpoints? Because when I set
BREAK SOFT, the gdb always says it cannot access memory at c000....

And even with HW breakpoints I'm not able to do clean stepping thru the
code. The pointer jumps more or less arbitrarily thru the file resulting in
a crash after some steps.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-05  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 12:55 [U-Boot] Debugging into the kernel from u-boot Dunda, Matthias
2010-05-04 12:30 ` Stefan Roese
  -- strict thread matches above, loose matches on Subject: below --
2010-05-05  8:58 Dunda, Matthias
2010-05-05  9:52 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox