BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • nullconsole?

    10 answers - 709 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hello list,
    Is there a nullconsole in BSD, similar to the nullconsole in FreeBSD?
    I have a WRAP box where I need to use the serial port to interface an
    external device. I don't want the default console on the serial port,
    because any kernel console messages would disturb the communication.
    the WRAP, "set tty pc0" in /etc/boot.conf still uses the serial
    port. This might be due to some BIS setting, but I'd rather not
    change that as re-setting the BIS seems to be non-trivial.
    What I'm looking for is a "set tty none" or similar in /etc/boot.conf.
    Any ideas?
    I'll go ahead and implement it myself.
    TIA
    Martin Hedenfalk
  • No.1 | | 755 bytes | |

    1/17/07, Martin Hedenfalk <martin.hedenfalk (AT) gmail (DOT) comwrote:
    Hello list,

    Is there a nullconsole in BSD, similar to the nullconsole in FreeBSD?

    I have a WRAP box where I need to use the serial port to interface an
    external device. I don't want the default console on the serial port,
    because any kernel console messages would disturb the communication.

    Comment out the line in "/etc/syslog.conf" that sends stuff to
    "/dev/console". my 4.0-current box that isthe default BTW

    # Uncomment this line to send "important" messages to the system
    # console: be aware that this could create lots of output.
    err;auth.notice;authpriv.none;kern.debug;mail.crit /dev/console

    ==Adriaan==
  • No.2 | | 755 bytes | |

    1/17/07, Martin Hedenfalk <martin.hedenfalk (AT) gmail (DOT) comwrote:
    Hello list,

    Is there a nullconsole in BSD, similar to the nullconsole in FreeBSD?

    I have a WRAP box where I need to use the serial port to interface an
    external device. I don't want the default console on the serial port,
    because any kernel console messages would disturb the communication.

    Comment out the line in "/etc/syslog.conf" that sends stuff to
    "/dev/console". my 4.0-current box that isthe default BTW

    # Uncomment this line to send "important" messages to the system
    # console: be aware that this could create lots of output.
    err;auth.notice;authpriv.none;kern.debug;mail.crit /dev/console

    ==Adriaan==
  • No.3 | | 832 bytes | |

    Wednesday 17 January 2007 17:15, Martin Hedenfalk wrote:
    Is there a nullconsole in BSD, similar to the nullconsole in FreeBSD?

    Not that I know but you could always set it to a non-existant tty (com1?), I
    guess.
    But that's not the problem here though

    the WRAP, "set tty pc0" in /etc/boot.conf still uses the serial
    port. This might be due to some BIS setting, but I'd rather not
    change that as re-setting the BIS seems to be non-trivial.

    This sounds like the BIS is redirecting vga to the serial port and if that is
    the case the only way to use the serial port is to disable the console
    redirection in BIS.

    What I'm looking for is a "set tty none" or similar in /etc/boot.conf.
    If the WRAP is using console redirection this wont help.

    Lars Hansson
  • No.4 | | 1200 bytes | |

    1/17/07, Lars Hansson <lars (AT) unet (DOT) net.phwrote:
    Wednesday 17 January 2007 17:15, Martin Hedenfalk wrote:
    Is there a nullconsole in BSD, similar to the nullconsole in FreeBSD?

    Not that I know but you could always set it to a non-existant tty (com1?), I
    guess.
    But that's not the problem here though

    I've tried it, and "set tty com1" didn't work. Not sure exactly what
    happened but it didn't boot properly anyway.

    the WRAP, "set tty pc0" in /etc/boot.conf still uses the serial
    port. This might be due to some BIS setting, but I'd rather not
    change that as re-setting the BIS seems to be non-trivial.

    This sounds like the BIS is redirecting vga to the serial port and if that is
    the case the only way to use the serial port is to disable the console
    redirection in BIS.
    --
    What I'm looking for is a "set tty none" or similar in /etc/boot.conf.
    If the WRAP is using console redirection this wont help.

    If it was possible to set the default console to "nullconsole", ie
    discarding all console I/, what other part of the system would write
    (directly) to pc0?

    -martin
  • No.5 | | 1115 bytes | |

    Wed, Jan 17, 2007 at 06:32:33PM +0800, Lars Hansson wrote:
    Wednesday 17 January 2007 17:15, Martin Hedenfalk wrote:
    Is there a nullconsole in BSD, similar to the nullconsole in FreeBSD?

    Not that I know but you could always set it to a non-existant tty
    (com1?), I guess. But that's not the problem here though

    the WRAP, "set tty pc0" in /etc/boot.conf still uses the serial
    port. This might be due to some BIS setting, but I'd rather not
    change that as re-setting the BIS seems to be non-trivial.

    This sounds like the BIS is redirecting vga to the serial port and if
    that is the case the only way to use the serial port is to disable the
    console redirection in BIS.

    What I'm looking for is a "set tty none" or similar in /etc/boot.conf.
    If the WRAP is using console redirection this wont help.

    Why not? If you set the system console device to some non-existent com1,
    as you state above, and disable most everything in /etc/ttys, wouldn't
    you be able to make sure the system doesn't use the vga port?

    Joachim
  • No.6 | | 332 bytes | |

    Wednesday 17 January 2007 19:39, Martin Hedenfalk wrote:
    If it was possible to set the default console to "nullconsole", ie
    discarding all console I/, what other part of the system would write
    (directly) to pc0?

    The BIS messages that appear before the S or bootloader is even running.

    Lars Hansson
  • No.7 | | 515 bytes | |

    Wednesday 17 January 2007 19:47, Joachim Schipper wrote:
    Why not? If you set the system console device to some non-existent com1,
    as you state above, and disable most everything in /etc/ttys, wouldn't
    you be able to make sure the system doesn't use the vga port?

    I wa thinking of the messages that the BIS itself usuallt outputs and that
    those would interfere with whatever device is connected.
    setting tty to com1 apparently doesn't work either.

    Lars Hansson
  • No.8 | | 582 bytes | |

    1/17/07, Joachim Schipper <j.schipper (AT) math (DOT) uu.nlwrote:
    Wed, Jan 17, 2007 at 06:32:33PM +0800, Lars Hansson wrote:
    If the WRAP is using console redirection this wont help.

    there is no such thing, as wrap is headless anyway.

    Why not? If you set the system console device to some non-existent com1,
    as you state above, and disable most everything in /etc/ttys, wouldn't
    you be able to make sure the system doesn't use the vga port?

    Joachim
    --

    there is no vga port on the wrap

    http://www.pcengines.ch
  • No.9 | | 509 bytes | |

    1/17/07, Lars Hansson <lars (AT) unet (DOT) net.phwrote:
    Wednesday 17 January 2007 19:39, Martin Hedenfalk wrote:
    If it was possible to set the default console to "nullconsole", ie
    discarding all console I/, what other part of the system would write
    (directly) to pc0?

    The BIS messages that appear before the S or bootloader is even running.

    Sure, but that output would be acceptable.

    I'll implement a nullconsole and post a patch to tech@.

    -martin
  • No.10 | | 450 bytes | |

    10:15 Wed 17 Jan , Martin Hedenfalk wrote:
    Hello list,

    Is there a nullconsole in BSD, similar to the nullconsole in FreeBSD?

    in /usr/src/sys/kern/subr_prf.c

    in printf function:
    -- retval = kprintf(fmt, TCNS | TLG, NULL, NULL, ap);
    ++ retval = kprintf(fmt, TLG, NULL, NULL, ap);

    and recompile it.

    I don't know if this is a good thingbut for now i use it :)

    fabioFVZ

    CN 2007 :)

Re: nullconsole?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "BSD"

EMSDN.COM