Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Wayne Knowles <wdk@netbsd.org>
List: source-changes
Date: 08/22/2000 14:59:37
Module Name:	syssrc
Committed By:	wdk
Date:		Tue Aug 22 11:59:36 UTC 2000

Modified Files:
	syssrc/sys/arch/mipsco/include: disklabel.h
	syssrc/sys/arch/mipsco/mipsco: disksubr.c

Log Message:
* Tidy up reading of Mips volume header information
  All compatable values are copied from the MIPS volume header to the
  BSD disklabel structures.

* Add support for writing Mips volume header.

* Remove support for writing NetBSD label directly (this was broken)

These changes allow the kernel to read either a BSD disklabel created under
NetBSD/sparc or a MIPS volume header created under RISC/os.

There is a small amount of losage with the conversion between the 2
types of disk labels (mainly to do with file system types).
A table is used to map partition numbers and types between the two
types, and unless someone does something real fancy (or crazy) it should
work in both senario's

This change will allow the stand alone shell to directly load a NetBSD
kernel and mount a file system, avoiding the need for a seperate disk or
bootp server to bootstrapping NetBSD.

NetBSD/mipsco is now self sufficiant.  We are not far from having a
miniroot filesystem and removing the need to have another NetBSD
machine to create the base filesystems.

Minor Trap for young players:
   The root partition must be created with 'newfs -O' in order for the
   stand alone shell to boot the kernel

TODO:
   Add support for writing NetBSD disk labels back in - it will be useful
   for non boot disks.   I'm just not sure how to control the 2 behavours


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/mipsco/include/disklabel.h
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/mipsco/mipsco/disksubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.