NetBSD/sys/arch/i386/stand
drochner 04682788a9 misc improvements:
-initialize errno to 0 before receiving
-minimal allowed packet size is 4 (empty data packet)
-Be nice to the TFTP server - tell it that the transfer is finished
  (additinal ACK at EOF, ERROR otherwise). Otherwise, it will linger
  around and retransmit. This can be left out (TFTP_NOTERMINATE) if we
  are really short on space.
1998-05-14 18:26:47 +00:00
..
biosboot Make main() return int to shut up egcs. (Yuck.) 1998-03-31 05:29:21 +00:00
dosboot ../lib/exec_fromdos.c doesn't use the memory size returned by XMS check 1997-11-03 18:17:19 +00:00
genprom Make "genprom" work in objdir. 1997-08-20 16:53:30 +00:00
installboot allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-02 19:57:00 +00:00
lib allow to access from user space test programs 1998-05-14 18:15:02 +00:00
libsa misc improvements: 1998-05-14 18:26:47 +00:00
netboot allow to use from user space test programs 1998-05-14 18:17:44 +00:00
Makefile
Makefile.booters add -nostdinc to CPPFLAGS, so that /usr/include won't be used 1998-03-27 01:32:53 +00:00
README Initial import of new boot code, created by Matthias Drochner with a 1997-03-14 02:40:29 +00:00
newvers.sh New welcome banner code, modeled after NetBSD/hp300's boot program 1997-07-26 01:50:36 +00:00

README

$NetBSD: README,v 1.1.1.1 1997/03/14 02:40:29 perry Exp $

[This is Matthias Drochner's original README, very lightly edited.]

libsa-based bootcode for i386
should work with -current libsa (I used 97/02/06.)

contents:
./libsa: additions to sys/lib/libsa, not i386 specific
./lib: i386 specific parts
./lib/netif: driver for ethernet adapters
./biosboot: boot sector for hd / fd
./installboot: program to install boot sector
./dosboot: DOS program to boot from DOS or UFS drives
./netboot: ROM image for diskless boot
./genprom: program to create ROM image

to build:
make, hopefully
perhaps adjust "S" to location of kernel sources

notes:
-to install bootsect:
  mount /dev/XdNa /somewhere
  installboot biosboot.sym /dev/rXdNa
-netboot ethernet cards:
  select with USE_NETIF
  for wd80x3, BASEREG and BASEMEM must be set properly
  for pcnet_isapnp, ISAPNPID must be set properly
-text+data+bss+stack <= 64k, heap can be above

Please report all errors!

Source taken from FreeBSD (as noted in the file) has the following copyright:

Copyright 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved. 

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

    1. Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.
    3. All advertising materials mentioning features or use of this
       software must display the following acknowledgement:

	This product includes software developed by the University of
	California, Berkeley and its contributors.

    4. Neither the name of the University nor the names of its
       contributors may be used to endorse or promote products derived
       from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.