From owner-freebsd-hackers Mon Jul 10 15:44:46 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-51.dsl.snfc21.pacbell.net [63.202.177.51]) by hub.freebsd.org (Postfix) with ESMTP id EEEDC37B6B5 for ; Mon, 10 Jul 2000 15:44:41 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id PAA07378; Mon, 10 Jul 2000 15:52:43 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200007102252.PAA07378@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Doug Ambrisko Cc: Paul Saab , Alan Edmonds , freebsd-hackers@FreeBSD.ORG Subject: Re: PXE (pxeboot) and serial consoles - force it! In-reply-to: Your message of "Mon, 10 Jul 2000 15:31:36 PDT." <200007102231.PAA16902@whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 10 Jul 2000 15:52:43 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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