[ipxe-devel] [ipxe/ipxe] [serial] Allow serial port configuration at runtime (#107)

Faidon Liambotis notifications at github.com
Fri Mar 6 14:53:11 UTC 2020


Add configuration variables for the serial port and its options,
allowing the configuration of a serial port at runtime via either "set",
or DHCP options.

The new "serial-port" option accepts values of "1" through "4" for COM1
to COM4 respectively. For the serial options, rather than adding a
configuration variable for each of them (baud, parity etc.) and
complicate both the code and the configuration unncessarily, add a
single, generic "serial-options" setting that accepts string values such
as "115200" or "38400n81". It also accepts the special value "preserve"
to preserve the previous configuration of the serial port.

Note that this commit does _not_ enable CONSOLE_SERIAL by default,
although that could potentially follow in a subsequent commit, given
this would be now a no-op unless a port is explicitly configured.
You can view, comment on, or merge this pull request online at:

  https://github.com/ipxe/ipxe/pull/107

-- Commit Summary --

  * [serial] Allow serial port configuration at runtime

-- File Changes --

    M src/config/serial.h (26)
    M src/core/serial.c (214)
    M src/include/ipxe/dhcp.h (4)
    M src/include/ipxe/errfile.h (1)

-- Patch Links --

https://github.com/ipxe/ipxe/pull/107.patch
https://github.com/ipxe/ipxe/pull/107.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20200306/4d65e236/attachment.htm>


More information about the ipxe-devel mailing list