Home | History | Annotate | only in /src/tools/compat/sys
History log of /src/tools/compat/sys
RevisionDateAuthorComments
 1.2 08-Oct-2003  lukem 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!).
 1.1 12-May-2002  bjh21 Use the target disklabel_mbr.h, since it just describes data structures for
use on the target. This gets prep-mkbootimage to compile under Linux.
 1.2 28-Jan-2007  dogcow Back out this addition; it's The Wrong Thing when other system headers get
included.
 1.1 28-Jan-2007  dogcow Due to recent changes in the cd9660 code, crosscompilation of tools/makefs
now fails due to the use of [be]e{16,32}dec. Add a compat header, and force
the inclusion of <sys/endian.h>.
 1.1 19-Jul-2007  jmmv branches: 1.1.2; 1.1.8; 1.1.20;
sys/queue.h now requires sys/null.h, so add a compatibility header file.
Fixes build of tools under, e.g. Mac OS X.
 1.1.20.2 19-Jul-2007  jmmv sys/queue.h now requires sys/null.h, so add a compatibility header file.
Fixes build of tools under, e.g. Mac OS X.
 1.1.20.1 19-Jul-2007  jmmv file null.h was added on branch matt-mips64 on 2007-07-19 13:49:13 +0000
 1.1.8.2 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.1.8.1 19-Jul-2007  wrstuden file null.h was added on branch wrstuden-fixsa on 2007-09-03 07:05:26 +0000
 1.1.2.2 21-Jul-2007  liamjfoy Pull up following revision(s) (requested by jmmv in ticket #778):
tools/compat/sys/null.h: revision 1.1
sys/queue.h now requires sys/null.h, so add a compatibility header file.
Fixes build of tools under, e.g. Mac OS X.
 1.1.2.1 19-Jul-2007  liamjfoy file null.h was added on branch netbsd-4 on 2007-07-21 12:50:51 +0000
 1.1 21-Jan-2002  tv Make many host tools compile on non-NetBSD hosts. Not complete, but
very nearly there.
 1.1 08-May-2019  thorpej branches: 1.1.2;
Fix building libprop as a host tool library on platforms that don't have
the Matt Thomas rbtree:

- Include rb.c in libnbcompat, and provide a nbcompat sys/rbtree.h
header.
- Make sure libprop's source file include prop_object_impl.h before
anything else, and pull in nbtool_config.h from there.

Tested by simulating such a host system by renaming the host's
<sys/rbtree.h> out of the way (which reproduced the build failure)
and verifying that the host-tool installboot contained the rb_*
functions in its own .text segment.
 1.1.2.2 10-Jun-2019  christos Sync with HEAD
 1.1.2.1 08-May-2019  christos file rbtree.h was added on branch phil-wifi on 2019-06-10 22:10:14 +0000
 1.1 27-Oct-2006  mrg make sure we can find <sys/{rmd160,sha2}.h>. make sure the crypto/foo.h
versions of these include something that exists...
 1.2 12-Mar-2013  christos not a good place to include "nbtool_config.h"
 1.1 29-Oct-2006  dogcow branches: 1.1.40; 1.1.46;
cross (and native) building works again. woo.
 1.1.46.1 23-Jun-2013  tls resync from head
 1.1.40.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 27-Oct-2006  mrg make sure we can find <sys/{rmd160,sha2}.h>. make sure the crypto/foo.h
versions of these include something that exists...
 1.2 27-Mar-2010  cegger remove OSX specific fix where CLOCK_REALTIME is not defined.
It has been properly fixed in
http://mail-index.netbsd.org/source-changes/2010/03/26/msg008200.html
 1.1 26-Mar-2010  cegger toolchain buildfix on OSX with MKDTRACE=yes:

The host <sys/time.h> doesn't provide CLOCK_REALTIME but ctf uses it.
See http://mail-index.netbsd.org/current-users/2010/03/20/msg012963.html

No comments.
 1.1 20-Dec-2006  agc Fixes to allow veriexecgen to be built as a host tool.

RSS XML Feed