NetBSD/sys/arch/i386/stand
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
..
biosboot Silence a gcc 3 warning about a 'x = ++x % foo' construct. 2003-05-09 00:16:55 +00:00
biosboot_com0
biosboot_com0_9600
biosboot_com0_38400
biosboot_com0_57600
biosboot_com0_115200
biosboot_resetvideo
biosboot_ser
boot Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
bootxx Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
dosboot Fix signed/unsigned warnings. 2003-08-31 22:40:13 +00:00
genprom This is a host program. Don't use errx. 2003-05-08 13:42:17 +00:00
installboot installboot is compiled in native mode on amd64, unlike the other 2003-05-09 00:11:26 +00:00
lib Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
libsa Fix signed/unsigned warnings. 2003-08-31 22:40:13 +00:00
mbr Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
misc
netboot NOxxx= variables should appear first 2003-07-10 11:30:43 +00:00
pxeboot Backout previous, this file is not affected by kernel options. 2003-06-23 14:48:37 +00:00
pxeboot_com0
Makefile No longer build biosboot*.sym and installboot. 2003-07-26 08:45:12 +00:00
Makefile.booters Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
Makefile.inc