[gPXE-devel] [PATCH]: Making gPXE silent when CONSOLE_DIRECT_VGA is unset
Erwan Velu
erwanaliasr1 at gmail.com
Mon Jun 7 12:05:06 EDT 2010
Hey folks,
I'm running gPXE is an industrial environment where all the bios
message must be hidden. We do have a tweak bios that do this job.
Since I added gPXE instead of my original ROM, I disabled the VGA
screen by using CONSOLE_DIRECT_VGA and enabled the serial line for
debugging purposes.
That works nicely except a last message is remaning "gpxe (pciid) -
starting exec".
While looking at the code I saw this message is printed
uncondtionnaly. I wrote a stupid patch that ifdef that section.
If this patch make sense for you too, can it be pulled upstream ?
Sincerly,
Erwan Velu
The patch looks like :
diff --git a/src/arch/i386/prefix/romprefix.S b/src/arch/i386/prefix/romprefix.S
index 02e5497..c34f5ba 100644
--- a/src/arch/i386/prefix/romprefix.S
+++ b/src/arch/i386/prefix/romprefix.S
@@ -955,12 +955,14 @@ exec: /* Set %ds = %cs */
1:
#endif
+#ifdef CONSOLE_DIRECT_VGA
/* Print message as soon as possible */
movw $prodstr, %si
xorw %di, %di
call print_message
movw $exec_message, %si
call print_message
+#endif
/* Store magic word on BIOS stack and remember BIOS %ss:sp */
pushl $STACK_MAGIC
The patch can be also found here if the output from gmail sux :
http://mandriva.pastebin.com/0HyfhWZH
More information about the gPXE-devel
mailing list