From owner-freebsd-small Sat May 23 22:29:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA12416 for freebsd-small-outgoing; Sat, 23 May 1998 22:29:10 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles167.castles.com [208.214.165.167]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA12402 for ; Sat, 23 May 1998 22:29:02 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id VAA04131 for ; Sat, 23 May 1998 21:25:12 -0700 (PDT) Message-Id: <199805240425.VAA04131@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: freebsd-small@FreeBSD.ORG Subject: Re: BIOS bootstrap? In-reply-to: Your message of "Sat, 23 May 1998 12:00:52 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 23 May 1998 21:25:12 -0700 From: Mike Smith Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > This is a tiny bit off-topic for the list, but I thought I'd throw it out > > > there... > > > > > > My embedded system supports BIOS extension and includes it's own local > > > Flash memory to do so. Basically what I'd like to do is build some sort of > > > (EE)ROM bootstrap to load my custom FreeBSD operating system. HOWEVER... > > > > > > All input/output must be done via COM1. I've never done much low level PC > > > programming...has anyone attempted something like this? In an ideal world, > > > I'd also be looking to front-end the BIOS setup screen over COM1. > > > > > > And, no, I can't just get a BIOS kit and re-write the BIOS :-p > > > > The FreeBSD bootstrap already supports serial console I/O, and FreeBSD > > has always supported serial consoles. You can tweak the bootblock > > build to always use com1 for I/O, and then set the appropriate flags in > > the kernel to use com1 as the serial console. > > Sorry, I guess I wasn't very clear... > > I'm talking about system bootstrap stuff *before* the FreeBSD > bootstrap...i.e. showing some sort of POST output, allowing the user to > possibly tweak some BIOS settings, etc. all over a console. You would have to hijack the video BIOS (steal its vectors, presuming the system BIOS calls it 'legally') and shadow the screen using a nominated terminal emulation. Given you can write BIOS extensions, that's not impossible, but it is quite a lot of work, and if you're not familiar with low-level PC bitbashing you have quite a lot to learn. (That's not intended to discourage you - just some perspective.) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message