CVS commit: src/share/man/man8/man8.x86

2023-05-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May 14 09:03:02 UTC 2023

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
x86/boot(8): Nix trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.29 src/share/man/man8/man8.x86/boot.8:1.30
--- src/share/man/man8/man8.x86/boot.8:1.29	Mon May  8 00:40:50 2023
+++ src/share/man/man8/man8.x86/boot.8	Sun May 14 09:03:02 2023
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.29 2023/05/08 00:40:50 manu Exp $
+.\"	$NetBSD: boot.8,v 1.30 2023/05/14 09:03:02 riastradh Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -364,7 +364,7 @@ flag in
 Boot the system in silent mode.
 .El
 .It Ic consdev Ar dev\| Ns Oo Ns Ic \&, Ns Ar speed Oc
-[Not available for 
+[Not available for
 .Xr x86/dosboot 8 ]
 Immediately switch the console to the specified device
 .Ar dev
@@ -417,7 +417,7 @@ video modes. If an argument is given, se
 .It Ic help
 Print an overview about commands and arguments.
 .It Ic load Ar module Op Ar arguments
-[Not available for 
+[Not available for
 .Xr x86/dosboot 8 ]
 Load the specified kernel
 .Ar module ,
@@ -664,7 +664,7 @@ otherwise a crash occurs at boot time.
 Copy the kernel at ELF header load address, this is the historical
 behavior.
 .It Va none
-Leave the kernel where it was loaded and start it as is. 
+Leave the kernel where it was loaded and start it as is.
 .It Va address
 Copy the kernel at given
 .Va address .
@@ -719,8 +719,8 @@ PIC.
 .It Ic text Op Va mode_index
 [Only available UEFI boot] Without argument, list the available
 text modes (displayed as column x line in hexadecimal, therefore
-.Li 50x19 
-means 
+.Li 50x19
+means
 .Li 80
 columns and
 .Li 25



CVS commit: src/share/man/man8/man8.x86

2023-05-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May 14 09:03:02 UTC 2023

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
x86/boot(8): Nix trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/share/man/man8/man8.x86/boot.8

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



CVS commit: src/share/man/man8/man8.x86

2023-05-07 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Mon May  8 00:40:50 UTC 2023

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Remove XXX todo marker left by mistake


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.28 src/share/man/man8/man8.x86/boot.8:1.29
--- src/share/man/man8/man8.x86/boot.8:1.28	Fri May  5 00:34:40 2023
+++ src/share/man/man8/man8.x86/boot.8	Mon May  8 00:40:50 2023
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.28 2023/05/05 00:34:40 manu Exp $
+.\"	$NetBSD: boot.8,v 1.29 2023/05/08 00:40:50 manu Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -701,7 +701,7 @@ and may impact system security.
 Pass an explicit root specification to the kernel.
 See BTINFO_ROOTDEVICE for details.
 .It Ic splash Ar file
-[Only available for BIOS and UEFI boot] XXX document
+[Only available for BIOS and UEFI boot]
 Load a graphical image from the specified
 .Ar file
 and request the kernel to use it as a splash screen.



CVS commit: src/share/man/man8/man8.x86

2023-05-07 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Mon May  8 00:40:50 UTC 2023

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Remove XXX todo marker left by mistake


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/share/man/man8/man8.x86/boot.8

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



CVS commit: src/share/man/man8/man8.x86

2023-04-24 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Mon Apr 24 13:55:45 UTC 2023

Modified Files:
src/share/man/man8/man8.x86: boot.8 dosboot.8 pxeboot.8

Log Message:
Merge x86 boot options in x86/boot(8) and add undocumented UEFI options

We were supposed to keep the option list in x86/boot(8), x86/dosoot(8)
and x86/pxeboot(8) in sync, but it did not happen, hence it may work
better with all the options in x86/boot(8). Also add the undocumented
UEFI boot options.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/share/man/man8/man8.x86/boot.8
cvs rdiff -u -r1.3 -r1.4 src/share/man/man8/man8.x86/dosboot.8
cvs rdiff -u -r1.5 -r1.6 src/share/man/man8/man8.x86/pxeboot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.26 src/share/man/man8/man8.x86/boot.8:1.27
--- src/share/man/man8/man8.x86/boot.8:1.26	Tue Jun 22 03:39:21 2021
+++ src/share/man/man8/man8.x86/boot.8	Mon Apr 24 13:55:45 2023
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.26 2021/06/22 03:39:21 gutteridge Exp $
+.\"	$NetBSD: boot.8,v 1.27 2023/04/24 13:55:45 manu Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -364,6 +364,8 @@ flag in
 Boot the system in silent mode.
 .El
 .It Ic consdev Ar dev\| Ns Oo Ns Ic \&, Ns Ar speed Oc
+[Not available for 
+.Xr x86/dosboot 8 ]
 Immediately switch the console to the specified device
 .Ar dev
 and reprint the banner.
@@ -397,16 +399,26 @@ Without an argument, print the current s
 .Ar device
 is of the form specified in
 .Ic boot .
+.It Ic devpath
+[Only available for UEFI boot] Dump UEFI device paths.
+.It Ic efivar
+[Only available for UEFI boot] Dump UEFI environment variables from NVRAM.
 .It Ic fs Ar file
+[Only available for BIOS and UEFI boot]
 Load a file system image from the specified
 .Ar file ,
 and request the kernel to use it as the root file system.
 The
 .Xr makefs 8
 utility may be used to create suitable file system images.
+.It Ic gop Op Va mode_index
+[Only available for UEFI boot] Without argument, list the available
+video modes. If an argument is given, select a video mode.
 .It Ic help
 Print an overview about commands and arguments.
 .It Ic load Ar module Op Ar arguments
+[Not available for 
+.Xr x86/dosboot 8 ]
 Load the specified kernel
 .Ar module ,
 and pass it the specified
@@ -520,12 +532,17 @@ See
 .Xr pciback 4 .
 .El
 .It Ic ls Op Ar path
+[Not available for
+.Xr x86/pxeboot 8 ]
 Print a directory listing of
 .Ar path ,
 containing inode number, filename, and file type.
 .Ar path
 can contain a device specification.
+.It Ic memmap
+[Only available for UEFI boot] Dump UEFI memory map.
 .It Ic menu
+[Only available for BIOS and UEFI boot]
 Display the boot menu and initiate a countdown,
 similarly to what would have happened if interactive mode
 had not been entered.
@@ -534,6 +551,8 @@ had not been entered.
No \(or Li enabled \
No \(or Li disabled\^ \
Brc
+[Not available for
+.Xr x86/dosboot 8 ]
 The values
 .Ql enabled ,
 .Ql on
@@ -545,7 +564,18 @@ whereas
 .Ql disabled ,
 .Ql off
 will turn off the feature.
+.It Ic mode Va fstype
+[Only available for
+.Xr x86/dosboot 8 ]
+Switch file system type;
+.Va fstype
+should be one of
+.Ar dos
+or
+.Ar ufs .
 .It Ic multiboot Ar kernel Op Ar arguments
+[Not available for
+.Xr x86/dosboot 8 ]
 Boot the specified
 .Ar kernel ,
 using the
@@ -615,12 +645,30 @@ command.
 See the foreign operating system's documentation for the available
 .Ar arguments .
 .El
+.It Ic pkboot
+[Only available for BIOS and UEFI boot] Boot a kernel that has
+the
+.Cd KASLR
+option set, for Kernel Address Space Layout Randomizaton.
 .It Ic quit
 Reboot the system.
-.It Ic root Ar spec
-Pass an explicit root specification to the kernel.
-See BTINFO_ROOTDEVICE for details.
+.It Ic reloc Op Va default No \(or Va none No \(or Va address
+[Only UEFI boot] Sets where the kernel is copied by bootstrap
+before it is started. Values other than default require a kernel
+that can relocate itself at the right address, otherwise a crash
+occurs at boot time.
+.Bl -tag -width default
+.It Va default
+Copy the kernel at ELF header load address, this is the historical
+behavior.
+.It Va none
+Leave the kernel where it was loaded and start it as is. 
+.It Va address
+Copy the kernel at given
+.Va address .
+.El
 .It Ic rndseed Ar file
+[Only available for BIOS and UEFI boot]
 Load the specified
 .Ar file
 and request the kernel to use it as a seed for the
@@ -646,16 +694,12 @@ Using the same seed file on more then on
 or for more than one boot on the same host,
 will reduce the quality of random numbers
 and may impact system security.
-.It Ic userconf Ar command
-Pass command
-.Ar command
-to
-.Xr userconf 4
-at boot time.
-These commands are processed before the interactive
-.Xr

CVS commit: src/share/man/man8/man8.x86

2023-04-24 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Mon Apr 24 13:55:45 UTC 2023

Modified Files:
src/share/man/man8/man8.x86: boot.8 dosboot.8 pxeboot.8

Log Message:
Merge x86 boot options in x86/boot(8) and add undocumented UEFI options

We were supposed to keep the option list in x86/boot(8), x86/dosoot(8)
and x86/pxeboot(8) in sync, but it did not happen, hence it may work
better with all the options in x86/boot(8). Also add the undocumented
UEFI boot options.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/share/man/man8/man8.x86/boot.8
cvs rdiff -u -r1.3 -r1.4 src/share/man/man8/man8.x86/dosboot.8
cvs rdiff -u -r1.5 -r1.6 src/share/man/man8/man8.x86/pxeboot.8

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



CVS commit: src/share/man/man8/man8.x86

2019-09-15 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Mon Sep 16 01:57:58 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Remove obsoeolete BUGS note that UEFI bootloader does not support multiboot


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.19 src/share/man/man8/man8.x86/boot.8:1.20
--- src/share/man/man8/man8.x86/boot.8:1.19	Fri Sep 13 07:11:04 2019
+++ src/share/man/man8/man8.x86/boot.8	Mon Sep 16 01:57:58 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.19 2019/09/13 07:11:04 wiz Exp $
+.\"	$NetBSD: boot.8,v 1.20 2019/09/16 01:57:58 manu Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -826,11 +826,6 @@ field of the
 .Nx
 disklabel (if it is a hard disk).
 .Pp
-.Ic multiboot
-is not supported by
-.Tn UEFI
-bootstrap code.
-.Pp
 .Tn UEFI
 implementation are supposed to support either
 .Xr mbr 8



CVS commit: src/share/man/man8/man8.x86

2019-09-15 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Mon Sep 16 01:57:58 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Remove obsoeolete BUGS note that UEFI bootloader does not support multiboot


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man8/man8.x86/boot.8

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



CVS commit: src/share/man/man8/man8.x86

2019-09-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri Sep 13 07:11:04 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
New sentence, new line. Bump date for previous.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/share/man/man8/man8.x86/boot.8

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



CVS commit: src/share/man/man8/man8.x86

2019-09-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri Sep 13 07:11:04 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
New sentence, new line. Bump date for previous.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.18 src/share/man/man8/man8.x86/boot.8:1.19
--- src/share/man/man8/man8.x86/boot.8:1.18	Fri Sep 13 01:34:19 2019
+++ src/share/man/man8/man8.x86/boot.8	Fri Sep 13 07:11:04 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.18 2019/09/13 01:34:19 manu Exp $
+.\"	$NetBSD: boot.8,v 1.19 2019/09/13 07:11:04 wiz Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\" @(#)boot_i386.8	8.2 (Berkeley) 4/19/94
 .\"
-.Dd August 18, 2019
+.Dd September 13, 2019
 .Dt BOOT 8 x86
 .Os
 .Sh NAME
@@ -440,7 +440,8 @@ is of the form
 .Va NAME=partition_label
 for
 .Xr gpt 8
-partitionned disks. It can also be a unit name
+partitioned disks.
+It can also be a unit name
 .Po Dq wd0
 .Pc ,
 or an interface name



CVS commit: src/share/man/man8/man8.x86

2019-09-12 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Fri Sep 13 01:34:19 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Document that bootdev option accepts device specification as NAME=label


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.17 src/share/man/man8/man8.x86/boot.8:1.18
--- src/share/man/man8/man8.x86/boot.8:1.17	Sun Aug 18 08:12:36 2019
+++ src/share/man/man8/man8.x86/boot.8	Fri Sep 13 01:34:19 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.17 2019/08/18 08:12:36 wiz Exp $
+.\"	$NetBSD: boot.8,v 1.18 2019/09/13 01:34:19 manu Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -436,7 +436,11 @@ being separated with spaces
 .It Ic bootdev Ns = Ns Ar dev Po or Ic root Ns = Ns Ar dev Pc
 Override the default boot device.
 .Ar dev
-can be a unit name
+is of the form
+.Va NAME=partition_label
+for
+.Xr gpt 8
+partitionned disks. It can also be a unit name
 .Po Dq wd0
 .Pc ,
 or an interface name



CVS commit: src/share/man/man8/man8.x86

2019-09-12 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Fri Sep 13 01:34:19 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Document that bootdev option accepts device specification as NAME=label


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man8/man8.x86/boot.8

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



CVS commit: src/share/man/man8/man8.x86

2019-08-18 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Aug 18 08:12:36 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

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


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.16 src/share/man/man8/man8.x86/boot.8:1.17
--- src/share/man/man8/man8.x86/boot.8:1.16	Sun Aug 18 02:23:48 2019
+++ src/share/man/man8/man8.x86/boot.8	Sun Aug 18 08:12:36 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.16 2019/08/18 02:23:48 manu Exp $
+.\"	$NetBSD: boot.8,v 1.17 2019/08/18 08:12:36 wiz Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\" @(#)boot_i386.8	8.2 (Berkeley) 4/19/94
 .\"
-.Dd May 15, 2019
+.Dd August 18, 2019
 .Dt BOOT 8 x86
 .Os
 .Sh NAME
@@ -40,13 +40,9 @@
 .Nd
 system bootstrapping procedures
 .Sh DESCRIPTION
-.Tn IA-32
-computers
-.Po
-the
+Intel Architecture, 32-bit (IA-32) computers (the
 .Tn IBM PC
-and its clones
-.Pc
+and its clones)
 that can run
 .Nx Ns /i386
 or
@@ -62,7 +58,7 @@ from the system
 .Tn BIOS
 .It efiboot
 bootstrap
-.Nx 
+.Nx
 from the system
 .Tn UEFI
 .It Xr x86/dosboot 8
@@ -180,8 +176,8 @@ input of these commands:
 .It Ic boot Oo Va device : Oc Ns Oo Va filename Oc Oo Fl 1234abcdmqsvxz Oc
 The default
 .Va device
-will be set to the disk from which the boot loader was loaded. The
-partition is set to the first match in this list:
+will be set to the disk from which the boot loader was loaded.
+The partition is set to the first match in this list:
 .Bl -enum -compact
 .It
 The first
@@ -193,7 +189,7 @@ attribute set.
 The partition from which the boot loader was loaded from, if that
 can be detected.
 .It
-The first partition with a filesystem that could be bootable.
+The first partition with a file system that could be bootable.
 .It
 The first partition.
 .El
@@ -204,7 +200,8 @@ is of the form
 .Va NAME=partition_label
 when booting from a
 .Xr gpt 8
-partitionned disk. Otherwise, the syntax is
+partitioned disk.
+Otherwise, the syntax is
 .Xo Va xd
 .Op Va N Ns Op Va x
 .Xc
@@ -231,17 +228,17 @@ Floppy drives as numbered by the BIOS.
 CD-ROM drives as numbered by the BIOS.
 .It raid
 RAIDframe configured from hard disks recognized by the BIOS.
-Only RAID level 1 sets are supported by bootstrap code. If
-the RAID is partitionned, the first partition is used, or the
+Only RAID level 1 sets are supported by bootstrap code.
+If the RAID is partitioned, the first partition is used, or the
 first
 .Xr gpt 8
 partition that has the
 .Va bootme
-attribute set. Inner RAIDframe partition can also be
-given to the
+attribute set.
+Inner RAIDframe partitions can also be given to the
 .Ic dev
 command using he
-.Va NAME=partiton_label
+.Va NAME=partition_label
 syntax.
 .El
 .Pp
@@ -839,12 +836,13 @@ partitionning, but some do not handle th
 Booting
 from a
 .Xr gpt 8
-partitionned disk is still possible in this case, by adding
+partitioned disk is still possible in this case, by adding
 an overlapping
 .Tn EFI
 partition in the protective
 .Xr mbr 8
-block. This can be achieved using the following commands
+block.
+This can be achieved using the following commands
 (you must adapt the hard disk and
 .Tn EFI
 partition start end size to fit your setup):
@@ -863,4 +861,3 @@ partition table will look like this:
 2: 
 3: 
 .Ed
-



CVS commit: src/share/man/man8/man8.x86

2019-08-18 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Aug 18 08:12:36 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

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


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man8/man8.x86/boot.8

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



CVS commit: src/share/man/man8/man8.x86

2019-08-17 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Sun Aug 18 02:23:48 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Document new GPT and RAIDframe capacity of bootstrap code

While there, also document EFI setup and some bugs


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.15 src/share/man/man8/man8.x86/boot.8:1.16
--- src/share/man/man8/man8.x86/boot.8:1.15	Wed May 15 17:35:02 2019
+++ src/share/man/man8/man8.x86/boot.8	Sun Aug 18 02:23:48 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.15 2019/05/15 17:35:02 maxv Exp $
+.\"	$NetBSD: boot.8,v 1.16 2019/08/18 02:23:48 manu Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -60,6 +60,11 @@ bootstrap
 .Nx
 from the system
 .Tn BIOS
+.It efiboot
+bootstrap
+.Nx 
+from the system
+.Tn UEFI
 .It Xr x86/dosboot 8
 bootstrap
 .Nx
@@ -175,12 +180,31 @@ input of these commands:
 .It Ic boot Oo Va device : Oc Ns Oo Va filename Oc Oo Fl 1234abcdmqsvxz Oc
 The default
 .Va device
-will be set to the disk that the boot loader was
-loaded from.
+will be set to the disk from which the boot loader was loaded. The
+partition is set to the first match in this list:
+.Bl -enum -compact
+.It
+The first
+.Xr gpt 8
+partition with the
+.Va bootme
+attribute set.
+.It
+The partition from which the boot loader was loaded from, if that
+can be detected.
+.It
+The first partition with a filesystem that could be bootable.
+.It
+The first partition.
+.El
 To boot from an alternate disk, the full name of the device should
 be given at the prompt.
 .Va device
 is of the form
+.Va NAME=partition_label
+when booting from a
+.Xr gpt 8
+partitionned disk. Otherwise, the syntax is
 .Xo Va xd
 .Op Va N Ns Op Va x
 .Xc
@@ -192,8 +216,8 @@ is the unit number, and
 .Va x
 is the partition letter.
 .Pp
-The following list of supported devices may vary from installation to
-installation:
+In the later case, the following list of supported devices may
+vary from installation to installation:
 .Pp
 .Bl -hang -compact
 .It hd
@@ -203,6 +227,22 @@ lookalike controller(s), and SCSI disks
 on SCSI controllers recognized by the BIOS.
 .It fd
 Floppy drives as numbered by the BIOS.
+.It cd
+CD-ROM drives as numbered by the BIOS.
+.It raid
+RAIDframe configured from hard disks recognized by the BIOS.
+Only RAID level 1 sets are supported by bootstrap code. If
+the RAID is partitionned, the first partition is used, or the
+first
+.Xr gpt 8
+partition that has the
+.Va bootme
+attribute set. Inner RAIDframe partition can also be
+given to the
+.Ic dev
+command using he
+.Va NAME=partiton_label
+syntax.
 .El
 .Pp
 The default
@@ -700,6 +740,33 @@ the
 .Nx
 partition by
 .Xr installboot 8 .
+.It Pa /usr/mdec/bootia32.efi
+.It Pa /usr/mdec/bootx64.efi
+.Tn UEFI
+bootstraps for
+.Nx Ns /i386
+and
+.Nx Ns /amd64 ,
+which should be copied to the
+.Pa /efi/boot
+directory in a
+.Tn FAT
+formatted partition of type
+.Tn EFI
+(Either
+.Xr mbr 8
+and
+.Xr gpt 8 ,
+see the
+.Sx BUGS
+section).
+.Nx
+.Tn UEFI
+bootstrap reads its configuration from the
+.Pa /efi/netBSD/boot.cfg
+file in the
+.Tn EFI
+partition.
 .El
 .Sh SEE ALSO
 .Xr ddb 4 ,
@@ -756,3 +823,44 @@ is derived from the
 field of the
 .Nx
 disklabel (if it is a hard disk).
+.Pp
+.Ic multiboot
+is not supported by
+.Tn UEFI
+bootstrap code.
+.Pp
+.Tn UEFI
+implementation are supposed to support either
+.Xr mbr 8
+or
+.Xr gpt 8
+partitionning, but some do not handle the later.
+.Tn UEFI
+Booting
+from a
+.Xr gpt 8
+partitionned disk is still possible in this case, by adding
+an overlapping
+.Tn EFI
+partition in the protective
+.Xr mbr 8
+block. This can be achieved using the following commands
+(you must adapt the hard disk and
+.Tn EFI
+partition start end size to fit your setup):
+.Dl Ic dd if=/dev/rwd0d bs=512 count=1 of=mbr
+.Dl Ic fdisk -FIfaui1s 4/34/32768 -c /usr/mdec/mbr mbr
+.Dl Ic dd if=mbr bs=512 count=1 of=/dev/rwd0d conv=notrunc
+The resulting
+.Xr mbr 8
+partition table will look like this:
+.Bd -unfilled -offset indent
+0: GPT Protective MBR (sysid 238)
+start 1, size 2097151 (1024 MB, Cyls 0-130/138/8)
+PBR is not bootable: Bad magic number (0x)
+1: Primary DOS with 16 bit FAT <32M (sysid 4)
+start 34, size 32768 (16 MB, Cyls 0/0/35-2/10/42), Active
+2: 
+3: 
+.Ed
+



CVS commit: src/share/man/man8/man8.x86

2019-08-17 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Sun Aug 18 02:23:48 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
Document new GPT and RAIDframe capacity of bootstrap code

While there, also document EFI setup and some bugs


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man8/man8.x86/boot.8

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



CVS commit: src/share/man/man8/man8.x86

2019-05-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed May 15 17:35:03 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
RB_MD3 now disables SVS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man8/man8.x86/boot.8

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

Modified files:

Index: src/share/man/man8/man8.x86/boot.8
diff -u src/share/man/man8/man8.x86/boot.8:1.14 src/share/man/man8/man8.x86/boot.8:1.15
--- src/share/man/man8/man8.x86/boot.8:1.14	Tue Nov 27 10:35:03 2018
+++ src/share/man/man8/man8.x86/boot.8	Wed May 15 17:35:02 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: boot.8,v 1.14 2018/11/27 10:35:03 wiz Exp $
+.\"	$NetBSD: boot.8,v 1.15 2019/05/15 17:35:02 maxv Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\" @(#)boot_i386.8	8.2 (Berkeley) 4/19/94
 .\"
-.Dd November 25, 2018
+.Dd May 15, 2019
 .Dt BOOT 8 x86
 .Os
 .Sh NAME
@@ -245,8 +245,8 @@ Sets the machine-dependent flag
 in
 .Va boothowto .
 In
-.Nx Ns /x86 ,
-this has no effect.
+.Nx Ns /amd64 ,
+this disables SVS.
 .It Fl 4
 Sets the machine-dependent flag
 .Sy RB_MD4



CVS commit: src/share/man/man8/man8.x86

2019-05-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed May 15 17:35:03 UTC 2019

Modified Files:
src/share/man/man8/man8.x86: boot.8

Log Message:
RB_MD3 now disables SVS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man8/man8.x86/boot.8

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