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


Keyword substitution: kv
Default branch: MAIN


Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed Jun 8 21:43:45 2022 UTC (2 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +1 -5 lines
Do not use default entry's parameters for for plain "boot" command

Go back to the "menu" instead of you want that.

Patch from RVP in PR 56862, ok uwe@

Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue Sep 7 11:41:31 2021 UTC (3 years, 2 months ago) by nia
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +10 -36 lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:10 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.74.6.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.6.1: +10 -5 lines
Sync with HEAD.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Jun 21 19:52:17 2021 UTC (3 years, 5 months ago) by nia
Branches: 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
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +12 -11 lines
use a single printf call for readability

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Jun 21 19:43:17 2021 UTC (3 years, 5 months ago) by nia
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +11 -7 lines
biosboot: Add ASCII art.

Revision 1.74.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:20 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +21 -1 lines
Sync w/ HEAD.

Revision 1.74.8.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:13 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +21 -1 lines
sync with head

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun May 30 05:59:22 2021 UTC (3 years, 6 months ago) by mlelstv
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +21 -1 lines
Add "root" command to provide a BTINFO_ROOTDEVICE parameter.

Revision 1.66.10.2: download - view: text, markup, annotated - select for diffs
Wed Jul 15 15:54:50 2020 UTC (4 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.66.10.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.10.1: +24 -6 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 15 15:51:03 2020 UTC (4 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.70.8.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.8.1: +24 -6 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 15 12:36:30 2020 UTC (4 years, 4 months ago) by kim
Branches: 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
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +24 -6 lines
Let consdev command also set speed

Adapted from PR install/55490 by Sunil Nimmagadda

Revision 1.70.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:54 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.70.4.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.4.1: +59 -12 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.70.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:40 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +7 -1 lines
Merge changes from current as of 20200406

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Apr 4 19:50:54 2020 UTC (4 years, 7 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +7 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 17 18:26:53 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +60 -13 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 13 07:00:13 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +60 -13 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 2 06:10:24 2019 UTC (5 years, 3 months ago) by manu
Branches: 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
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -2 lines
Make sure devices names are copied including last byte

Fix from M. Levinson.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Aug 18 02:18:24 2019 UTC (5 years, 3 months ago) by manu
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +59 -13 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:18 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.1: +30 -21 lines
update from HEAD

Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Nov 14 09:55:41 2017 UTC (7 years ago) by maxv
Branches: 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
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -2 lines
Add missing ).

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Nov 8 18:31:00 2017 UTC (7 years ago) by maxv
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -1 lines
Add pkboot in "help".

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Oct 11 09:53:14 2017 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 7 10:26:38 2017 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +11 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:00 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.63.4.2: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.4.2: +3 -3 lines
Sync with HEAD

Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Feb 3 05:27:53 2016 UTC (8 years, 10 months ago) by christos
Branches: 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
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
PR/50748: David Binderman: check bounds before dereference

Revision 1.63.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:44 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.63.4.1: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.1: +5 -4 lines
Sync with HEAD

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Jun 11 15:56:53 2015 UTC (9 years, 5 months ago) by khorben
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -1 lines
Also document the "splash" command in boot(8)

Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:17:58 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +15 -19 lines
Sync with HEAD

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 17 12:01:37 2015 UTC (9 years, 10 months ago) by martin
Branches: 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
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +15 -19 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 16 03:45:53 2015 UTC (9 years, 10 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +15 -19 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:07 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +53 -12 lines
Rebase to HEAD as of a few days ago.

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:53:59 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +15 -12 lines
Rebase.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Jun 28 09:16:18 2014 UTC (10 years, 5 months ago) by rtr
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +15 -12 lines
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 - view: text, markup, annotated - select for diffs
Thu May 22 11:39:52 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.55.2.2: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.2: +40 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:45:13 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.1: +12 -2 lines
sync with head

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Mar 26 17:58:57 2014 UTC (10 years, 8 months ago) by christos
Branches: 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
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -2 lines
kill sprintf.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Mar 20 01:15:29 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +9 -1 lines
allow LS to be commented out

Revision 1.38.4.3: download - view: text, markup, annotated - select for diffs
Sat Sep 7 17:23:39 2013 UTC (11 years, 2 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.38.4.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.4.2: +97 -26 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 30 16:42:17 2013 UTC (11 years, 3 months ago) by jmcneill
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -1 lines
Add support for using a raw file-system image as memory disk root with
the x86 bootloader.

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:17 2013 UTC (11 years, 3 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +29 -1 lines
sync with head

Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 10 22:42:29 2013 UTC (11 years, 3 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.57.2.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.1: +29 -1 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 28 08:50:09 2013 UTC (11 years, 4 months ago) by he
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +29 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 30 17:19:51 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.1: +15 -4 lines
sync with head

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 12 18:56:54 2012 UTC (12 years, 3 months ago) by martin
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +15 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 4 03:51:27 2012 UTC (12 years, 4 months ago) by riastradh
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +15 -4 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:30 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -2 lines
sync with head

Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:32:23 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +2 -2 lines
merge to -current.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Dec 25 06:09:09 2011 UTC (12 years, 11 months ago) by tsutsui
Branches: 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
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 28 07:56:54 2011 UTC (13 years ago) by tls
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -1 lines

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 - view: text, markup, annotated - select for diffs
Sat Aug 27 15:37:27 2011 UTC (13 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.42.2.4: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.4: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 23 12:07:00 2011 UTC (13 years, 5 months ago) by mrg
Branches: 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
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -2 lines
cast a uint8_t * to a char * for a function that takes char *.

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:05:52 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +10 -3 lines
Sync with HEAD.

Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:05 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.48.2.2: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.2: +3 -1 lines
sync with head

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu May 26 04:25:27 2011 UTC (13 years, 6 months ago) by uebayasi
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:08 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.2.1: +5 -1 lines
sync with head

Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 28 23:58:11 2011 UTC (13 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.42.2.3: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.3: +23 -10 lines
Cure sync hiccups. Code with compile errors is not really useful, heh.

Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 28 23:04:44 2011 UTC (13 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.42.2.2: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.2: +8 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 18 18:24:09 2011 UTC (13 years, 8 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +6 -2 lines
Honor bp_timeout even if someone sets X86_BP_FLAGS_NOBOOTCONF.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:50:43 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +7 -7 lines
sync with head

Revision 1.51.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:26 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +2 -1 lines
Sync with HEAD

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Feb 6 23:16:05 2011 UTC (13 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -1 lines
add support for passing image files to the kernel with the 'splash' keyword:

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

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Jan 5 23:13:01 2011 UTC (13 years, 11 months ago) by jakllsch
Branches: MAIN
CVS tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -4 lines
Pass a 64-bit boot partition base LBA into x86 /boot,
while maintaining compatibility with existing bootxx code.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Dec 20 01:12:44 2010 UTC (13 years, 11 months ago) by jakllsch
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +1 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 9 06:03:38 2010 UTC (14 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.1: +3 -3 lines
Sync with HEAD.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Nov 6 23:07:46 2010 UTC (14 years ago) by jym
Branches: MAIN
CVS tags: uebayasi-xip-base6, uebayasi-xip-base5
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
Bring the help command output from boot and pxeboot on par with their
code.

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:31 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +17 -5 lines
Sync with HEAD.

Revision 1.38.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:33:51 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +29 -8 lines
sync to netbsd-5

Revision 1.22.6.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:02:30 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.22.6.3: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.6.3: +21 -6 lines
sync with head

Revision 1.38.4.2: download - view: text, markup, annotated - select for diffs
Sun Feb 14 14:01:08 2010 UTC (14 years, 9 months ago) by bouyer
Branches: 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
Diff to: previous 1.38.4.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.4.1: +17 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 8 21:25:32 2010 UTC (14 years, 9 months ago) by hubertf
Branches: 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
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +17 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 17 14:54:44 2010 UTC (14 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 14 17:49:31 2010 UTC (14 years, 10 months ago) by drochner
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:35 2009 UTC (15 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.1: +3 -2 lines
Sync with HEAD.

Revision 1.38.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 18 16:41:28 2009 UTC (15 years, 1 month ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +13 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:39 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.22.6.2: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.6.2: +3 -2 lines
sync with head

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Sep 13 22:45:27 2009 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, matt-premerge-20091211
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed May 13 17:17:51 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +18 -5 lines
Sync with HEAD.

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

Revision 1.22.6.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:18 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.22.6.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.6.1: +47 -317 lines
sync with head.

Revision 1.38.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:13 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.38.2.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.2: +12 -5 lines
Sync with HEAD.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Mar 21 15:01:56 2009 UTC (15 years, 8 months ago) by ad
Branches: 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
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +12 -5 lines
Fix 'boot -z' bogons.

Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:29:00 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.1: +7 -1 lines
Sync with HEAD.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Feb 16 22:39:30 2009 UTC (15 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 19 13:16:21 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +7 -363 lines
Sync with HEAD.

Revision 1.21.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:04 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.21.6.3: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.6.3: +19 -355 lines
Sync with HEAD.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:45 2009 UTC (15 years, 10 months ago) by christos
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -1 lines
merge christos-time_t

Revision 1.22.2.4: download - view: text, markup, annotated - select for diffs
Sat Dec 27 23:14:24 2008 UTC (15 years, 11 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.22.2.3: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.3: +7 -343 lines
merge with head.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Dec 13 23:30:54 2008 UTC (15 years, 11 months ago) by christos
Branches: MAIN
CVS tags: christos-time_t-nbase, christos-time_t-base
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -2 lines
add a boot.cfg option to clear the screen; default off. From Anon Ymous

Revision 1.31.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:14 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.31.4.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.4.1: +4 -362 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Nov 25 13:23:54 2008 UTC (16 years ago) by ad
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -342 lines
Make pxeboot understand boot.cfg.

Revision 1.22.2.3: download - view: text, markup, annotated - select for diffs
Thu Nov 20 20:45:37 2008 UTC (16 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.22.2.2: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.2: +2 -22 lines
merge with head.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Nov 19 12:36:41 2008 UTC (16 years ago) by ad
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -22 lines
For the x86 boot loader, autoload a kernel module corresponding to the
root file system type.

Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:25 2008 UTC (16 years, 1 month ago) by christos
Branches: christos-time_t
Diff to: previous 1.22.2.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.1: +234 -61 lines
Sync with head.

Revision 1.31.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:15:49 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +124 -54 lines
Sync with HEAD.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Oct 11 11:06:19 2008 UTC (16 years, 1 month ago) by joerg
Branches: 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
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +21 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 10 22:29:05 2008 UTC (16 years, 1 month ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.30.2.2: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.2: +2 -25 lines
Sync with HEAD.

Revision 1.21.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:00 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.21.6.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.6.2: +103 -53 lines
Sync with HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Sep 26 18:42:52 2008 UTC (16 years, 2 months ago) by tsutsui
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -24 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 26 14:12:49 2008 UTC (16 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:28 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.2.1: +104 -31 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 20 11:34:32 2008 UTC (16 years, 3 months ago) by sborrill
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 12 17:56:05 2008 UTC (16 years, 3 months ago) by sborrill
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +97 -25 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 8 07:48:32 2008 UTC (16 years, 3 months ago) by simonb
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:28 2008 UTC (16 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +7 -7 lines
Sync with head.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Jul 15 21:29:37 2008 UTC (16 years, 4 months ago) by perry
Branches: MAIN
CVS tags: simonb-wapbl-nbase, simonb-wapbl-base
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +7 -7 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:27 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -5 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.22.4.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:04:47 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.22.4.1: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.4.1: +8 -5 lines
sync with head

Revision 1.21.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:18 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.21.6.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.6.1: +112 -9 lines
Sync with HEAD.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed May 21 01:51:34 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -5 lines
- Stop the twiddler going awry.
- Clear screen if on a glass tty (!).

Revision 1.22.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:32:17 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +109 -9 lines
sync with head.

Revision 1.22.6.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:22:38 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +109 -9 lines
sync with head.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue May 6 12:52:34 2008 UTC (16 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
Add a missing semicolon.
(mmm, compile before commit :)

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue May 6 09:48:00 2008 UTC (16 years, 7 months ago) by apb
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon May 5 08:36:55 2008 UTC (16 years, 7 months ago) by chris
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat May 3 18:49:13 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -2 lines
Handle compressed modules.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat May 3 09:46:40 2008 UTC (16 years, 7 months ago) by sborrill
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +26 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri May 2 15:26:38 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +78 -1 lines
- 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 - view: text, markup, annotated - select for diffs
Wed Apr 30 16:18:26 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -1 lines
Tidy up console output slightly.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Apr 29 21:35:47 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Adjust the help string for new options.

Revision 1.21.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:19 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Sync with HEAD.

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:46:56 2008 UTC (16 years, 8 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:00 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +2 -2 lines
sync with head.

Revision 1.13.10.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:07 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.13.10.2: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.10.2: +2 -2 lines
sync with HEAD

Revision 1.11.2.4: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:21 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.11.2.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.3: +2 -2 lines
sync with head.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Feb 23 17:49:29 2008 UTC (16 years, 9 months ago) by sborrill
Branches: 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
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Only attempt to output up to MAXBANNER banner lines

Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:04:41 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.2: +21 -12 lines
Sync with HEAD.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:37:15 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.2: +48 -14 lines
sync with head

Revision 1.13.10.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:46:48 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.13.10.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.10.1: +295 -7 lines
sync with HEAD

Revision 1.16.6.3: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:07 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.16.6.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.6.2: +15 -6 lines
Sync with HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jan 5 19:29:16 2008 UTC (16 years, 11 months ago) by apb
Branches: 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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +16 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 2 21:48:26 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.16.6.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.1: +5 -5 lines
Sync with HEAD

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Jan 2 10:39:39 2008 UTC (16 years, 11 months ago) by sborrill
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -5 lines
Configuration file is boot.cfg, not boot.cnf, so fix comments

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 29 16:28:40 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Add -z to usage strings.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 29 16:02:46 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
Mention -x in command_help

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:43:11 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.1: +28 -3 lines
Sync with HEAD.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:42:26 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +28 -3 lines
Sync with head.

Revision 1.16.6.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 21:54:47 2007 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +28 -3 lines
Sync with HEAD

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Dec 13 11:52:17 2007 UTC (16 years, 11 months ago) by sborrill
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +28 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 8 18:17:13 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +260 -6 lines
Sync with HEAD.

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:25:04 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +260 -6 lines
sync with head

Revision 1.12.30.3: download - view: text, markup, annotated - select for diffs
Mon Dec 3 19:03:33 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.12.30.2: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.30.2: +1 -25 lines
Sync with HEAD.

Revision 1.12.30.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:36:55 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.12.30.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.30.1: +284 -6 lines
Sync with HEAD.

Revision 1.13.8.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:35:41 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.13.8.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.8.1: +2 -2 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Nov 23 13:47:03 2007 UTC (17 years ago) by sborrill
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 21 21:53:20 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +261 -7 lines
Sync with HEAD.

Revision 1.13.14.1: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:19:14 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +261 -7 lines
Sync with HEAD

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Nov 20 15:37:37 2007 UTC (17 years ago) by sborrill
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +261 -7 lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 6 23:17:50 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1 lines
sync with HEAD

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:54:59 2007 UTC (17 years, 1 month ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4, jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 3 19:23:57 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -2 lines
Sync with HEAD

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:26:54 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
sync with head.

Revision 1.12.30.1: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:16:13 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Sync with head.

Revision 1.12.32.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:00:14 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -2 lines
Sync with head.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jul 8 11:44:08 2007 UTC (17 years, 5 months ago) by ws
Branches: 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
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Fix "Fix a garbage in previous commit." in 1.10.

Hi, junyoung!

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:17:47 2005 UTC (18 years, 11 months ago) by christos
Branches: 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -1 lines
merge ktrace-lwp.

Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:56:53 2005 UTC (19 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.4: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.4: +52 -45 lines
Sync with HEAD. Here we go again...

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jun 22 06:06:34 2005 UTC (19 years, 5 months ago) by junyoung
Branches: 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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +22 -11 lines
Add support for cd9660 file system to the i386 BIOS bootloader.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jun 21 14:20:35 2005 UTC (19 years, 5 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -6 lines
- 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 - view: text, markup, annotated - select for diffs
Tue Jun 21 14:16:27 2005 UTC (19 years, 5 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
More cosmetic changes.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jun 21 14:13:40 2005 UTC (19 years, 5 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +16 -18 lines
- 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 - view: text, markup, annotated - select for diffs
Wed Jun 15 19:07:36 2005 UTC (19 years, 5 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Cosmetic changes.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jun 15 08:03:07 2005 UTC (19 years, 5 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +15 -16 lines
KNF & notably, use u_int rather than unsigned int for now for consistency.
This should be reversed eventually...

Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 7 20:29:40 2005 UTC (19 years, 8 months ago) by jwise
Branches: 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
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +2 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:04 2004 UTC (20 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.3: preferred, colored
Changes since revision 1.1.2.3: +2 -1 lines
Sync with HEAD.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Nov 25 08:30:52 2004 UTC (20 years ago) by christos
Branches: 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
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
include sys/types.h to make this compile again.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:17:10 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.2: preferred, colored
Changes since revision 1.1.2.2: +1 -1 lines
Fix the sync with head I botched.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:35:50 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.1: preferred, colored
Changes since revision 1.1.2.1: +0 -0 lines
Sync with HEAD.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:36:19 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -5 lines
Sync with HEAD

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 8 04:25:45 2003 UTC (21 years, 2 months ago) by lukem
Branches: 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 6 05:24:54 2003 UTC (21 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 27 07:04:46 2003 UTC (21 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
rewrite an undefined assignment

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Apr 16 22:36:14 2003 UTC (21 years, 7 months ago) by dsl
Branches: MAIN
Branch point for: ktrace-lwp
Add files for 2nd stage boot loader

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>