[gPXE] Debugging over UDP

Vinay Venkataraghavan raghavanvinay at yahoo.com
Wed Dec 8 13:58:11 EST 2010


Hello,

I just recently started to play with gPXE and would like to step through the 
process using the debugging options. But I have not been sucessful. Any help 
would be appreciated.

The steps I followed are as show below:

1. Built an iso image and burned it to a dvd. 
2. Booted the client machine and broke into the gPXE prompt. 
3. Executed: ifopen net0
                   set net0/ip 10.44.4.3
                      bdgstub udp net0


4. On the debugger machine.
 
                gdb
                set debug remote 1
                file bin/gpxe.lkrn.tmp 
                target remote udp:10.44.4.3:43770 

Questions: 

1) What is the name of the corresponding .tmp file to use when I am using an 
gpxe.iso image. This is not specified in the gPXE documentation. 

2) I get the following output: 


[root at localhost src]# gdb
GNU gdb Fedora (6.8-27.el5)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
(gdb) set remote debug 1
Undefined set remote command: "debug 1".  Try "help set remote".
(gdb) set debug remote 1
(gdb) file bin/gpxe.
gpxe.dsk           gpxe.dsk.tmp.map   gpxe.hd.tmp.map    gpxe.lkrn.tmp      
gpxe.usb
gpxe.dsk.tmp       gpxe.hd.tmp        gpxe.iso           gpxe.lkrn.tmp.map
(gdb) file bin/gpxe.hd.tmp
Reading symbols from /root/gPXE/gpxe-1.0.1/src/bin/gpxe.hd.tmp...done.
(gdb) target remote udp:10.44.4.137:43770
warning: The remote protocol may be unreliable over UDP.
Some events may be lost, rendering further debugging impossible.
Remote debugging using udp:10.44.4.137:43770
Sending packet: $qSupported#37...Sending packet: $qSupported#37...Sending 
packet: $qSupported#37...Sending packet: $qSupported#37...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Packet qSupported (supported-packets) is supported
warning: unrecognized item "timeout" in "qSupported" response
Sending packet: $?#3f...Sending packet: $?#3f...Sending packet: $?#3f...Sending 
packet: $?#3f...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $Hc-1#09...Sending packet: $Hc-1#09...Sending packet: 
$Hc-1#09...Sending packet: $Hc-1#09...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qC#b4...Sending packet: $qC#b4...Sending packet: 
$qC#b4...Sending packet: $qC#b4...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qOffsets#4b...Sending packet: $qOffsets#4b...Sending packet: 
$qOffsets#4b...Sending packet: $qOffsets#4b...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Malformed response to offset query, timeout
(gdb) 

Thanks,
- Vinay


      


More information about the gPXE mailing list