Home | History | Annotate | Download | only in ofwboot
History log of /src/sys/arch/shark/stand/ofwboot/ofdev.c
RevisionDateAuthorComments
 1.9  10-Feb-2024  andvar Fix various typos in comments, log messages and documentation.
 1.8  13-Sep-2006  uebayasi Resolve conflict (extern struct devsw devsw[] vs. static struct devsw devsw[]).
 1.7  11-Dec-2005  christos branches: 1.7.8; 1.7.20;
merge ktrace-lwp.
 1.6  23-Jun-2005  junyoung branches: 1.6.2;
Use FS_OPS() macro.
 1.5  22-Jun-2005  junyoung Remove trailing spaces.
 1.4  30-Jun-2004  christos - full ansi prototypes
- turn WARNS=3 on
 1.3  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.2  18-Jun-2002  itojun branches: 1.2.2; 1.2.8;
avoid hardcoding MBR_MAGICOFF and MBR_MAGIC.
 1.1  10-Feb-2002  thorpej branches: 1.1.2; 1.1.10;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.10.1  17-Jul-2002  gehenna catch up with -current.
 1.1.2.3  20-Jun-2002  nathanw Catch up to -current.
 1.1.2.2  28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1  10-Feb-2002  nathanw file ofdev.c was added on branch nathanw_sa on 2002-02-28 04:11:59 +0000
 1.2.8.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.8.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.8.2  18-Sep-2004  skrll Sync with HEAD.
 1.2.8.1  03-Aug-2004  skrll Sync with HEAD
 1.2.2.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.2.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.1  18-Jun-2002  jdolecek file ofdev.c was added on branch kqueue on 2002-06-23 17:41:39 +0000
 1.6.2.1  30-Dec-2006  yamt sync with head.
 1.7.20.1  18-Nov-2006  ad Sync with head.
 1.7.8.1  14-Sep-2006  yamt sync with head.

RSS XML Feed