Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2000 15:52:43 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Doug Ambrisko <ambrisko@whistle.com>
Cc:        Paul Saab <paul@mu.org>, Alan Edmonds <aedmonds@digitalconvergence.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: PXE (pxeboot) and serial consoles - force it! 
Message-ID:  <200007102252.PAA07378@mass.osd.bsdi.com>
In-Reply-To: Your message of "Mon, 10 Jul 2000 15:31:36 PDT." <200007102231.PAA16902@whistle.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Paul Saab writes:
> | set console="comconsole" is what you want in /boot/loader.rc
> 
> Yep, except that it doesn't initialize the com port, it just starts
> using it so you end up with junk out the port.  However, if you have a
> BIOS that setups the baud rate etc. of the serial port then you would
> be okay.  Current FreeBSD does this in the boot blocks and not the loader.

Are you sure about this?

sys/boot/common/console.c:cons_probe()
...
    consoles[active]->c_init(0);
...

sys/boot/i386/libi386/comconsole.c:
static int      comc_started;
...
static int
comc_init(int arg)
{
    if (comc_started && arg == 0)
        return 0;
    comc_started = 1;

    outb(COMPORT + com_cfcr, CFCR_DLAB | COMC_FMT);
    outb(COMPORT + com_dlbl, COMC_BPS(COMSPEED) & 0xff);
    outb(COMPORT + com_dlbh, COMC_BPS(COMSPEED) >> 8);
    outb(COMPORT + com_cfcr, COMC_FMT);
    outb(COMPORT + com_mcr, MCR_RTS | MCR_DTR);

    do
        inb(COMPORT + com_data);
    while (inb(COMPORT + com_lsr) & LSR_RXRDY);

    return(0);
}

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007102252.PAA07378>