Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
serial console output - characters printed twice
2015-09-11, 08:33
Post: #5
RE: serial console output - characters printed twice
(2015-09-10 12:54)mcb30 Wrote:  Sorry, I didn't explain myself clearly enough.

CONSOLE_PCBIOS is the "normal" console which writes to the screen and reads from the keyboard.

CONSOLE_SERIAL is iPXE's own serial port driver.

BIOS serial redirection is a feature implemented by your BIOS (and configurable via your BIOS setup screen) in which characters written to the screen will also be sent to the serial port.

The problem is that you have both CONSOLE_SERIAL and BIOS serial redirection enabled. iPXE writes each character both to the screen (due to CONSOLE_PCBIOS) and to the serial port (due to CONSOLE_SERIAL). Your BIOS then writes an additional copy of the character to the serial port, since you have BIOS serial redirection enabled. You therefore end up with two copies of each character on the serial port: one written directly by iPXE, one written by your BIOS.

The solution is to either disable CONSOLE_SERIAL or to disable your BIOS serial redirection (via your BIOS setup screen). Do not disable CONSOLE_BIOS unless you really don't want to be able to interact via a local keyboard and monitor.

You may find that iPXE's CONSOLE_SERIAL is more robust than your BIOS's serial redirection feature, and so it might be preferable to leave CONSOLE_SERIAL enabled and disable the BIOS serial redirection (via your BIOS setup screen).


OK, now I got it. Thanks for the explanation.

At least in the case of this alix board the serial driver of iPXE is indeed the preferable variant (haven't tried other serial devices yet), as the menu isn't displayed properly using the BIOS's redirection feature.

Unfortunately these devices are shipped with a very limited BIOS, in fact only the boot settings can be altered.

Nevertheless, I found a solution I'm happy with. I modified the file config/defaults/pcbios.h by changing the line defining the CONSOLE_PCBIOS option to:

This way at least the menu is printed only once in my serial setup and the iPXE output seems also to be fine in normal cases (non serial).
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: serial console output - characters printed twice - lupowolfi - 2015-09-11 08:33

User(s) browsing this thread: 1 Guest(s)