kgdg over ethernet

kgdg over ethernet

am 02.10.2011 06:51:26 von Ramaraju G

Hi,

How to enable kgdb over ethernet support in linux kernel 2.6.38 ?
I dont have any serial port in my laptop.

regards,
Raju
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

Re: kgdg over ethernet

am 09.10.2011 09:43:36 von Ramaraju G

Hi Peter,

thanks for the reply.
My intention is learning the kernel. So, i want to know what happens in=
itially in the boot sequence.
I am having Dell Inspiron laptop. It doesnt have facility to connect to=
the docking station.

Could you give me some more pointers in setting up the VirtualBox + kgd=
b running in the guest OS, and then gdb in the host machine using named=
pipes.

thanks
Raju

________________________________
=46rom: Peter Teoh
To: Ramaraju G
Cc: "linux-newbie@vger.kernel.org"
Sent: Saturday, October 8, 2011 11:43 PM
Subject: Re: kgdg over ethernet


as u know, KGDB is an in-kernel debugger, as it modifies the linux kern=
el to be able to interact with serial port at an early stage of bootup.=
=A0 =A0but ethernet port setup takes place much later in the bootup se=
quence.   and so debugging over ethernet port is possible (netconso=
le, lookup kernel source's Documentation directory), but not when u wan=
t to know what is happening at an early stage.

if u just want to learn, I have done this before using VirtualBox + kgd=
b running in the guest OS, and then gdb in the host machine to connect =
to the guest via the serial port, or named pipes etc.

but if really need serial port, I am sure there exists a Docking statio=
n for your laptop....and it is hardware specific, so u have to go to th=
e specific hardware community to hunt for it. =A0 for example, mine is =
R400 Lenovo, so I found here:

http://support.lenovo.com/en_US/product-and-parts/detail.pag e?DocID=3DP=
D005598

where it mentioned how to get serial port (at least 3 different devices=
are available).

but if u are electronic-savvy, perhaps u can search for the schematic a=
nd attach the serial port yourself, for example, for my R400 the schema=
tic is (plus several other model as well) here:

http://www.laptopschematic.com/lenovo-thinkpad-r400-schemati c-diagram-m=
lb3d-6/

On Sun, Oct 2, 2011 at 12:51 PM, Ramaraju G wrote=
:

>s
>Hi,
>
>How to enable kgdb over ethernet support in linux kernel 2.6.38 ?
>I dont have any serial port in my laptop.
>
>regards,
>Raju
>--
>To unsubscribe from this list: send the line "unsubscribe linux-newbie=
" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.linux-learn.org/faqs
>


--=20
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
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.linux-learn.org/faqs

Re: kgdg over ethernet

am 09.10.2011 10:57:46 von Rajeh kuri

Peter,

Me too curious to know and try to understand working of Linux Kernel
and implementation.
It would help many others in community trying to get into Kernel progra=
mming.

--Regards,
rajesh

On Sun, Oct 9, 2011 at 1:13 PM, Ramaraju G wrote:
> Hi Peter,
>
> thanks for the reply.
> My intention is learning the kernel. So, i want to know what happens =
initially in the boot sequence.
> I am having Dell Inspiron laptop. It doesnt have facility to connect =
to the docking station.
>
> Could you give me some more pointers in setting up the VirtualBox + k=
gdb running in the guest OS, and then gdb in the host machine using nam=
ed pipes.
>
> thanks
> Raju
>
> ________________________________
> From: Peter Teoh
> To: Ramaraju G
> Cc: "linux-newbie@vger.kernel.org"
> Sent: Saturday, October 8, 2011 11:43 PM
> Subject: Re: kgdg over ethernet
>
>
> as u know, KGDB is an in-kernel debugger, as it modifies the linux ke=
rnel to be able to interact with serial port at an early stage of bootu=
p. =A0 =A0but ethernet port setup takes place much later in the bootup =
sequence.   and so debugging over ethernet port is possible (netcon=
sole, lookup kernel source's Documentation directory), but not when u w=
ant to know what is happening at an early stage.
>
> if u just want to learn, I have done this before using VirtualBox + k=
gdb running in the guest OS, and then gdb in the host machine to connec=
t to the guest via the serial port, or named pipes etc.
>
> but if really need serial port, I am sure there exists a Docking stat=
ion for your laptop....and it is hardware specific, so u have to go to =
the specific hardware community to hunt for it. =A0 for example, mine i=
s R400 Lenovo, so I found here:
>
> http://support.lenovo.com/en_US/product-and-parts/detail.pag e?DocID=3D=
PD005598
>
> where it mentioned how to get serial port (at least 3 different devic=
es are available).
>
> but if u are electronic-savvy, perhaps u can search for the schematic=
and attach the serial port yourself, for example, for my R400 the sche=
matic is (plus several other model as well) here:
>
> http://www.laptopschematic.com/lenovo-thinkpad-r400-schemati c-diagram=
-mlb3d-6/
>
> On Sun, Oct 2, 2011 at 12:51 PM, Ramaraju G wro=
te:
>
>>s
>>Hi,
>>
>>How to enable kgdb over ethernet support in linux kernel 2.6.38 ?
>>I dont have any serial port in my laptop.
>>
>>regards,
>>Raju
>>--
>>To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
>>the body of a message to majordomo@vger.kernel.org
>>More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>>Please read the FAQ at http://www.linux-learn.org/faqs
>>
>
>
> --
> Regards,
> Peter Teoh
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
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.linux-learn.org/faqs

Re: kgdg over ethernet

am 09.10.2011 16:15:08 von Peter Teoh

good.....there is a kernel parameter:

earlyprintk=3Dvga where u can put into your bootloader. see
Documentation/kernel-parameters.txt

and here is one link:

http://allmybrain.com/2010/04/29/debugging-linux-kernel-modu les-with-vi=
rtualbox-and-kgdb/
http://techtooltip.wordpress.com/2008/09/12/using-host-seria l-port-from=
-guest-in-virtual-box/

and here (the original URL is gone, but it is cached here in google gro=
up):

http://groups.google.com/group/linuxkernelnewbies/browse_thr ead/thread/=
169fd1ddce20287e/f449cabdf1a8cf80?lnk=3Dgst&q=3D%E4%B8%80%E7 %A7%8D%E6%9=
6%B9%E4%BE%BF%E7%9A%84Linux%E5%86%85%E6%A0%B8%E8%B0%83%E8%AF %95%E6%96%B=
9%E6%B3%95%EF%BC%9AVirtualBox+%2B+KGDB#f449cabdf1a8cf80

sorry if u don't know chinese (the whole line above is one link - no
space in between).


On Sun, Oct 9, 2011 at 4:57 PM, Rajesh wrote:
>
> Peter,
>
> Me too curious to know and try to understand working of Linux Kernel
> and implementation.
> It would help many others in community trying to get into Kernel prog=
ramming.
>
> --Regards,
> rajesh
>
> On Sun, Oct 9, 2011 at 1:13 PM, Ramaraju G wrot=
e:
> > Hi Peter,
> >
> > thanks for the reply.
> > My intention is learning the kernel. So, i want to know what happen=
s initially in the boot sequence.
> > I am having Dell Inspiron laptop. It doesnt have facility to connec=
t to the docking station.
> >
> > Could you give me some more pointers in setting up the VirtualBox +=
kgdb running in the guest OS, and then gdb in the host machine using n=
amed pipes.
> >
> > thanks
> > Raju
> >
> > ________________________________
> > From: Peter Teoh
> > To: Ramaraju G
> > Cc: "linux-newbie@vger.kernel.org"
> > Sent: Saturday, October 8, 2011 11:43 PM
> > Subject: Re: kgdg over ethernet
> >
> >
> > as u know, KGDB is an in-kernel debugger, as it modifies the linux =
kernel to be able to interact with serial port at an early stage of boo=
tup. =A0 =A0but ethernet port setup takes place much later in the bootu=
p sequence.   and so debugging over ethernet port is possible (netc=
onsole, lookup kernel source's Documentation directory), but not when u=
want to know what is happening at an early stage.
> >
> > if u just want to learn, I have done this before using VirtualBox +=
kgdb running in the guest OS, and then gdb in the host machine to conn=
ect to the guest via the serial port, or named pipes etc.
> >
> > but if really need serial port, I am sure there exists a Docking st=
ation for your laptop....and it is hardware specific, so u have to go t=
o the specific hardware community to hunt for it. =A0 for example, mine=
is R400 Lenovo, so I found here:
> >
> > http://support.lenovo.com/en_US/product-and-parts/detail.pag e?DocID=
=3DPD005598
> >
> > where it mentioned how to get serial port (at least 3 different dev=
ices are available).
> >
> > but if u are electronic-savvy, perhaps u can search for the schemat=
ic and attach the serial port yourself, for example, for my R400 the sc=
hematic is (plus several other model as well) here:
> >
> > http://www.laptopschematic.com/lenovo-thinkpad-r400-schemati c-diagr=
am-mlb3d-6/
> >
> > On Sun, Oct 2, 2011 at 12:51 PM, Ramaraju G w=
rote:
> >
> >>s
> >>Hi,
> >>
> >>How to enable kgdb over ethernet support in linux kernel 2.6.38 ?
> >>I dont have any serial port in my laptop.
> >>
> >>regards,
> >>Raju
> >>--
> >>To unsubscribe from this list: send the line "unsubscribe linux-new=
bie" in
> >>the body of a message to majordomo@vger.kernel.org
> >>More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm=
l
> >>Please read the FAQ at http://www.linux-learn.org/faqs
> >>
> >
> >
> > --
> > Regards,
> > Peter Teoh
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-new=
bie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm=
l
> > Please read the FAQ at http://www.linux-learn.org/faqs
> >



--
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
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.linux-learn.org/faqs