|
From: | Dirk Behme |
Subject: | Re: [Qemu-devel] Debugging low level ARM with GDB |
Date: | Fri, 24 Mar 2006 17:51:59 +0100 |
User-agent: | Mozilla Thunderbird 1.0.7 (X11/20050923) |
Paul Brook wrote:
But PC is still wrong. Who sets the PC to KERNEL_LOAD_ADDR (0x10000)?What makes you think ti's wrong? There's a small bootloader built into qemu.
Uups. Then it seems that I start things the wrong way. I start QEMU with -S -s, then I attach GDB, and GDB "complains" that PC is at 0x0 (and not 0x10000). How do I have to invoke things in the correct way (and that this bootloader is used) so that system is at 0x10000 if I attach GDB and can start with si debugging from there?
Then I tried the other way around: Instead of adapting u-boot, it should be possible to adapt hw/integratorcp.c to the address u-boot is linked to by default. This is 0x11080000. For my changes see below. With this, I getYou're obviously using the wrong u-boot config then. 0x11080000 isn't even a RAM address.
Yes, seems that I was unclear here. Sorry. It's for an other board. Take this question as the first step for a new machine description using integrator as an example.
Thanks for your help and patience! Dirk
[Prev in Thread] | Current Thread | [Next in Thread] |