Google
  Web www.spinics.net

Re: kgdg over ethernet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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

earlyprintk=vga 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-modules-with-virtualbox-and-kgdb/
http://techtooltip.wordpress.com/2008/09/12/using-host-serial-port-from-guest-in-virtual-box/

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

http://groups.google.com/group/linuxkernelnewbies/browse_thread/thread/169fd1ddce20287e/f449cabdf1a8cf80?lnk=gst&q=%E4%B8%80%E7%A7%8D%E6%96%B9%E4%BE%BF%E7%9A%84Linux%E5%86%85%E6%A0%B8%E8%B0%83%E8%AF%95%E6%96%B9%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 <rajeshkuri@xxxxxxxxx> 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 programming.
>
> --Regards,
> rajesh
>
> On Sun, Oct 9, 2011 at 1:13 PM, Ramaraju G <ramarajug@xxxxxxxxx> 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 + kgdb running in the guest OS, and then gdb in the host machine using named pipes.
> >
> > thanks
> > Raju
> >
> > ________________________________
> > From: Peter Teoh <htmldeveloper@xxxxxxxxx>
> > To: Ramaraju G <ramarajug@xxxxxxxxx>
> > Cc: "linux-newbie@xxxxxxxxxxxxxxx" <linux-newbie@xxxxxxxxxxxxxxx>
> > 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 bootup.    but ethernet port setup takes place much later in the bootup sequence.   and so debugging over ethernet port is possible (netconsole, 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 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 station for your laptop....and it is hardware specific, so u have to go to the specific hardware community to hunt for it.   for example, mine is R400 Lenovo, so I found here:
> >
> > http://support.lenovo.com/en_US/product-and-parts/detail.page?DocID=PD005598
> >
> > 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 and attach the serial port yourself, for example, for my R400 the schematic is (plus several other model as well) here:
> >
> > http://www.laptopschematic.com/lenovo-thinkpad-r400-schematic-diagram-mlb3d-6/
> >
> > On Sun, Oct 2, 2011 at 12:51 PM, Ramaraju G <ramarajug@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
> >>More majordomo info at  http://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-newbie" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://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-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs


[Site Home]     [Audio]     [Hams]     [Kernel Newbies]     [Memory]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linux Resources]     [Fedora Users]

  Powered by Linux