NetBSD/tools
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
..
asn1_compile
autoconf
binstall
binutils - build "binutils" and "gcc" separately if USE_TOOLS_TOOLCHAIN is not set 2003-07-25 16:26:51 +00:00
cap_mkdb
cat
cksum
compat Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
compile_et
config
crunchgen
ctags
db
dbsym - build "binutils" and "gcc" separately if USE_TOOLS_TOOLCHAIN is not set 2003-07-25 16:26:51 +00:00
fgen
file When building with "-j 2", linking the "file" tool failed because 2003-07-08 03:41:34 +00:00
gcc for mknative, make sure we look in the target's /lib directly as the 2003-08-23 10:07:25 +00:00
gencat
gettext Rename a large chunk of the make(1) variables which refer to a 2003-07-10 10:33:58 +00:00
groff Add INSTALL_INFO=${TOOL_INSTALL_INFO:Q} to MAKE_ARGS. 2003-08-22 00:12:18 +00:00
hexdump
host-mkdep Fix 2 remaining places items are depending on execute permissions coming out 2003-08-11 19:26:04 +00:00
installboot
lex
lint
lint1
lint2
lorder
m4
make netbsd.org->NetBSD.org 2003-07-26 20:17:31 +00:00
makefs
makewhatis Use "nbnroff" instead of "nroff". 2003-06-14 17:57:26 +00:00
mdsetimage - build "binutils" and "gcc" separately if USE_TOOLS_TOOLCHAIN is not set 2003-07-25 16:26:51 +00:00
menuc
mips-elf2ecoff
mkcsmapper Citrus iconv support(3) 2003-06-26 06:30:07 +00:00
mkdep
mkesdb Citrus iconv support(3) 2003-06-26 06:30:07 +00:00
mklocale
mktemp
msgc
mtree
pax
prep-mkbootimage
pwd_mkdb
rpcgen
stat add stat(1) as a host tool 2003-07-20 14:06:32 +00:00
sunlabel
texinfo
toolchain document how to generate GCC3.3 bootstrap info with mknative 2003-07-27 15:00:52 +00:00
tsort
uudecode
yacc
zic
Makefile - build "binutils" and "gcc" separately if USE_TOOLS_TOOLCHAIN is not set 2003-07-25 16:26:51 +00:00
Makefile.gnuhost set HOST_CFLAGS+= -no-cpp-precomp when configuring gnu software on Darwin 2003-10-07 14:12:36 +00:00
Makefile.gnuwrap
Makefile.host