The NetBSD Project

CVS log for src/sys/arch/i386/stand/boot/boot2.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / stand / boot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.78 / (download) - annotate - [select for diffs], Tue Sep 7 11:41:31 2021 UTC (6 weeks, 5 days ago) by nia
Branch: MAIN
CVS Tags: HEAD
Changes since 1.77: +10 -36 lines
Diff to previous 1.77 (colored)

Remove banner printing code from bootloaders, add it to libsa.

This harmonizes efiboot and the various x86 bootloaders to use shared
code for printing the banner. By friendly coincidence, it also adds
support for specifying 'banner=' in arm efiboot's boot.cfg, as on x86.

Revision 1.74.6.2 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:10 2021 UTC (2 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.74.6.1: +10 -5 lines
Diff to previous 1.74.6.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Jun 21 19:52:17 2021 UTC (4 months ago) by nia
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.76: +12 -11 lines
Diff to previous 1.76 (colored)

use a single printf call for readability

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jun 21 19:43:17 2021 UTC (4 months ago) by nia
Branch: MAIN
Changes since 1.75: +11 -7 lines
Diff to previous 1.75 (colored)

biosboot: Add ASCII art.

Revision 1.74.6.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:20 2021 UTC (4 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.74: +21 -1 lines
Diff to previous 1.74 (colored)

Sync w/ HEAD.

Revision 1.74.8.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:13 2021 UTC (4 months, 3 weeks ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.74: +21 -1 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

sync with head

Revision 1.75 / (download) - annotate - [select for diffs], Sun May 30 05:59:22 2021 UTC (4 months, 3 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.74: +21 -1 lines
Diff to previous 1.74 (colored)

Add "root" command to provide a BTINFO_ROOTDEVICE parameter.

Revision 1.66.10.2 / (download) - annotate - [select for diffs], Wed Jul 15 15:54:50 2020 UTC (15 months, 1 week ago) by martin
Branch: netbsd-8
Changes since 1.66.10.1: +24 -6 lines
Diff to previous 1.66.10.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by kim in ticket #1575):

	sys/arch/i386/stand/boot/boot2.c: revision 1.74
	share/man/man8/man8.x86/boot.8: revision 1.21

Let consdev command also set speed
Adapted from PR install/55490 by Sunil Nimmagadda

Document optional speed argument to consdev

Revision 1.70.8.2 / (download) - annotate - [select for diffs], Wed Jul 15 15:51:03 2020 UTC (15 months, 1 week ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.70.8.1: +24 -6 lines
Diff to previous 1.70.8.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Pull up following revision(s) (requested by kim in ticket #1013):

	sys/arch/i386/stand/boot/boot2.c: revision 1.74
	share/man/man8/man8.x86/boot.8: revision 1.21

Let consdev command also set speed
Adapted from PR install/55490 by Sunil Nimmagadda

Document optional speed argument to consdev

Revision 1.74 / (download) - annotate - [select for diffs], Wed Jul 15 12:36:30 2020 UTC (15 months, 1 week ago) by kim
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.73: +24 -6 lines
Diff to previous 1.73 (colored)

Let consdev command also set speed

Adapted from PR install/55490 by Sunil Nimmagadda

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:54 2020 UTC (18 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.70.4.1: +59 -12 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:40 2020 UTC (18 months, 2 weeks ago) by martin
Branch: phil-wifi
Changes since 1.70: +7 -1 lines
Diff to previous 1.70 (colored)

Merge changes from current as of 20200406

Revision 1.73 / (download) - annotate - [select for diffs], Sat Apr 4 19:50:54 2020 UTC (18 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.72: +7 -1 lines
Diff to previous 1.72 (colored)

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.

Revision 1.66.10.1 / (download) - annotate - [select for diffs], Tue Sep 17 18:26:53 2019 UTC (2 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.66: +60 -13 lines
Diff to previous 1.66 (colored)

Pull up following revision(s) (requested by manu in ticket #1373):

	sys/arch/i386/stand/boot/boot2.c: revision 1.72 (patch)
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.50
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.51
	sys/arch/i386/stand/efiboot/devopen.c: revision 1.6
	sys/arch/i386/stand/efiboot/devopen.h: revision 1.4
	sys/arch/i386/stand/efiboot/devopen.c: revision 1.7
	sys/arch/i386/stand/efiboot/efidisk.c: revision 1.8
	share/man/man8/man8.x86/boot.8: revision 1.16
	share/man/man8/man8.x86/boot.8: revision 1.17
	sys/arch/i386/stand/lib/Makefile: revision 1.46
	sys/arch/i386/stand/boot/devopen.h: revision 1.5
	sys/arch/i386/stand/boot/devopen.c: revision 1.9
	sys/arch/i386/stand/efiboot/boot.c: revision 1.14 (patch)
	sys/arch/i386/stand/efiboot/boot.c: revision 1.15
	sys/arch/i386/stand/lib/biosdisk.h: revision 1.11
	sys/arch/i386/stand/boot/boot2.c: revision 1.71

Add GPT and RAIDframe support to bootloaders

Classic BIOS (/boot) and EFI bootloaders can now name devices
using the NAME=gpt_label syntax, or using raid partitions. Here
are examples:

boot NAME=root:/netbsd
boot raid0e:/netbsd

Correct the memset(3)'s third argument in i386 biosdisk.c

The size of allocation is the size of the structure biosdisk, not the size
of a pointer.

Document new GPT and RAIDframe capacity of bootstrap code
While there, also document EFI setup and some bugs

Typo fixes, 'file system'; new sentence, new line; expand IA-32.

Bump date for previous.

Make sure devices names are copied including last byte
Fix from M. Levinson.

Revision 1.70.8.1 / (download) - annotate - [select for diffs], Fri Sep 13 07:00:13 2019 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.70: +60 -13 lines
Diff to previous 1.70 (colored)

Pull up following revision(s) (requested by manu in ticket #200):

	sys/arch/i386/stand/boot/boot2.c: revision 1.72
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.50
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.51
	sys/arch/i386/stand/efiboot/devopen.c: revision 1.6
	sys/arch/i386/stand/efiboot/devopen.h: revision 1.4
	sys/arch/i386/stand/efiboot/devopen.c: revision 1.7
	sys/arch/i386/stand/efiboot/efidisk.c: revision 1.8
	share/man/man8/man8.x86/boot.8: revision 1.16
	share/man/man8/man8.x86/boot.8: revision 1.17
	sys/arch/i386/stand/lib/Makefile: revision 1.46
	sys/arch/i386/stand/boot/devopen.h: revision 1.5
	sys/arch/i386/stand/boot/devopen.c: revision 1.9
	sys/arch/i386/stand/efiboot/boot.c: revision 1.14
	sys/arch/i386/stand/efiboot/boot.c: revision 1.15
	sys/arch/i386/stand/lib/biosdisk.h: revision 1.11
	sys/arch/i386/stand/boot/boot2.c: revision 1.71

Add GPT and RAIDframe support to bootloaders

Classic BIOS (/boot) and EFI bootloaders can now name devices
using the NAME=gpt_label syntax, or using raid partitions. Here
are examples:

boot NAME=root:/netbsd
boot raid0e:/netbsd

Correct the memset(3)'s third argument in i386 biosdisk.c

The size of allocation is the size of the structure biosdisk, not the size
of a pointer.

Document new GPT and RAIDframe capacity of bootstrap code
While there, also document EFI setup and some bugs

Typo fixes, 'file system'; new sentence, new line; expand IA-32.
Bump date for previous.

Make sure devices names are copied including last byte
Fix from M. Levinson.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Sep 2 06:10:24 2019 UTC (2 years, 1 month ago) by manu
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored)

Make sure devices names are copied including last byte

Fix from M. Levinson.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Aug 18 02:18:24 2019 UTC (2 years, 2 months ago) by manu
Branch: MAIN
Changes since 1.70: +59 -13 lines
Diff to previous 1.70 (colored)

Add GPT and RAIDframe support to bootloaders

Classic BIOS (/boot) and EFI bootloaders can now name devices
using the NAME=gpt_label syntax, or using raid partitions. Here
are examples:
boot NAME=root:/netbsd
boot raid0e:/netbsd

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:18 2017 UTC (3 years, 10 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.58.2.1: +30 -21 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

update from HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Tue Nov 14 09:55:41 2017 UTC (3 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20190609, 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, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

Add missing ).

Revision 1.69 / (download) - annotate - [select for diffs], Wed Nov 8 18:31:00 2017 UTC (3 years, 11 months ago) by maxv
Branch: MAIN
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (colored)

Add pkboot in "help".

Revision 1.68 / (download) - annotate - [select for diffs], Wed Oct 11 09:53:14 2017 UTC (4 years ago) by maxv
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

Reset has_prekern if pkboot fails. Otherwise here:
	pkboot wrong_kernel_path
	boot netbsd
the prekern still gets invoked in the second command.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Oct 7 10:26:38 2017 UTC (4 years ago) by maxv
Branch: MAIN
Changes since 1.66: +11 -1 lines
Diff to previous 1.66 (colored)

Add a new option in libsa, to load dynamic binaries. A separate function
is used, and it does not break in any way the generic static loader. Then,
add a new "pkboot" command in the x86 bootloader, which boots a
GENERIC_KASLR kernel via the prekern. (See thread on tech-kern@.)

Revision 1.63.4.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:00 2016 UTC (5 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.63.4.2: +3 -3 lines
Diff to previous 1.63.4.2 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

Sync with HEAD

Revision 1.66 / (download) - annotate - [select for diffs], Wed Feb 3 05:27:53 2016 UTC (5 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

PR/50748: David Binderman: check bounds before dereference

Revision 1.63.4.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:44 2015 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.63.4.1: +5 -4 lines
Diff to previous 1.63.4.1 (colored) to branchpoint 1.63 (colored)

Sync with HEAD

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jun 11 15:56:53 2015 UTC (6 years, 4 months ago) by khorben
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

Also document the "splash" command in boot(8)

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:17:58 2015 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.63: +15 -19 lines
Diff to previous 1.63 (colored)

Sync with HEAD

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Sat Jan 17 12:01:37 2015 UTC (6 years, 9 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.63: +15 -19 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Pull up following revision(s) (requested by christos in ticket #426):
	sys/arch/i386/stand/boot/boot2.c: revision 1.64
Restore previous behavior: "boot -s" == "boot netbsd -s"
Instead of ignoring the flags and doing the default boot. Merge some
extraneous code.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jan 16 03:45:53 2015 UTC (6 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.63: +15 -19 lines
Diff to previous 1.63 (colored)

Restore previous behavior: "boot -s" == "boot netbsd -s"
Instead of ignoring the flags and doing the default boot. Merge some
extraneous code.
XXX: Find the PR for this, close it and pullup to -7

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:07 2014 UTC (7 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.58: +53 -12 lines
Diff to previous 1.58 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:53:59 2014 UTC (7 years, 2 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.62: +15 -12 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Rebase.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Jun 28 09:16:18 2014 UTC (7 years, 3 months ago) by rtr
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Changes since 1.62: +15 -12 lines
Diff to previous 1.62 (colored)

patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:39:52 2014 UTC (7 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.55.2.2: +40 -2 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

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")

Revision 1.58.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:13 2014 UTC (7 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.58.4.1: +12 -2 lines
Diff to previous 1.58.4.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Wed Mar 26 17:58:57 2014 UTC (7 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)

kill sprintf.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Mar 20 01:15:29 2014 UTC (7 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.60: +9 -1 lines
Diff to previous 1.60 (colored)

allow LS to be commented out

Revision 1.38.4.3 / (download) - annotate - [select for diffs], Sat Sep 7 17:23:39 2013 UTC (8 years, 1 month ago) by bouyer
Branch: netbsd-5
Changes since 1.38.4.2: +97 -26 lines
Diff to previous 1.38.4.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Pull up following revision(s) (requested by he in ticket #1872):
	sys/arch/i386/stand/lib/bootmenu.c: revision 1.11 via patch
	sys/arch/i386/stand/lib/bootmenu.h: revision 1.3 via patch
	sys/arch/i386/stand/boot/boot2.c: revision 1.59 via patch
Two changes for the i386 boot loader related to the boot menu which
can be defined in boot.cfg:
 * Add a "menu" command which re-displays the menu and initiates
   the timed countdown
 * Use any default command defined in boot.cfg as default args
   if the user runs "boot" with no arguments
This is useful in circumstances where you e.g. need to interrupt
the normal boot process to switch to serial console, and where
simply "boot netbsd" is no longer sufficient (e.g. as with install
media which needs the miniroot kernel module loaded).

Revision 1.60 / (download) - annotate - [select for diffs], Fri Aug 30 16:42:17 2013 UTC (8 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored)

Add support for using a raw file-system image as memory disk root with
the x86 bootloader.

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:17 2013 UTC (8 years, 1 month ago) by rmind
Branch: rmind-smpnet
Changes since 1.58: +29 -1 lines
Diff to previous 1.58 (colored)

sync with head

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Sat Aug 10 22:42:29 2013 UTC (8 years, 2 months ago) by riz
Branch: netbsd-6
Changes since 1.57.2.1: +29 -1 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Pull up following revision(s) (requested by he in ticket #925):
	sys/arch/i386/stand/lib/bootmenu.c: revision 1.11
	sys/arch/i386/stand/lib/bootmenu.h: revision 1.3
	sys/arch/i386/stand/boot/boot2.c: revision 1.59
Two changes for the i386 boot loader related to the boot menu which
can be defined in boot.cfg:
 * Add a "menu" command which re-displays the menu and initiates
   the timed countdown
 * Use any default command defined in boot.cfg as default args
   if the user runs "boot" with no arguments
This is useful in circumstances where you e.g. need to interrupt
the normal boot process to switch to serial console, and where
simply "boot netbsd" is no longer sufficient (e.g. as with install
media which needs the miniroot kernel module loaded).

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jul 28 08:50:09 2013 UTC (8 years, 2 months ago) by he
Branch: MAIN
Changes since 1.58: +29 -1 lines
Diff to previous 1.58 (colored)

Two changes for the i386 boot loader related to the boot menu which
can be defined in boot.cfg:

 * Add a "menu" command which re-displays the menu and initiates
   the timed countdown
 * Use any default command defined in boot.cfg as default args
   if the user runs "boot" with no arguments

This is useful in circumstances where you e.g. need to interrupt
the normal boot process to switch to serial console, and where
simply "boot netbsd" is no longer sufficient (e.g. as with install
media which needs the miniroot kernel module loaded).

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:19:51 2012 UTC (8 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.55.2.1: +15 -4 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored)

sync with head

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Sun Aug 12 18:56:54 2012 UTC (9 years, 2 months ago) by martin
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.57: +15 -4 lines
Diff to previous 1.57 (colored)

Pull up following revision(s) (requested by riastradh in ticket #479):
	sys/arch/i386/stand/boot/boot2.c: revision 1.58
Fix i386 `boot' command to try the usual set of kernel names.
Without this, the `boot' command will try only `netbsd', not
`netbsd.gz', `netbsd.old', &c.
Patch from PR port-i386/44562.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Aug 4 03:51:27 2012 UTC (9 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.57: +15 -4 lines
Diff to previous 1.57 (colored)

Fix i386 `boot' command to try the usual set of kernel names.

Without this, the `boot' command will try only `netbsd', not
`netbsd.gz', `netbsd.old', &c.

Patch from PR port-i386/44562.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:30 2012 UTC (9 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored)

sync with head

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:32:23 2012 UTC (9 years, 8 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

merge to -current.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Dec 25 06:09:09 2011 UTC (9 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

 - add 'ls' op to struct fs_ops to support ls command on each fs,
   enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
   in libsa
 - split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
   that opens the target fs and calls fs-depedent XXX_ls() functions
 - add a ls op for ext2fs
   (all other fs than ufs and ext2fs don't have actual ls ops yet)
 - replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
      replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c

Revision 1.56 / (download) - annotate - [select for diffs], Mon Nov 28 07:56:54 2011 UTC (9 years, 10 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.55: +3 -1 lines
Diff to previous 1.55 (colored)


Add support for passing saved entropy (random seed file) to the kernel
from the bootloader.  This can fix the problem of poor quality keys
for other kernel modules which call arc4random() early in kernel startup
(NFS startup, in particular, causes this).

We continue to rely on the etc/rc.d/random_seed script to save entropy
to the seed file at shutdown and erase the seed file at startup.

Boot loader support implemented only for i386 and amd64 ports for now but
it should be easy for other ports to do the same or similar.

Revision 1.42.2.5 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:27 2011 UTC (10 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.42.2.4: +5 -3 lines
Diff to previous 1.42.2.4 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jun 23 12:07:00 2011 UTC (10 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

cast a uint8_t * to a char * for a function that takes char *.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:05:52 2011 UTC (10 years, 4 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.51: +10 -3 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:05 2011 UTC (10 years, 4 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.48.2.2: +3 -1 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

sync with head

Revision 1.54 / (download) - annotate - [select for diffs], Thu May 26 04:25:27 2011 UTC (10 years, 5 months ago) by uebayasi
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.53: +4 -2 lines
Diff to previous 1.53 (colored)

Support userconf(4) command in boot(8)/boot.cfg(5) on i386/amd64.

From jmmv@, no objections seen in the proposed thread:

	http://mail-index.netbsd.org/tech-kern/2009/01/22/msg004081.html

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:08 2011 UTC (10 years, 6 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.48.2.1: +5 -1 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored)

sync with head

Revision 1.42.2.4 / (download) - annotate - [select for diffs], Mon Mar 28 23:58:11 2011 UTC (10 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.42.2.3: +23 -10 lines
Diff to previous 1.42.2.3 (colored) to branchpoint 1.42 (colored)

Cure sync hiccups. Code with compile errors is not really useful, heh.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Mon Mar 28 23:04:44 2011 UTC (10 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.42.2.2: +8 -2 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored)

Sync with HEAD. TODO before merge:
- shortcut for suspend code in sysmon, when powerd(8) is not running.
Borrow ``xs_watch'' thread context?
- bug hunting in xbd + xennet resume. Rings are currently thrashed upon
resume, so current implementation force flush them on suspend. It's not
really needed.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Mar 18 18:24:09 2011 UTC (10 years, 7 months ago) by jakllsch
Branch: MAIN
Changes since 1.52: +6 -2 lines
Diff to previous 1.52 (colored)

Honor bp_timeout even if someone sets X86_BP_FLAGS_NOBOOTCONF.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:50:43 2011 UTC (10 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.48: +7 -7 lines
Diff to previous 1.48 (colored)

sync with head

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:26 2011 UTC (10 years, 8 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Sun Feb 6 23:16:05 2011 UTC (10 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

add support for passing image files to the kernel with the 'splash' keyword:

 vesa on;splash /netbsd.jpg;boot -z

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jan 5 23:13:01 2011 UTC (10 years, 9 months ago) by jakllsch
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

Pass a 64-bit boot partition base LBA into x86 /boot,
while maintaining compatibility with existing bootxx code.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Dec 20 01:12:44 2010 UTC (10 years, 10 months ago) by jakllsch
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.49: +1 -2 lines
Diff to previous 1.49 (colored)

MI libsa provides panic() and exit() functions, no need to provide our own.
As MI libsa exit() calls panic() with a "exit" message, don't use it if we
print our own farewell or have already panic()ed.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Tue Nov 9 06:03:38 2010 UTC (10 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.47.2.1: +3 -3 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Nov 6 23:07:46 2010 UTC (10 years, 11 months ago) by jym
Branch: MAIN
CVS Tags: uebayasi-xip-base6, uebayasi-xip-base5
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Bring the help command output from boot and pxeboot on par with their
code.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:39:31 2010 UTC (11 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.47: +17 -5 lines
Diff to previous 1.47 (colored)

Sync with HEAD.

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:33:51 2010 UTC (11 years, 6 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.38: +29 -8 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

sync to netbsd-5

Revision 1.22.6.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:02:30 2010 UTC (11 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.6.3: +21 -6 lines
Diff to previous 1.22.6.3 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

sync with head

Revision 1.38.4.2 / (download) - annotate - [select for diffs], Sun Feb 14 14:01:08 2010 UTC (11 years, 8 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.38.4.1: +17 -5 lines
Diff to previous 1.38.4.1 (colored) to branchpoint 1.38 (colored)

Pull up following revision(s) (requested by hubertf in ticket #1304):
	sys/arch/i386/stand/boot/boot2.c: revision 1.48
When a password is set for the bootloader ("installboot -o password=..."),
it currently complains about an unknown command and prints a usage if the
password is entered wrong:
         ...
         Choose an option; RETURN for default; SPACE to stop countdown.
         Option 1 will be chosen in 0 seconds.
         Password: *
         Password: *
         Password: *
         unknown command
         commands are:
         boot [xdNx:][filename] [-12acdqsvxz]
              (ex. "hd0a:netbsd.old -s"
         ls [path]
         dev xd[N[x]]:
         consdev {pc|com[0123]|com[0123]kbd|auto}
         modules {enabled|disabled}
         load {path_to_module}
         multiboot [xdNx:][filename] [<args>]
         help|?
         quit
         Choose an option; RETURN for default; SPACE to stop countdown.
         Option 1 will be chosen in 0 seconds.
         ...
This is confusing, plus someone may use it to determine bits of
information about the system. What should happen instead is that the user
is informed that the password is wrong:
         ...
         Choose an option; RETURN for default; SPACE to stop countdown.
         Option 1 will be chosen in 0 seconds.
         Password: ****
         Password: ****
         Password: ****
         Wrong password.
         Choose an option; RETURN for default; SPACE to stop countdown.
         ...
Implement the latter behaviour.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Feb 8 21:25:32 2010 UTC (11 years, 8 months ago) by hubertf
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.47: +17 -5 lines
Diff to previous 1.47 (colored)

When a password is set for the bootloader ("installboot -o password=..."),
it currently complains about an unknown command and prints a usage if the
password is entered wrong:

        ...
        Choose an option; RETURN for default; SPACE to stop countdown.
        Option 1 will be chosen in 0 seconds.
        Password: *
        Password: *
        Password: *
        unknown command
        commands are:
        boot [xdNx:][filename] [-12acdqsvxz]
             (ex. "hd0a:netbsd.old -s"
        ls [path]
        dev xd[N[x]]:
        consdev {pc|com[0123]|com[0123]kbd|auto}
        modules {enabled|disabled}
        load {path_to_module}
        multiboot [xdNx:][filename] [<args>]
        help|?
        quit

        Choose an option; RETURN for default; SPACE to stop countdown.
        Option 1 will be chosen in 0 seconds.
        ...

This is confusing, plus someone may use it to determine bits of
information about the system. What should happen instead is that the user
is informed that the password is wrong:

        ...
        Choose an option; RETURN for default; SPACE to stop countdown.
        Option 1 will be chosen in 0 seconds.
        Password: ****
        Password: ****
        Password: ****
        Wrong password.

        Choose an option; RETURN for default; SPACE to stop countdown.
        ...

Implement the latter behaviour.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jan 17 14:54:44 2010 UTC (11 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

Invert the flag bits to control module loading: rename
LOADMODULES->NOMODULES and READBOOTCONF->NOBOOTCONF.
This way, the default value (0) wired into old bootxx_* and installed
to file systems remains valid and we avoid problems on partial updates.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jan 14 17:49:31 2010 UTC (11 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.45: +5 -2 lines
Diff to previous 1.45 (colored)

On i386/amd64, define two flag bits in the boot parameters which control
whether modules are loaded and whether boot.cfg is evaluated, and
set both to "off" per default in the PXE bootloader.
Extend "installboot" to toggle the bits.
This way, pxeboot works with existing dhcp server setups (and as
described in the manpage) out of the box. Also, boot.cfg reading
involves a stat() call which is horribly inefficient with the
TFTP pseudo file system.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:35 2009 UTC (11 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.42.2.1: +3 -2 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored)

Sync with HEAD.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Sun Oct 18 16:41:28 2009 UTC (12 years ago) by bouyer
Branch: netbsd-5
Changes since 1.38: +13 -4 lines
Diff to previous 1.38 (colored)

Apply patch, requested by snj in ticket 1080:
	sys/arch/i386/stand/boot/boot2.c: patch

- If the menuformat is not letter, do not allow letter keys to be
aliases for number keys.
- Don't treat timeouts or the return key as an invalid choice.

Revision 1.22.6.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:39 2009 UTC (12 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.6.2: +3 -2 lines
Diff to previous 1.22.6.2 (colored) to branchpoint 1.22 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Sun Sep 13 22:45:27 2009 UTC (12 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

Make the 'dev' command print out a list of known boot devices based on
information from the BIOS in addition to the currently selected default
partition. Handy when you don't know where to boot from. Here's a demo:

  type "?" or "help" for help.
  > dev
  disk hd0 size 3815 MB
    hd0a(4.2BSD) hd0b(swap)
  disk cd0
    cd0a(unknown)
  default hd0a
  >

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:17:51 2009 UTC (12 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.42: +18 -5 lines
Diff to previous 1.42 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.22.6.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:18 2009 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.6.1: +47 -317 lines
Diff to previous 1.22.6.1 (colored) to branchpoint 1.22 (colored)

sync with head.

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:13 2009 UTC (12 years, 6 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.38.2.2: +12 -5 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 21 15:01:56 2009 UTC (12 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base
Changes since 1.43: +12 -5 lines
Diff to previous 1.43 (colored)

Fix 'boot -z' bogons.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:29:00 2009 UTC (12 years, 7 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.38.2.1: +7 -1 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Feb 16 22:39:30 2009 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.42: +7 -1 lines
Diff to previous 1.42 (colored)

Bootloader modifications for generic framebuffer console support on i386
and amd64 where VESA VBE 2.0+ is available.

* Add helper library and stubs to invoke VBE bioscalls.
* Bump HEAP_START as we were already dangerously close to our limits.
* bootdataseg now allows access > 16MB so in the future we can scribble
  on the framebuffer.
* Pass BTINFO_FRAMEBUFFER parameters to kernel when configured.
* VBE modes are configured with the new 'vesa' command. Usage, when present:
    * vesa {enabled|disabled}
      Enable / disable linear framebuffer, default mode is 640x480x8. May
      be changed in the future to determine mode based on VBE/DDC where
      available.
    * vesa list
      List modes supported by the firmware that meet the following criteria:
	* linear framebuffer
	* packed pixel or direct colour mode
    * vesa {modenum|modestr}
      Enable specific VBE mode. The mode can be specified either as a
      VBE mode number (eg. 0x101) or as a string (eg. 800x600x16).

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:16:21 2009 UTC (12 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.38: +7 -363 lines
Diff to previous 1.38 (colored)

Sync with HEAD.

Revision 1.21.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:04 2009 UTC (12 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21.6.3: +19 -355 lines
Diff to previous 1.21.6.3 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:45 2009 UTC (12 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.41: +1 -1 lines
Diff to previous 1.41 (colored)

merge christos-time_t

Revision 1.22.2.4 / (download) - annotate - [select for diffs], Sat Dec 27 23:14:24 2008 UTC (12 years, 9 months ago) by christos
Branch: christos-time_t
Changes since 1.22.2.3: +7 -343 lines
Diff to previous 1.22.2.3 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

merge with head.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 13 23:30:54 2008 UTC (12 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: christos-time_t-nbase, christos-time_t-base
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)

add a boot.cfg option to clear the screen; default off. From Anon Ymous

Revision 1.31.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:14 2008 UTC (12 years, 10 months ago) by haad
Branch: haad-dm
Changes since 1.31.4.1: +4 -362 lines
Diff to previous 1.31.4.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Nov 25 13:23:54 2008 UTC (12 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.39: +4 -342 lines
Diff to previous 1.39 (colored)

Make pxeboot understand boot.cfg.

Revision 1.22.2.3 / (download) - annotate - [select for diffs], Thu Nov 20 20:45:37 2008 UTC (12 years, 11 months ago) by christos
Branch: christos-time_t
Changes since 1.22.2.2: +2 -22 lines
Diff to previous 1.22.2.2 (colored) to branchpoint 1.22 (colored)

merge with head.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Nov 19 12:36:41 2008 UTC (12 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.38: +2 -22 lines
Diff to previous 1.38 (colored)

For the x86 boot loader, autoload a kernel module corresponding to the
root file system type.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:25 2008 UTC (12 years, 11 months ago) by christos
Branch: christos-time_t
Changes since 1.22.2.1: +234 -61 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored)

Sync with head.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:15:49 2008 UTC (13 years ago) by haad
Branch: haad-dm
Changes since 1.31: +124 -54 lines
Diff to previous 1.31 (colored)

Sync with HEAD.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Oct 11 11:06:19 2008 UTC (13 years ago) by joerg
Branch: MAIN
CVS Tags: 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, 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, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.37: +21 -1 lines
Diff to previous 1.37 (colored)

Add "multiboot" command to boot multiboot compliant kernels like Xen.
Patch provided by Robert Swindell with fixes for the command line
parsing and addition of passing module options from me. The kernel now
always gets the full string for modules like for the command line,
everything before the first space/tab is the path name of the module.

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Fri Oct 10 22:29:05 2008 UTC (13 years ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.30.2.2: +2 -25 lines
Diff to previous 1.30.2.2 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.21.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:00 2008 UTC (13 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.21.6.2: +103 -53 lines
Diff to previous 1.21.6.2 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Sep 26 18:42:52 2008 UTC (13 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4
Changes since 1.36: +1 -24 lines
Diff to previous 1.36 (colored)

Remove a hack which disables loading boot.cfg from ustarfs.
Now all bootfloppies have a proper boot.cfg file in ustarfs.

Tested on qemu.
(though qemu doesn't emulate timeout on the boot prompt properly)

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 26 14:12:49 2008 UTC (13 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

The structure of our elf kernel is:

    elf header/program headers/text/data/note/
    section headers/symbol table/string table

We need to read the section headers first to find the offset of the note
and thus we requite backwards seek. The only reason we need to read the
note is to find the version of the kernel, and this seems not to be used
anywhere. We could potentially change the kernel ldscript to add the note
information in the program headers, but dealing with ldscripts is painful
and producing a more complex binary could break some dumb standalone loader.
So the simple solution is to just disable the note loading for floppies
which is what this patch does. If someone wants to fix it in a better way,
be my guest.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:33:28 2008 UTC (13 years, 1 month ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.30.2.1: +104 -31 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Aug 20 11:34:32 2008 UTC (13 years, 2 months ago) by sborrill
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored)

Fix display of "Option X will be chosen in" banner. The letter version of it
was always displayed even if number format was selected.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Aug 12 17:56:05 2008 UTC (13 years, 2 months ago) by sborrill
Branch: MAIN
Changes since 1.33: +97 -25 lines
Diff to previous 1.33 (colored)

Increase number of menu options to 20.
Add support for switching menu format between numbers and letters. Will
prefer numbers, but will automatically switch to letters if > 9 options
and timeout > 0 (i.e. need a single key press to choose).
Menu format can be explicitly set in boot.cfg file.
Add support for reading numeric choices of more than 1 digit.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Aug 8 07:48:32 2008 UTC (13 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Don't run off the end of the bootconf.desc[] array when printing out
the boot menu choices.  Fixes problems with funny display when MAXMENU
or more "menu" items are in /boot.cfg.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:28 2008 UTC (13 years, 3 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jul 15 21:29:37 2008 UTC (13 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored)

Change the x86 boot blocks so they don't include builder login and date.

For now, we include kernel revision as a way of allowing users to
notice that boot blocks have gotten very old, so the first line of the
printout looks like this (depending on the particular block):

  >> NetBSD/x86 BIOS Boot, Revision 3.4 (from NetBSD 5.0)

This may be changed a bit pending feedback. (Some people think that
the kernel revision shouldn't be there at all, for example.)

Part of the project to assure that bit-identical sources produce
bit-identical release binaries.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:27 2008 UTC (13 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.30: +8 -5 lines
Diff to previous 1.30 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:04:47 2008 UTC (13 years, 4 months ago) by yamt
Branch: yamt-pf42
Changes since 1.22.4.1: +8 -5 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

sync with head

Revision 1.21.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:18 2008 UTC (13 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21.6.1: +112 -9 lines
Diff to previous 1.21.6.1 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 21 01:51:34 2008 UTC (13 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Changes since 1.30: +8 -5 lines
Diff to previous 1.30 (colored)

- Stop the twiddler going awry.
- Clear screen if on a glass tty (!).

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:17 2008 UTC (13 years, 5 months ago) by yamt
Branch: yamt-pf42
Changes since 1.22: +109 -9 lines
Diff to previous 1.22 (colored)

sync with head.

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:38 2008 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22: +109 -9 lines
Diff to previous 1.22 (colored)

sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 6 12:52:34 2008 UTC (13 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Add a missing semicolon.
(mmm, compile before commit :)

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 6 09:48:00 2008 UTC (13 years, 5 months ago) by apb
Branch: MAIN
Changes since 1.28: +3 -4 lines
Diff to previous 1.28 (colored)

Change the wording of a message, to make it clear that pressing SPACE
will stop the countdown timer.  The message now reads "Choose an option;
RETURN for default; SPACE to stop countdown."  It no longer says what
the default choice actually is, because the message printed on the
following line will do that.

Revision 1.28 / (download) - annotate - [select for diffs], Mon May 5 08:36:55 2008 UTC (13 years, 5 months ago) by chris
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Increase banner entries from 10 to 12. This allows all 12 lines of the cd
boot.cfg banner to be displayed.

Revision 1.27 / (download) - annotate - [select for diffs], Sat May 3 18:49:13 2008 UTC (13 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

Handle compressed modules.

Revision 1.26 / (download) - annotate - [select for diffs], Sat May 3 09:46:40 2008 UTC (13 years, 5 months ago) by sborrill
Branch: MAIN
Changes since 1.25: +26 -4 lines
Diff to previous 1.25 (colored)

Add support for multiple commands separated by semi-colons on menu lines
in boot.cfg.
e.g.
menu=Boot with module foo:load=/foo.kmod;boot

Revision 1.25 / (download) - annotate - [select for diffs], Fri May 2 15:26:38 2008 UTC (13 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.24: +78 -1 lines
Diff to previous 1.24 (colored)

- Give x86 BIOS boot the ability to load new style modules and pass them
  into the kernel. Based on a patch by jmcneill@, with many fixes and
  improvements by me.

- Put MEMORY_DISK_DYNAMIC and MODULAR into the GENERIC kernels, so that
  you can load miniroot.kmod from the boot blocks and boot into the
  installer!

Revision 1.24 / (download) - annotate - [select for diffs], Wed Apr 30 16:18:26 2008 UTC (13 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

Tidy up console output slightly.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Apr 29 21:35:47 2008 UTC (13 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Adjust the help string for new options.

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:19 2008 UTC (13 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Sync with HEAD.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:46:56 2008 UTC (13 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:00 2008 UTC (13 years, 7 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head.

Revision 1.13.10.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:07 2008 UTC (13 years, 7 months ago) by matt
Branch: matt-armv6
Changes since 1.13.10.2: +2 -2 lines
Diff to previous 1.13.10.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

sync with HEAD

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:21 2008 UTC (13 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.11.2.3: +2 -2 lines
Diff to previous 1.11.2.3 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 23 17:49:29 2008 UTC (13 years, 8 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, christos-time_t
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Only attempt to output up to MAXBANNER banner lines

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:41 2008 UTC (13 years, 8 months ago) by mjf
Branch: mjf-devfs
Changes since 1.14.2.2: +21 -12 lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:37:15 2008 UTC (13 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.11.2.2: +48 -14 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored)

sync with head

Revision 1.13.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:46:48 2008 UTC (13 years, 9 months ago) by matt
Branch: matt-armv6
Changes since 1.13.10.1: +295 -7 lines
Diff to previous 1.13.10.1 (colored) to branchpoint 1.13 (colored)

sync with HEAD

Revision 1.16.6.3 / (download) - annotate - [select for diffs], Tue Jan 8 22:10:07 2008 UTC (13 years, 9 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.16.6.2: +15 -6 lines
Diff to previous 1.16.6.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jan 5 19:29:16 2008 UTC (13 years, 9 months ago) by apb
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.20: +16 -7 lines
Diff to previous 1.20 (colored)

If a menu line in boot.cfg has an empty description, then re-use the
command as the description.  For example,

	menu=:boot netbsd -s

now works like

	menu=boot netbsd -s:boot netbsd -s

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:48:26 2008 UTC (13 years, 9 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.16.6.1: +5 -5 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 2 10:39:39 2008 UTC (13 years, 9 months ago) by sborrill
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Configuration file is boot.cfg, not boot.cnf, so fix comments

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 29 16:28:40 2007 UTC (13 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Add -z to usage strings.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 29 16:02:46 2007 UTC (13 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Mention -x in command_help

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:43:11 2007 UTC (13 years, 10 months ago) by mjf
Branch: mjf-devfs
Changes since 1.14.2.1: +28 -3 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:42:26 2007 UTC (13 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.16: +28 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with head.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:54:47 2007 UTC (13 years, 10 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.16: +28 -3 lines
Diff to previous 1.16 (colored)

Sync with HEAD

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 13 11:52:17 2007 UTC (13 years, 10 months ago) by sborrill
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.16: +28 -3 lines
Diff to previous 1.16 (colored)

Check whether we are loading from ustarfs and if so, do not attempt to
read boot.cfg.

Fixes PR install/37521. Heavily based on patch by Izumi Tsutsui.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:17:13 2007 UTC (13 years, 10 months ago) by mjf
Branch: mjf-devfs
Changes since 1.14: +260 -6 lines
Diff to previous 1.14 (colored)

Sync with HEAD.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Fri Dec 7 17:25:04 2007 UTC (13 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.11.2.1: +260 -6 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored)

sync with head

Revision 1.12.30.3 / (download) - annotate - [select for diffs], Mon Dec 3 19:03:33 2007 UTC (13 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.12.30.2: +1 -25 lines
Diff to previous 1.12.30.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.12.30.2 / (download) - annotate - [select for diffs], Mon Dec 3 18:36:55 2007 UTC (13 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.12.30.1: +284 -6 lines
Diff to previous 1.12.30.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD.

Revision 1.13.8.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:35:41 2007 UTC (13 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.13.8.1: +2 -2 lines
Diff to previous 1.13.8.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Nov 23 13:47:03 2007 UTC (13 years, 11 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Print a newline above the menu, but not below the custom banner.
This means that there is a consistent empty line above the menu both with
and without a custom banner.

Revision 1.13.8.1 / (download) - annotate - [select for diffs], Wed Nov 21 21:53:20 2007 UTC (13 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.13: +261 -7 lines
Diff to previous 1.13 (colored)

Sync with HEAD.

Revision 1.13.14.1 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:14 2007 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.13: +261 -7 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Tue Nov 20 15:37:37 2007 UTC (13 years, 11 months ago) by sborrill
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.14: +261 -7 lines
Diff to previous 1.14 (colored)

Add support for /boot.cfg configuration file in x86 boot loader.
This allows easy configuration of banner text, console device and timeout
as well as allowing menus of commands to be displayed. If /boot.cfg
is not present, then the existing behaviour does not change.

The sections in the boot loader source are surrounded by #ifdef SMALL
allowing this functionality to be removed if space is at a premium.

Revision 1.13.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:17:50 2007 UTC (13 years, 11 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Wed Oct 17 19:54:59 2007 UTC (14 years ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, jmcneill-base
Branch point for: mjf-devfs
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.12.38.1 / (download) - annotate - [select for diffs], Wed Oct 3 19:23:57 2007 UTC (14 years ago) by garbled
Branch: ppcoea-renovation
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with HEAD

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 14:26:54 2007 UTC (14 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

sync with head.

Revision 1.12.30.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:16:13 2007 UTC (14 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Sync with head.

Revision 1.12.32.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:00:14 2007 UTC (14 years, 3 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 8 11:44:08 2007 UTC (14 years, 3 months ago) by ws
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Fix "Fix a garbage in previous commit." in 1.10.

Hi, junyoung!

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 11 12:17:47 2005 UTC (15 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, newlock2, 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, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored)

merge ktrace-lwp.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 13:56:53 2005 UTC (15 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.4: +52 -45 lines
Diff to previous 1.1.2.4 (colored) next main 1.2 (colored)

Sync with HEAD. Here we go again...

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 22 06:06:34 2005 UTC (16 years, 4 months ago) by junyoung
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.10: +22 -11 lines
Diff to previous 1.10 (colored)

Add support for cd9660 file system to the i386 BIOS bootloader.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 21 14:20:35 2005 UTC (16 years, 4 months ago) by junyoung
Branch: MAIN
Changes since 1.9: +5 -6 lines
Diff to previous 1.9 (colored)

- It is worthless to endlessly try to boot unbootable images. If all predefined
  boot images are failed to boot, fall into the prompt.
- Fix a garbage in previous commit.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 21 14:16:27 2005 UTC (16 years, 4 months ago) by junyoung
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

More cosmetic changes.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 21 14:13:40 2005 UTC (16 years, 4 months ago) by junyoung
Branch: MAIN
Changes since 1.7: +16 -18 lines
Diff to previous 1.7 (colored)

- KNF & cosmetic changes
- Remove #if 0'ed netbsd.el{,.gz} from bootfile list. I have no idea what
  those files are (emacs lisp source??? :-).

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 15 19:07:36 2005 UTC (16 years, 4 months ago) by junyoung
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Cosmetic changes.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 15 08:03:07 2005 UTC (16 years, 4 months ago) by junyoung
Branch: MAIN
Changes since 1.5: +15 -16 lines
Diff to previous 1.5 (colored)

KNF & notably, use u_int rather than unsigned int for now for consistency.
This should be reversed eventually...

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Thu Apr 7 20:29:40 2005 UTC (16 years, 6 months ago) by jwise
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.4: +2 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up revision 1.5, requested by tron in [pullup-2-0 #1408]:

include sys/types.h to make this compile again.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:04 2004 UTC (16 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.3: +2 -1 lines
Diff to previous 1.1.2.3 (colored)

Sync with HEAD.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 25 08:30:52 2004 UTC (16 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

include sys/types.h to make this compile again.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:17:10 2004 UTC (17 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.2: +1 -1 lines
Diff to previous 1.1.2.2 (colored)

Fix the sync with head I botched.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:35:50 2004 UTC (17 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.1: +0 -0 lines
Diff to previous 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:36:19 2004 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 8 04:25:45 2003 UTC (18 years ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-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, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Mon Oct 6 05:24:54 2003 UTC (18 years ago) by lukem
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Replace BP_* with I386_BP_FLAGS_*, for consistency with other stuff in
<sys/bootblock.h>
(CONSDEV_ should be converted as well, but that's more intrusive...)

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 27 07:04:46 2003 UTC (18 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

rewrite an undefined assignment

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 16 22:36:14 2003 UTC (18 years, 6 months ago) by dsl
Branch: MAIN
Branch point for: ktrace-lwp

Add files for 2nd stage boot loader

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>