[gPXE-devel] How to enable gpxe for serial debug?

Sean Shoufu Luo luoshoufu at gmail.com
Fri Jun 18 04:51:32 EDT 2010


Great!!! So flexible debug way ...  It works! Thank you very much, Thomas!

-Sean-

On Fri, Jun 18, 2010 at 4:43 PM, Thomas Miletich
<thomas.miletich at gmail.com>wrote:

> Hello Sean,
> please don't forget to CC the list in your mails(or use 'Reply All').
>
> To enable debugging output for specific files, in this example undi.c,
> use the following command line to build gpxe:
>
> make bin/pnic.rom DEBUG=undi
>
> This line enables all DBG() and DBGC() output in undi.c. There are
> different debugging levels in gPXE, like DBG(level 1), DBG2(level 2),
> DBGP(level 4) and DBGIO(level 8). They are used like a bitfield.
> To enable DBG2() messages use DEBUG=undi:2. To enable DBG() and DBG2()
> messages use DEBUG=undi:3. You simply add the values of the debugging
> levels you want to enable. Separate multiple files with commas:
> DEBUG=rtl8139,undi:3
>
> Hope that helps
> Thomas
>
> On Fri, Jun 18, 2010 at 10:24 AM, Sean Shoufu Luo <luoshoufu at gmail.com>
> wrote:
> > Thomas,
> > Thanks for quick reply. I forget to paste my environment: I load pnic.rom
> in
> > bochs.
> > pnic.rom
> > 1. #define CONSOLE_SERIAL
> > 2. #DBGLVL_MAX  1
> > It seems console works since I can see the log 'no more network devices'
> in
> > the other end of serial. Is it?
> > But the DBG is not enabled ... I call undi_start, but no expected log ...
> > -Sean-
> >
> >
> > On Fri, Jun 18, 2010 at 4:10 PM, Thomas Miletich <
> thomas.miletich at gmail.com>
> > wrote:
> >>
> >> Hello,
> >> to enable serial console support open the file src/config/console.h
> >> and change the line
> >>  //#define       CONSOLE_SERIAL
> >> to
> >>  #define       CONSOLE_SERIAL
> >>
> >> CONSOLE_PCBIOS is already enabled by default for x86 build targets and
> >> there's no need to enable it again in console.h.
> >>
> >> The default settings are 115200 baud 8n1 on the first serial port(I/O
> >> address 0x3f8). Most BIOSes allow changing the I/O address of the
> >> serial ports. It's possible that your 'first' serial port now has the
> >> I/O address of some other serial port and you have to adjust it's
> >> value in the BIOS or in config/serial.h. Alternatively you could use
> >> the serial port that as the I/O address 0x3f8 on your system.
> >>
> >> If this is what you already tried, we would like to know more about
> >> your setup(i.e. what serial cable did you use, did you use the right
> >> baud rate, etc).
> >>
> >> Thomas
> >>
> >> On Fri, Jun 18, 2010 at 9:57 AM, Sean Shoufu Luo <luoshoufu at gmail.com>
> >> wrote:
> >> > I am newbie for gpxe, and intend to transfer from etherboot to gpxe
> ....
> >> > In etherboot, I just configure src/Config, but I don't find any
> >> > configure
> >> > file under gpxe.
> >> > I tried to uncomment CONSOL_PCBIOS, CONSOL_SERIAL in config/console.h,
> >> > but
> >> > it seems not work!
> >> > I didn't find workable guide from wiki, anyone can give a brief
> >> > instruction?
> >> > Or paste a guide link?
> >> >
> >> > Another question:  how to enable DBG() to work? It seems a bit complex
> >> > ...
> >> > Yours sincerely,
> >> > Sean
> >> > --
> >> > Face to sun
> >> >
> >> > _______________________________________________
> >> > gPXE-devel mailing list
> >> > gPXE-devel at etherboot.org
> >> > http://etherboot.org/mailman/listinfo/gpxe-devel
> >> >
> >> >
> >
> >
> >
> > --
> > Face to sun
> >
>



-- 
Face to sun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://etherboot.org/pipermail/gpxe-devel/attachments/20100618/7298e974/attachment.html 


More information about the gPXE-devel mailing list