Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2000 14:00:55 -0700 (PDT)
From:      Doug Ambrisko <ambrisko@whistle.com>
To:        Alan Edmonds <aedmonds@digitalconvergence.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: PXE (pxeboot) and serial consoles - force it!
Message-ID:  <200007102100.OAA14857@whistle.com>
In-Reply-To: <396A3126.78203836@digitalconvergence.com> from Alan Edmonds at "Jul 10, 2000 03:25:10 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Alan Edmonds writes:
| 
| I'm playing with PXE and pxeboot.   I have a question about
| setting the serial console option.  The PC BIOS reports 
| 'No Keyboard Present', but when PXE boots, BTX reports
| console as internal keyboard/video.  So, I'm looking at
| hard coding a serial console into BTX.  Normally, you
| put the -h option into /boot.conf, but PXE doesn't
| read that.  I tried putting console=comconsole into
| /boot/loader.rc, but it didn't work quite right.
| I modified src/sys/boot/i386/common/conf.c and
| removed the vidconsole option and that worked.
| I could set the flags in the kernel to 0x20 to
| force serial and that worked.

I think the issue is that the loader (ie pxeboot in this case) does not
initialize the COM port.  So in the case in which you don't have the 
boot block initialize the COM port (ie the -h option) then you get
garbage out the serial port at best.  I ran into the same problem.

So it works fine from the boot blocks but is broken otherwise.  To fix
this the loader need to initialize the COM port.  However, this means
it needs to know the baud rate etc.  So you would have to set it 
in the boot block and in the loader or am I missing something.
I assume the loader didn't set this so people changing the baud rate
wouldn't have to do it all over the place.

If someone provides more insight then I should be able to make the
required changes and submit them.

Doug A.


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?200007102100.OAA14857>