* kgdb on 405GP walnut-like board.
@ 2004-11-03 9:41 Vladimir
2004-11-03 13:56 ` Matt Porter
0 siblings, 1 reply; 6+ messages in thread
From: Vladimir @ 2004-11-03 9:41 UTC (permalink / raw)
To: linuxppc-embedded
Hello All !
When I'm trying to compile linux-2.6.8.1 kernel on ppc with kgdb support it
fails with the following error:
arch/ppc/kernel/ppc-stub.c:796: structure has no member named `dbcr0'
Can I just replace regs->dbcr0 with current->thread.dbcr0. Is it sufficient ?
Has this issue already been fixed by someone ?
--
Vladimir
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kgdb on 405GP walnut-like board.
2004-11-03 9:41 kgdb on 405GP walnut-like board Vladimir
@ 2004-11-03 13:56 ` Matt Porter
2004-11-03 14:17 ` Vladimir
0 siblings, 1 reply; 6+ messages in thread
From: Matt Porter @ 2004-11-03 13:56 UTC (permalink / raw)
To: Vladimir; +Cc: linuxppc-embedded
On Wed, Nov 03, 2004 at 12:41:40PM +0300, Vladimir wrote:
> Hello All !
> When I'm trying to compile linux-2.6.8.1 kernel on ppc with kgdb support it
> fails with the following error:
>
> arch/ppc/kernel/ppc-stub.c:796: structure has no member named `dbcr0'
>
> Can I just replace regs->dbcr0 with current->thread.dbcr0. Is it sufficient ?
> Has this issue already been fixed by someone ?
No, it's not sufficient. It helps to check the archives first.
http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/000417.html
http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/000418.html
These are now in the 2.6 mainline (BK current).
-Matt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kgdb on 405GP walnut-like board.
2004-11-03 13:56 ` Matt Porter
@ 2004-11-03 14:17 ` Vladimir
2004-11-03 14:36 ` Matt Porter
0 siblings, 1 reply; 6+ messages in thread
From: Vladimir @ 2004-11-03 14:17 UTC (permalink / raw)
To: linuxppc-embedded
On Wednesday 03 November 2004 16:56, Matt Porter wrote:
> No, it's not sufficient. It helps to check the archives first.
>
> http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/000417.html
> http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/000418.html
I've tried this patch but it fails to apply (at least to 2.6.8.1 from
kernel.org). Am I to use another kernel version to apply this patch ?
> These are now in the 2.6 mainline (BK current).
--
Vladimir
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kgdb on 405GP walnut-like board.
2004-11-03 14:17 ` Vladimir
@ 2004-11-03 14:36 ` Matt Porter
2004-11-03 22:34 ` Vladimir
0 siblings, 1 reply; 6+ messages in thread
From: Matt Porter @ 2004-11-03 14:36 UTC (permalink / raw)
To: Vladimir; +Cc: linuxppc-embedded
On Wed, Nov 03, 2004 at 05:17:55PM +0300, Vladimir wrote:
> On Wednesday 03 November 2004 16:56, Matt Porter wrote:
> > No, it's not sufficient. It helps to check the archives first.
> >
> > http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/000417.html
> > http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/000418.html
> I've tried this patch but it fails to apply (at least to 2.6.8.1 from
> kernel.org). Am I to use another kernel version to apply this patch ?
The patch is against the current 2.6 BK tree, try patching a recent kernel
release like 2.6.10-rc1.
-Matt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kgdb on 405GP walnut-like board.
2004-11-03 14:36 ` Matt Porter
@ 2004-11-03 22:34 ` Vladimir
2004-11-04 14:28 ` Matt Porter
0 siblings, 1 reply; 6+ messages in thread
From: Vladimir @ 2004-11-03 22:34 UTC (permalink / raw)
To: linuxppc-embedded
On Wednesday 03 November 2004 17:36, Matt Porter wrote:
> The patch is against the current 2.6 BK tree, try patching a recent kernel
> release like 2.6.10-rc1.
I've tried 2.6.10-rc1-bk13 from kernel.org. Is it already include this patch ?
It successfully compiles, but at breakpoint() it fails to connect to host's
gdb. I've grab /dev/ttyS1 traffic and see that kgdb stub sends to host a lot
of zeros - nothing more. May be this is bug in serial port initialization ?
How can I deal with it ?
--
Vladimir
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kgdb on 405GP walnut-like board.
2004-11-03 22:34 ` Vladimir
@ 2004-11-04 14:28 ` Matt Porter
0 siblings, 0 replies; 6+ messages in thread
From: Matt Porter @ 2004-11-04 14:28 UTC (permalink / raw)
To: Vladimir; +Cc: linuxppc-embedded
On Thu, Nov 04, 2004 at 01:34:23AM +0300, Vladimir wrote:
> On Wednesday 03 November 2004 17:36, Matt Porter wrote:
> > The patch is against the current 2.6 BK tree, try patching a recent kernel
> > release like 2.6.10-rc1.
> I've tried 2.6.10-rc1-bk13 from kernel.org. Is it already include this patch ?
> It successfully compiles, but at breakpoint() it fails to connect to host's
> gdb. I've grab /dev/ttyS1 traffic and see that kgdb stub sends to host a lot
> of zeros - nothing more. May be this is bug in serial port initialization ?
> How can I deal with it ?
Check what your firmware sets the default baud rate to on the second
UART. I had to set remotebaud 57600 on walnut, IIRC...I'm a little
hazy since that's not my primary devel platform. I think you are
on a different board anyway.
-Matt
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-11-04 14:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-03 9:41 kgdb on 405GP walnut-like board Vladimir
2004-11-03 13:56 ` Matt Porter
2004-11-03 14:17 ` Vladimir
2004-11-03 14:36 ` Matt Porter
2004-11-03 22:34 ` Vladimir
2004-11-04 14:28 ` Matt Porter
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).