NetBSD/sys/arch/sun68k/stand
lukem 966b42a3e6 bootblock.h:
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
  and sun68k_bbinfo (296 byte, with 64 block entries)
  into shared_bbinfo (512 bytes, with 118 block entries),
  which will be also shared by future bbinfo-using platforms
  (including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
  bootxx version skew.
- add macppc support

*/bootxx.c:
- migrate to new shared_bbinfo structure

installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
  perform the majority of the work for bbinfo-using back-ends
  (rather than replicating that across multiple back-ends).
2002-05-15 09:44:54 +00:00
..
bootxx bootblock.h: 2002-05-15 09:44:54 +00:00
bootyy - implement putstr(), and use in various places instead of printf() 2002-05-15 04:07:41 +00:00
libsa - implement putstr(), and use in various places instead of printf() 2002-05-15 04:07:41 +00:00
netboot MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
tapeboot - implement putstr(), and use in various places instead of printf() 2002-05-15 04:07:41 +00:00
ufsboot MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
Makefile Removed the old installboot, we now use the new /usr/sbin/installboot. 2002-04-22 21:15:40 +00:00
Makefile.inc - implement putstr(), and use in various places instead of printf() 2002-05-15 04:07:41 +00:00
README

README

/*	$NetBSD: README,v 1.1 2001/06/14 12:57:12 fredette Exp $ */

The sun bootblocks are split into two parts: a small 1st-level program that
gets written right after the superblock in a partition (and is hence limited
in size to SBSIZE - DEV_BSIZE bytes), and a 2nd-level program that resides
in the filesystem proper.

The 1st-level program is loaded into memory by the PROM. It loads the second
stage program from a set of filesystem block numbers that are hard-coded
into it by the `installboot' program. The prototype code for the 1st-level
bootblocks are in `bootxx'.

The 2nd-level program (`ufsboot') is normally installed in the root FS
as `/ufsboot'. It uses the device drivers in the PROM and the stand-alone
filesystem code in `libsa.a' to locate and load the kernel.

Use the following command to install the 1st-level bootblocks in the
root filesystem (on `sd0a') using the file `/boot' as the second level
boot program:

	mount /dev/sd0a /mnt
	cd /usr/mdec
	cp -p ufsboot /mnt/ufsboot
	sync ; sleep 1 ; sync
	./installboot -v /mnt/ufsboot bootxx /dev/rsd0a

The above only works with securelevel <= 0 (see init.8 manual).

Status:

netboot works.

bootxx, installboot are tested and working.  It would be nice if
installboot would find the inumber for the 2nd stage boot program
without having the filesystem mounted so this command can work
with securelevel==1 (the default).  Doing this requies adding
code to read and do a directory lookup in the root...