Re: kgdb over ethernet support for 3.x kernel
On Mon, Jul 2, 2012 at 10:35 PM, <Ashish_Bunkar@dell.com> wrote:
what i know is gdb over ethernet is removed from newer kernels. Please let me know if you have some other information.
Thanks Ashish Bunkar ________________________________________ From: kernelnewbies-bounces@kernelnewbies.org [kernelnewbies-bounces@kernelnewbies.org] On Behalf Of Amit Nagal [helloin.amit@gmail.com] Subject: kgdb over ethernet support for 3.x kernel
Hi ,
3.x kernel does not seem to have built in support to use kgdb over ethernet functionality . To use this , can i be guided from where i can download patch for the same and apply to 3.x series kernel ?
thanx & regards Amit Nagal
Actually i want to to debug kernel modules with kgdb - gdb connected over tcp / udp port as depicted in http://kernel.org/pub/linux/kernel/people/jwessel/kdb/EnableKGDB.html section 3 . but in kernel , there seems to no built in support for that . Thanx & Regards Amit Nagal
have not heard of such feature available, but technically, the reason why serial port is important is because it is initialized at a very early stage in linux kernel bootup, and anything that happened before that cannot be analyzed via kgdb as well. i am not sure why u need ethernet. normally my approach is to use VirtualBox running a kernel with kgdb parameters all setup, and then define a virtual serial port in VirtualBox, to connect to a pipe, and then from host OS, use gdb to attach via "target remote" to the virtual terminal, which is created via the "socat" command. Search the web for details. http://www.google.com.sg/search?q=socat+virtualbox+serial+kgdb<http://www.google.com.sg/search?sourceid=chrome&ie=UTF-8&q=socat+virtualbox+serial+kgdb> On Tue, Jul 3, 2012 at 12:00 PM, Amit Nagal <helloin.amit@gmail.com> wrote:
On Mon, Jul 2, 2012 at 10:35 PM, <Ashish_Bunkar@dell.com> wrote:
what i know is gdb over ethernet is removed from newer kernels. Please let me know if you have some other information.
Thanks Ashish Bunkar ________________________________________ From: kernelnewbies-bounces@kernelnewbies.org [ kernelnewbies-bounces@kernelnewbies.org] On Behalf Of Amit Nagal [ helloin.amit@gmail.com] Subject: kgdb over ethernet support for 3.x kernel
Hi ,
3.x kernel does not seem to have built in support to use kgdb over ethernet functionality . To use this , can i be guided from where i can download patch for the same and apply to 3.x series kernel ?
thanx & regards Amit Nagal
Actually i want to to debug kernel modules with kgdb - gdb connected over tcp / udp port as depicted in http://kernel.org/pub/linux/kernel/people/jwessel/kdb/EnableKGDB.html section 3 . but in kernel , there seems to no built in support for that .
Thanx & Regards Amit Nagal
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
On Tue, Jul 3, 2012 at 11:09 AM, Peter Teoh <htmldeveloper@gmail.com> wrote:
have not heard of such feature available, but technically, the reason why serial port is important is because it is initialized at a very early stage in linux kernel bootup, and anything that happened before that cannot be analyzed via kgdb as well. i am not sure why u need ethernet. normally my approach is to use VirtualBox running a kernel with kgdb parameters all setup, and then define a virtual serial port in VirtualBox, to connect to a pipe, and then from host OS, use gdb to attach via "target remote" to the virtual terminal, which is created via the "socat" command.
Search the web for details.
On Tue, Jul 3, 2012 at 12:00 PM, Amit Nagal <helloin.amit@gmail.com>wrote:
On Mon, Jul 2, 2012 at 10:35 PM, <Ashish_Bunkar@dell.com> wrote:
what i know is gdb over ethernet is removed from newer kernels. Please let me know if you have some other information.
Thanks Ashish Bunkar ________________________________________ From: kernelnewbies-bounces@kernelnewbies.org [ kernelnewbies-bounces@kernelnewbies.org] On Behalf Of Amit Nagal [ helloin.amit@gmail.com] Subject: kgdb over ethernet support for 3.x kernel
Hi ,
3.x kernel does not seem to have built in support to use kgdb over ethernet functionality . To use this , can i be guided from where i can download patch for the same and apply to 3.x series kernel ?
thanx & regards Amit Nagal
Actually i want to to debug kernel modules with kgdb - gdb connected over tcp / udp port as depicted in http://kernel.org/pub/linux/kernel/people/jwessel/kdb/EnableKGDB.html section 3 . but in kernel , there seems to no built in support for that .
Thanx & Regards Amit Nagal
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Amit, KGDB over ethernet is not merged to linux kernel. It is available as a separate patch. Ethernet is very fast compared to serial communication. While trying to debug a driver it may not be possible to use virtualbox. Thanks, Sannu
On Tue, Jul 3, 2012 at 11:15 AM, Sannu K <sannumail4foss@gmail.com> wrote:
On Tue, Jul 3, 2012 at 11:09 AM, Peter Teoh <htmldeveloper@gmail.com> wrote:
have not heard of such feature available, but technically, the reason why serial port is important is because it is initialized at a very early stage in linux kernel bootup, and anything that happened before that cannot be analyzed via kgdb as well. i am not sure why u need ethernet. normally my approach is to use VirtualBox running a kernel with kgdb parameters all setup, and then define a virtual serial port in VirtualBox, to connect to a pipe, and then from host OS, use gdb to attach via "target remote" to the virtual terminal, which is created via the "socat" command.
Search the web for details.
http://www.google.com.sg/search?q=socat+virtualbox+serial+kgdb
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Amit,
KGDB over ethernet is not merged to linux kernel. It is available as a separate patch. Ethernet is very fast compared to serial communication. While trying to debug a driver it may not be possible to use virtualbox.
Thanks, Sannu
Thanx for all useful insights . The reason i want to use ethernet is that on my embedded target serial port is already used for message logging purpose . so cannot use serial port for debugging . basically i want to put breakpoints at runtime and debug modules . please suggest me alternative debug mechanism too especially useful for debugging modules on embedded targets . can i know the exact repository from where i can download kgdboe patch which i can apply for 2.6.35 kernel onwards or 3.x series kernels . Regards Amit Nagal
On Tue, Jul 3, 2012 at 11:26 AM, Amit Nagal <helloin.amit@gmail.com> wrote:
On Tue, Jul 3, 2012 at 11:15 AM, Sannu K <sannumail4foss@gmail.com> wrote:
On Tue, Jul 3, 2012 at 11:09 AM, Peter Teoh <htmldeveloper@gmail.com>
wrote:
have not heard of such feature available, but technically, the reason
why
serial port is important is because it is initialized at a very early stage in linux kernel bootup, and anything that happened before that cannot be analyzed via kgdb as well. i am not sure why u need ethernet. normally my approach is to use VirtualBox running a kernel with kgdb parameters all setup, and then define a virtual serial port in VirtualBox, to connect to a pipe, and then from host OS, use gdb to attach via "target remote" to the virtual terminal, which is created via the "socat" command.
Search the web for details.
http://www.google.com.sg/search?q=socat+virtualbox+serial+kgdb
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Amit,
KGDB over ethernet is not merged to linux kernel. It is available as a separate patch. Ethernet is very fast compared to serial communication. While trying to debug a driver it may not be possible to use virtualbox.
Thanks, Sannu
Thanx for all useful insights .
The reason i want to use ethernet is that on my embedded target serial port is already used for message logging purpose . so cannot use serial port for debugging .
basically i want to put breakpoints at runtime and debug modules . please suggest me alternative debug mechanism too especially useful for debugging modules on embedded targets .
can i know the exact repository from where i can download kgdboe patch which i can apply for 2.6.35 kernel onwards or 3.x series kernels .
Regards Amit Nagal
Why not try JTAG? I am not sure of how to use it or whether it is available in your hardware but just suggested if that option is missed. Thanks, Sannu
On Tue, Jul 3, 2012 at 4:40 PM, Amit Nagal <helloin.amit@gmail.com> wrote:
Why not try JTAG? I am not sure of how to use it or whether it is
available
in your hardware but just suggested if that option is missed.
wow that's challenging. how about: a. what is the processor type? what is the specific board name? b. does it come with BSP (from the manufacturer/designer)?
Thanks, Sannu
Yes JTAG supoort is also not available in hardware .
Regards Amit Nagal
-- Regards, Peter Teoh
participants (3)
-
Amit Nagal -
Peter Teoh -
Sannu K