* KGDB 2..26 fails to wait while booting
@ 2008-08-15 2:46 amruth
2008-08-18 14:05 ` Jason Wessel
0 siblings, 1 reply; 4+ messages in thread
From: amruth @ 2008-08-15 2:46 UTC (permalink / raw)
To: linux-kernel
Hi
I have created 2.6.26 kernel with KGDB enabled but the system fails to wait. Can anybody provide me detailed info on how to setup the grub configuration to wait until gdb connects from development machine.
Thanks
Amruth p.v
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: KGDB 2..26 fails to wait while booting
2008-08-15 2:46 KGDB 2..26 fails to wait while booting amruth
@ 2008-08-18 14:05 ` Jason Wessel
2008-08-18 15:36 ` amruth
0 siblings, 1 reply; 4+ messages in thread
From: Jason Wessel @ 2008-08-18 14:05 UTC (permalink / raw)
To: amruth_pv; +Cc: linux-kernel
amruth wrote:
> Hi
> I have created 2.6.26 kernel with KGDB enabled but the system fails to
wait. Can anybody provide me detailed info on how to setup the grub
configuration to wait until gdb connects from development machine.
> Thanks
> Amruth p.v
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
What parameters did you use in grub?
Generally speaking you have to setup the boot parameters to be something
like:
kgdboc=ttyS0,115200 kgdbwait
Jason.
^ permalink raw reply [flat|nested] 4+ messages in thread
* KGDB 2..26 fails to wait while booting
2008-08-18 14:05 ` Jason Wessel
@ 2008-08-18 15:36 ` amruth
2008-08-18 15:51 ` Jason Wessel
0 siblings, 1 reply; 4+ messages in thread
From: amruth @ 2008-08-18 15:36 UTC (permalink / raw)
To: Jason Wessel; +Cc: linux-kernel
Thanks Jason. I got it working, but is it possible to enable kdb with kgdb.
How can I debug the kernel early. In kdb we have option called as kdb=early, can we do the same in kgdb. I tried to set breakpoint in kgdb at start_kernel, it looks like kgdb executed past the start_kernel code.Hence break point does not work.
Please let me know how to enable debug early kernel option in KGDB.
Thanks
Amruth p.v
--- On Mon, 8/18/08, Jason Wessel <jason.wessel@windriver.com> wrote:
> From: Jason Wessel <jason.wessel@windriver.com>
> Subject: Re: KGDB 2..26 fails to wait while booting
> To: amruth_pv@yahoo.com
> Cc: linux-kernel@vger.kernel.org
> Date: Monday, August 18, 2008, 9:05 AM
> amruth wrote:
> > Hi
> > I have created 2.6.26 kernel with KGDB enabled but the
> system fails to
> wait. Can anybody provide me detailed info on how to setup
> the grub
> configuration to wait until gdb connects from development
> machine.
> > Thanks
> > Amruth p.v
> >
> >
> >
> >
> > --
> > To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
>
> What parameters did you use in grub?
>
> Generally speaking you have to setup the boot parameters to
> be something
> like:
>
> kgdboc=ttyS0,115200 kgdbwait
>
> Jason.
>
> --
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: KGDB 2..26 fails to wait while booting
2008-08-18 15:36 ` amruth
@ 2008-08-18 15:51 ` Jason Wessel
0 siblings, 0 replies; 4+ messages in thread
From: Jason Wessel @ 2008-08-18 15:51 UTC (permalink / raw)
To: amruth_pv; +Cc: linux-kernel
amruth wrote:
> Thanks Jason. I got it working, but is it possible to enable kdb with kgdb.
> How can I debug the kernel early. In kdb we have option called as kdb=early, can we do the same in kgdb. I tried to set breakpoint in kgdb at start_kernel, it looks like kgdb executed past the start_kernel code.Hence break point does not work.
> Please let me know how to enable debug early kernel option in KGDB.
>
>
This is a limitation of the kgdb which in the mainline sources. The
kgdb core itself can support early debugging.
The kgdboc I/O module does not support early debugging however because
it waits for the tty driver to get setup. There is an 8250_kgdb kernel
module which supports debugging from an ealier point than the kgdboc
driver but this is not in the main line sources. You can get it from
the kgdb branch.
IE:
http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=commitdiff_plain;h=2e92260276c0948e260bb8a8399e20dfb5713f70
and
http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=commitdiff_plain;h=03e9da089af8813ac1947e5a078906652bd2fbb7
Jason.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-18 15:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15 2:46 KGDB 2..26 fails to wait while booting amruth
2008-08-18 14:05 ` Jason Wessel
2008-08-18 15:36 ` amruth
2008-08-18 15:51 ` Jason Wessel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox