The NetBSD Project

CVS log for src/distrib/utils/sysinst/Attic/mbr.h

[BACK] Up to [cvs.NetBSD.org] / src / distrib / utils / sysinst

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26.8.1, Tue Aug 19 23:45:46 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.26: +1 -1 lines
FILE REMOVED

Rebase to HEAD as of a few days ago.

Revision 1.26.20.1, Sun Aug 10 06:48:49 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.26: +1 -1 lines
FILE REMOVED

Rebase.

Revision 1.27, Sat Jul 26 19:30:39 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, localcount-20160914, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.26: +1 -1 lines
FILE REMOVED

Move sysinst sources to usr.sbin.

This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 30 20:09:15 2011 UTC (12 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.4.2.4 (colored)

dependant -> dependent

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:12 2011 UTC (12 years, 11 months ago) by mbalmer
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.24: +9 -13 lines
Diff to previous 1.24 (colored) to selected 1.4.2.4 (colored)

Remove the advertisement clause from files copyrighted by Piermont Information
Systems, with the consent of the copyright owner, Perry E. Metzger.

Revision 1.22.36.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:20:43 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.4.2.4 (colored)

sync to netbsd-5

Revision 1.24 / (download) - annotate - [select for diffs], Sat Sep 19 14:57:27 2009 UTC (14 years, 6 months ago) by abs
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.4.2.4 (colored)

defs.h:
- Re-order the md_*() definitions so they are in the order called
- Add some comments
- Remove obsolete md_set_no_x() definition
- Remove md_copy_filesystem()
- #if defined(DEBUG) declare backtowin(void) to avoid scattering
  externs in various md .c files

mbr.[ch]:
- Add a set_bios_geom_with_mbr_guess() which can be called by all
  the non x86 ports rather than copying the same code into arc,
  bebox, cobalt, evbmips, evbppc, hpcarm, hpcmips, landisk, ofppc,
  prep, sandpoint, and zaurus md.c

install.c:
- Remove now unnecessary call to md_copy_filesystem()

upgrade.c:
- Move move_aout_libs() here, and put under #ifdef AOUT2ELF
- Rather than having *every* md_update call wrefresh(curscr),
  wmove(stdscr, 0, 0), wclear(stdscr), and wrefresh(stdscr),
  move them here

arch/acorn26/md.c:
- Just include arch/acorn32/md.c, but add a note there warning
  about this, and while here add a note to i386/md.c that it
  is included by amd64

arch/*/md.c:
- By all means "Vive la difference", but we have 38 pairs of md.[ch],
  and they could not even agree on the order in which to list the
  md hooks, let alone formatting. Sort the md hooks to match the
  (now sane) order in def.sh, and try to normalise the formatting
- Also copy across some function level comments everywhere
- Ensure functions only used inside each md.c are defined as static
- Remove some now unused functions
- Some files had enable_rc_conf in #ifdef DEBUG. Add this to all
- bebox, evbppc and sandpoint were still playing broken games with
  copying the booted ramdisk to the target disk, the primary result
  of which was just to slow things down and ensure the target system
  lost the .profile extracted from the sets. Just kill this.
- For some ports md_update() called endwin(), and in others not.
  Take a cure from i386/amd64 and a few other more active ports,
  and update everything to match (no endwin())
- In a couple of cases correct port names in comments
- ANSIfy some lingering old style functions
- Consistently use "return 0;" rather than "return (0);"

More of the mbr code should be abstracted, along with the
get_ramsize() / set_swap() logic, but this is (more than)
enough for one day...

sysinst built for all ports but only runtime tested on amd64 & i386

Revision 1.22.30.1 / (download) - annotate - [select for diffs], Mon May 18 19:35:14 2009 UTC (14 years, 10 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.4.2.4 (colored)

Pull up following revision(s) (requested by sborrill in ticket #758):
	distrib/utils/sysinst/mbr.c: revision 1.80
	distrib/utils/sysinst/msg.mi.en: revision 1.155
	distrib/utils/sysinst/disks.c: revision 1.105
	distrib/utils/sysinst/arch/i386/md.c: revision 1.122
	distrib/utils/sysinst/savenewlabel.c: revision 1.6
	distrib/utils/sysinst/mbr.h: revision 1.23
	distrib/utils/sysinst/defs.h: revision 1.143
	distrib/utils/sysinst/msg.mi.pl: revision 1.65
	distrib/utils/sysinst/bsddisklabel.c: revision 1.52
	distrib/utils/sysinst/msg.mi.es: revision 1.26
	distrib/utils/sysinst/msg.mi.de: revision 1.49
	distrib/utils/sysinst/msg.mi.fr: revision 1.106
Support drives over 1TB in size (i.e. stop errors like drive is -654343MB in
size).
Error if drive is over 2TB in size (and thus over the disklabel limit).

Revision 1.23 / (download) - annotate - [select for diffs], Thu May 14 16:23:38 2009 UTC (14 years, 10 months ago) by sborrill
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.4.2.4 (colored)

Support drives over 1TB in size (i.e. stop errors like drive is -654343MB in
size).
Error if drive is over 2TB in size (and thus over the disklabel limit).

Revision 1.22.20.1, Sun Oct 5 20:11:09 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.22: +1 -1 lines
FILE REMOVED

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Apr 5 16:55:05 2006 UTC (17 years, 11 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, pc532-eol-2008, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs-base, mjf-devfs, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: netbsd-5, mjf-devfs2, matt-nb5-mips64
Changes since 1.21: +6 -1 lines
Diff to previous 1.21 (colored) to selected 1.4.2.4 (colored)

Rather big update to sysinst, in order to get it working on the prep port.

1) Add an md_post_extract() function.  This function is called after
extracting the sets, and allows the arch to do something at that time.
In the case of prep, it is much easier to install the bootcode after all
the sets are extracted, so we do it in md_post_extract().  Added empty
md_post_extract() functions to all other arches so they compile.

2) Add md_mbr_use_wholedisk() and md_check_mbr().  In edit_mbr() I have
split off the code that uses the whole disk for NetBSD, into the
mbr_use_wholedisk() function.  On most ports that use mbr.c, I made
md_mbr_use_wholedisk() just call that and return.  On prep we create the
magical prep boot partition here.  The md_check_mbr() function allows the
arch to add additional checks after the user had manually edited the MBR
to make sure the choices he made allow NetBSD to function.  Added a dummy
routine to all mbr.c using arches.

3) Added code to bsdlabel.c to create a partition of type boot if
PART_BOOT is defined, but BOOT_SIZE is not defined.  Also added two more
globals "bootsize" and "bootstart" which must be seeded in order to do
so.  This is done on prep in md_check_mbr().

4) Added MBR_PTYPE_PREP to the list of MBR partitions.

5) Made the prep port actually install sanely.  It now creates a prep
boot partition, labels it correctly, installs all the sets, and then runs
mkbootimage and dd's the bootimage into the prep partition.  The result
is a prep installer that creates a bootable NetBSD installation
automatically.

6) Edited the prep menus and messages files to add new labels.  In the
case of the translated files, I just added the words in english for
someone to translate later.

I tried to xcompile a few arches to make sure I didn't break anything,
but I could have missed something.  Please let me know if I have broken
your arch in any way.  I'll watch the autobuilds for the next few days
too. For all ports other than prep there should be no functional changes
at all.

Revision 1.18.2.1.2.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:25:24 2005 UTC (18 years, 8 months ago) by snj
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.18.2.1: +3 -3 lines
Diff to previous 1.18.2.1 (colored) next main 1.19 (colored) to selected 1.4.2.4 (colored)

Apply patch (requested by riz in ticket #5523):
Sync sysinst with HEAD of 2005-07-23.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 17 19:36:59 2004 UTC (19 years, 8 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) to selected 1.4.2.4 (colored)

Kill two more global variables, bsize (bios disk size) was never used
and bcylsize (bios cylinder size) can be calculated in the one place
it is needed.
The ask_sizemult() call will go once I decide what to to with the
(slightly useful) explanatory text about cylinder alignment.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 6 06:06:59 2004 UTC (19 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.4.2.4 (colored)

Get rid of the EXTERN/INIT mess; fix so that we can process this with xstr(1).
Not worth processing though, since on the i386 we only save ~3K.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed Apr 28 05:59:15 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (colored) to selected 1.4.2.4 (colored)

Pullup rev 1.19 (requested by dsl in ticket #199)

Fix mbr bootcode handling to ensure that the bootselect table is always
written into the correct place - even if the user decides not to update
the mbr code and has the old (pre layout change) code installed.
Tell the user that the mbr code needs updating if the new install uses
'all the disk' and the old version had the bootselect code (otherwise you
get an empty menu). PR#25146

Revision 1.19 / (download) - annotate - [select for diffs], Sun Apr 25 21:55:18 2004 UTC (19 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored) to selected 1.4.2.4 (colored)

Fix mbr bootcode handling to ensure that the bootselect table is always
written into the correct place - even if the user decides not to update
the mbr code and has the old (pre layout change) code installed.
Tell the user that the mbr code needs updating if the new install uses
'all the disk' and teh old version had the bootselect code (otherwise you
get an empty menu).
Probably fixes PR install/25146

Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 8 04:25:44 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.17: +19 -7 lines
Diff to previous 1.17 (colored) to selected 1.4.2.4 (colored)

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!).

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 25 08:26:22 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.4.2.4 (colored)

Sprinkle a load of consts, and change a few variable names.
Now compiles with WARNS=3.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 7 12:30:20 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.15: +30 -13 lines
Diff to previous 1.15 (colored) to selected 1.4.2.4 (colored)

Another pass of the rototiller. Mainly:
1) New MBR editor
2) Hierarchic timezone menu

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jun 16 19:42:14 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.14: +17 -17 lines
Diff to previous 1.14 (colored) to selected 1.4.2.4 (colored)

A load of KNF changes, plus a couple of strnxxx => strlxxx my fingers did
on the way through.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jun 14 12:58:45 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.4.2.4 (colored)

Implement a limit on the size of / so that its guaranteed readable by the boot code.
Remove pointless 'len' parameter from read_mbr and write_mbr.
Make read_mbr initialise mbr if it can't be read (delete MD code).
Make i386 always ask at least once about the bootcode.
Move LIB_MOVE and LIB_COUNT from md.h to aout2elf.c

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 16 19:38:18 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.12: +6 -3 lines
Diff to previous 1.12 (colored) to selected 1.4.2.4 (colored)

Move definition of BOOTSEL to MD Makefile

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 7 19:02:53 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.11: +11 -1 lines
Diff to previous 1.11 (colored) to selected 1.4.2.4 (colored)

Pull some code fragments from machine and language dependant files into mbr.c
Resynchronise amd64 with i386

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 7 10:20:18 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.10: +7 -7 lines
Diff to previous 1.10 (colored) to selected 1.4.2.4 (colored)

Use C structure mbr_sector_t instead of char[] for 'mbr'.
(I hope the edits for the ports I can't build are right!)
i386/amd64 pick up a minor change to the md_read_bootcode which
might preseve the bootselect config.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 10 20:00:28 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.4.2.4 (colored)

pass lint[pass1]

Revision 1.9 / (download) - annotate - [select for diffs], Fri Dec 22 10:12:13 2000 UTC (23 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.8: +17 -17 lines
Diff to previous 1.8 (colored) to selected 1.4.2.4 (colored)

de-__P()-ify

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Mon Jul 12 19:30:24 1999 UTC (24 years, 8 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.4.2.4: +2 -2 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

pullup 1.7->1.8 (fvdl): fix upgrade core dump

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 10 23:07:15 1999 UTC (24 years, 8 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.4.2.4 (colored)

Don't try to convert the CHS values if not needed. Add extra flag
to write_mbr to for this.

Revision 1.4.2.4 / (download) - annotate - [selected], Thu Jun 24 23:00:04 1999 UTC (24 years, 9 months ago) by cgd
Branch: netbsd-1-4
Changes since 1.4.2.3: +2 -2 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)

pull up rev(s) 1.7 from trunk. (cgd)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:14 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: dynamic-messages-base, dynamic-messages
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.4.2.4 (colored)

copyright notice typo fixups, as noticed in PR#7248.  This software
was developed, not develooped.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Sun May 2 21:44:32 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Changes since 1.4.2.2: +2 -1 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) to selected 1.4.2.4 (colored)

pullup 1.5->1.6 (fvdl)

Revision 1.6 / (download) - annotate - [select for diffs], Sun May 2 13:07:15 1999 UTC (24 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.4.2.4 (colored)

Change partition type if we're installing into an old 386bsd partition.
Check if there's no active partition after MBR editing.
Ask for own MBR to be installed if we're booting from out of CHS range.
Ask for bootselector to be installed if > 1 OS, and configure it.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:27 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
Changes since 1.4.2.1: +1 -1 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) to selected 1.4.2.4 (colored)

sync with head. yes, this is an unorthodox pullup.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Mon Apr 5 15:08:40 1999 UTC (24 years, 11 months ago) by simonb
Branch: netbsd-1-4
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored) to selected 1.4.2.4 (colored)

Pull up rev 1.5 from trunk.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 5 06:59:36 1999 UTC (25 years ago) by simonb
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored) to selected 1.4.2.4 (colored)

Move prototype for disp_cur_part() from defs.h to mbr.h.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 31 00:44:48 1999 UTC (25 years ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.3: +26 -8 lines
Diff to previous 1.3 (colored) to selected 1.4.2.4 (colored)

Rework the MBR code, and some of the labelling code.

	* Use structures, not 2-dimensional arrays..
	* Use the DIOCGDEFLABEL ioctl to get the disk information,
	  to avoid confusion with (older) labels.
	* Don't ever call fdisk for partitioning. This was the
	  source of much confusion.
	* For the i386, use the BIOS geometry information passed by
	  the bootblocks.

Lots of things left to do, but it's a start.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 21 14:53:36 1998 UTC (25 years, 8 months ago) by rvb
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored) to selected 1.4.2.4 (colored)

Fix BIOS GEOMETRY menu

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:49 1998 UTC (25 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.1: +7 -7 lines
Diff to previous 1.1 (colored) to selected 1.4.2.4 (colored)

KNF.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 24 05:36:03 1998 UTC (26 years, 1 month ago) by jonathan
Branch: MAIN
Diff to selected 1.4.2.4 (colored)

Move DOS BIOS-geometry and MBR-handling code to MI code for powerpc, arc:
  * Split bios geometry and MBR partition editing code formerly in
    arch/i386/{md,fdisk}.c to mbr.c in mi  directory.
  * Leave /sbin/fdisk parsing/handling code in separate file,
    we may want to change it later. move to mi directory.
  * Create mbr.h with declarations for MBR/BIOS-geomotry code.
    #include "mbr.h" in  i386 md.h.
  * Use symbolic names for 386bsd and new NetBSD partition IDs.

Handle MBRs with both 386bsd and NetBSD partitions less stupidly.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>