| @@ -1,862 +1,873 @@ | | | @@ -1,862 +1,873 @@ |
1 | .\" $NetBSD: boot.8,v 1.11.4.4 2019/09/18 17:30:05 martin Exp $ | | 1 | .\" $NetBSD: boot.8,v 1.11.4.5 2020/07/15 15:54:50 martin Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1991, 1993 | | 3 | .\" Copyright (c) 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software written and contributed | | 6 | .\" This code is derived from software written and contributed |
7 | .\" to Berkeley by William Jolitz. | | 7 | .\" to Berkeley by William Jolitz. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
15 | .\" notice, this list of conditions and the following disclaimer in the | | 15 | .\" notice, this list of conditions and the following disclaimer in the |
16 | .\" documentation and/or other materials provided with the distribution. | | 16 | .\" documentation and/or other materials provided with the distribution. |
17 | .\" 3. Neither the name of the University nor the names of its contributors | | 17 | .\" 3. Neither the name of the University nor the names of its contributors |
18 | .\" may be used to endorse or promote products derived from this software | | 18 | .\" may be used to endorse or promote products derived from this software |
19 | .\" without specific prior written permission. | | 19 | .\" without specific prior written permission. |
20 | .\" | | 20 | .\" |
21 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | | 21 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
22 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 22 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
27 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 27 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 28 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
29 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 29 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
31 | .\" SUCH DAMAGE. | | 31 | .\" SUCH DAMAGE. |
32 | .\" | | 32 | .\" |
33 | .\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94 | | 33 | .\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94 |
34 | .\" | | 34 | .\" |
35 | .Dd September 13, 2019 | | 35 | .Dd July 15, 2020 |
36 | .Dt BOOT 8 x86 | | 36 | .Dt BOOT 8 x86 |
37 | .Os | | 37 | .Os |
38 | .Sh NAME | | 38 | .Sh NAME |
39 | .Nm boot | | 39 | .Nm boot |
40 | .Nd | | 40 | .Nd |
41 | system bootstrapping procedures | | 41 | system bootstrapping procedures |
42 | .Sh DESCRIPTION | | 42 | .Sh DESCRIPTION |
43 | Intel Architecture, 32-bit (IA-32) computers (the | | 43 | Intel Architecture, 32-bit (IA-32) computers (the |
44 | .Tn IBM PC | | 44 | .Tn IBM PC |
45 | and its clones) | | 45 | and its clones) |
46 | that can run | | 46 | that can run |
47 | .Nx Ns /i386 | | 47 | .Nx Ns /i386 |
48 | or | | 48 | or |
49 | .Nx Ns /amd64 | | 49 | .Nx Ns /amd64 |
50 | can use any of the following boot procedures, depending on what the hardware and | | 50 | can use any of the following boot procedures, depending on what the hardware and |
51 | .Tn BIOS | | 51 | .Tn BIOS |
52 | support: | | 52 | support: |
53 | .Bl -tag -width "x86/pxeboot(8)" | | 53 | .Bl -tag -width "x86/pxeboot(8)" |
54 | .It boot | | 54 | .It boot |
55 | bootstrap | | 55 | bootstrap |
56 | .Nx | | 56 | .Nx |
57 | from the system | | 57 | from the system |
58 | .Tn BIOS | | 58 | .Tn BIOS |
59 | .It efiboot | | 59 | .It efiboot |
60 | bootstrap | | 60 | bootstrap |
61 | .Nx | | 61 | .Nx |
62 | from the system | | 62 | from the system |
63 | .Tn UEFI | | 63 | .Tn UEFI |
64 | .It Xr x86/dosboot 8 | | 64 | .It Xr x86/dosboot 8 |
65 | bootstrap | | 65 | bootstrap |
66 | .Nx | | 66 | .Nx |
67 | from | | 67 | from |
68 | .Tn MS-DOS | | 68 | .Tn MS-DOS |
69 | .It Xr x86/pxeboot 8 | | 69 | .It Xr x86/pxeboot 8 |
70 | network bootstrap | | 70 | network bootstrap |
71 | .Nx | | 71 | .Nx |
72 | from a | | 72 | from a |
73 | .Tn TCP/IP | | 73 | .Tn TCP/IP |
74 | .Tn LAN | | 74 | .Tn LAN |
75 | with | | 75 | with |
76 | .Tn DHCP , | | 76 | .Tn DHCP , |
77 | .Tn TFTP , | | 77 | .Tn TFTP , |
78 | and | | 78 | and |
79 | .Tn NFS . | | 79 | .Tn NFS . |
80 | .El | | 80 | .El |
81 | .Ss Power fail and crash recovery | | 81 | .Ss Power fail and crash recovery |
82 | Normally, the system will reboot itself at power-up or after crashes. | | 82 | Normally, the system will reboot itself at power-up or after crashes. |
83 | An automatic consistency check of the file systems will be performed, | | 83 | An automatic consistency check of the file systems will be performed, |
84 | and unless this fails, the system will resume multi-user operations. | | 84 | and unless this fails, the system will resume multi-user operations. |
85 | .Ss Cold starts | | 85 | .Ss Cold starts |
86 | The 386 | | 86 | The 386 |
87 | .Tn "PC AT" | | 87 | .Tn "PC AT" |
88 | clones attempt to boot the floppy disk drive A (otherwise known as drive | | 88 | clones attempt to boot the floppy disk drive A (otherwise known as drive |
89 | 0) first, and failing that, attempt to boot the hard disk C (otherwise | | 89 | 0) first, and failing that, attempt to boot the hard disk C (otherwise |
90 | known as hard disk controller 1, drive 0). | | 90 | known as hard disk controller 1, drive 0). |
91 | The | | 91 | The |
92 | .Nx | | 92 | .Nx |
93 | bootblocks are loaded and started either by the | | 93 | bootblocks are loaded and started either by the |
94 | .Tn BIOS , | | 94 | .Tn BIOS , |
95 | or by a boot selector program (such as OS-BS, BOOTEASY, the OS/2 Boot Menu or | | 95 | or by a boot selector program (such as OS-BS, BOOTEASY, the OS/2 Boot Menu or |
96 | .Nx Ns 's | | 96 | .Nx Ns 's |
97 | .No boot-selecting | | 97 | .No boot-selecting |
98 | master boot record - see | | 98 | master boot record - see |
99 | .Xr x86/mbr 8 ) . | | 99 | .Xr x86/mbr 8 ) . |
100 | .Ss Normal Operation | | 100 | .Ss Normal Operation |
101 | Once running, a banner similar to the following will appear: | | 101 | Once running, a banner similar to the following will appear: |
102 | .Bd -unfilled -offset indent | | 102 | .Bd -unfilled -offset indent |
103 | >> NetBSD BIOS Boot, revision 3.0 | | 103 | >> NetBSD BIOS Boot, revision 3.0 |
104 | >> (user@buildhost, builddate) | | 104 | >> (user@buildhost, builddate) |
105 | >> Memory: 637/15360 k | | 105 | >> Memory: 637/15360 k |
106 | Press return to boot now, any other key for boot menu | | 106 | Press return to boot now, any other key for boot menu |
107 | booting hd0a:netbsd - starting in 5 | | 107 | booting hd0a:netbsd - starting in 5 |
108 | .Ed | | 108 | .Ed |
109 | .Pp | | 109 | .Pp |
110 | After a countdown, the system image listed will be loaded. | | 110 | After a countdown, the system image listed will be loaded. |
111 | In the example above, it will be | | 111 | In the example above, it will be |
112 | .Dq Li hd0a:netbsd | | 112 | .Dq Li hd0a:netbsd |
113 | which is the file | | 113 | which is the file |
114 | .Pa /netbsd | | 114 | .Pa /netbsd |
115 | on partition | | 115 | on partition |
116 | .Dq a | | 116 | .Dq a |
117 | of the | | 117 | of the |
118 | .Nx | | 118 | .Nx |
119 | .Tn MBR | | 119 | .Tn MBR |
120 | partition of the first hard disk known to the | | 120 | partition of the first hard disk known to the |
121 | .Tn BIOS | | 121 | .Tn BIOS |
122 | .Po | | 122 | .Po |
123 | which is an | | 123 | which is an |
124 | .Tn IDE | | 124 | .Tn IDE |
125 | or similar device - see the | | 125 | or similar device - see the |
126 | .Sx BUGS | | 126 | .Sx BUGS |
127 | section | | 127 | section |
128 | .Pc . | | 128 | .Pc . |
129 | .Pp | | 129 | .Pp |
130 | Pressing a key within the time limit, or before the boot program starts, will | | 130 | Pressing a key within the time limit, or before the boot program starts, will |
131 | enter interactive mode. | | 131 | enter interactive mode. |
132 | When using a short or 0 timeout, it is often useful to interrupt the boot | | 132 | When using a short or 0 timeout, it is often useful to interrupt the boot |
133 | by holding down a shift key, as some BIOSes and BIOS extensions will drain the | | 133 | by holding down a shift key, as some BIOSes and BIOS extensions will drain the |
134 | keystroke buffer at various points during POST. | | 134 | keystroke buffer at various points during POST. |
135 | .Pp | | 135 | .Pp |
136 | If present, the file | | 136 | If present, the file |
137 | .Pa /boot.cfg | | 137 | .Pa /boot.cfg |
138 | will be used to configure the behaviour of the boot loader including | | 138 | will be used to configure the behaviour of the boot loader including |
139 | setting the timeout, choosing a console device, altering the banner | | 139 | setting the timeout, choosing a console device, altering the banner |
140 | text and displaying a menu allowing boot commands to be easily chosen. | | 140 | text and displaying a menu allowing boot commands to be easily chosen. |
141 | See | | 141 | See |
142 | .Xr boot.cfg 5 . | | 142 | .Xr boot.cfg 5 . |
143 | .Ss Boot Protocol | | 143 | .Ss Boot Protocol |
144 | The | | 144 | The |
145 | .Nx Ns /x86 | | 145 | .Nx Ns /x86 |
146 | boot loader can boot a kernel using either the native | | 146 | boot loader can boot a kernel using either the native |
147 | .Nx | | 147 | .Nx |
148 | boot protocol, or the | | 148 | boot protocol, or the |
149 | .Dq multiboot | | 149 | .Dq multiboot |
150 | protocol (which is compatible with some other operating systems). | | 150 | protocol (which is compatible with some other operating systems). |
151 | In the native | | 151 | In the native |
152 | .Nx | | 152 | .Nx |
153 | boot protocol, options are passed from the boot loader | | 153 | boot protocol, options are passed from the boot loader |
154 | to the kernel via flag bits in the | | 154 | to the kernel via flag bits in the |
155 | .Va boothowto | | 155 | .Va boothowto |
156 | variable (see | | 156 | variable (see |
157 | .Xr boothowto 9 ) . | | 157 | .Xr boothowto 9 ) . |
158 | In the multiboot protocol, options are passed from the boot loader | | 158 | In the multiboot protocol, options are passed from the boot loader |
159 | to the kernel as strings. | | 159 | to the kernel as strings. |
160 | .Ss Diagnostic Output | | 160 | .Ss Diagnostic Output |
161 | If the first stage boot fails to load the boot, it will print a terse | | 161 | If the first stage boot fails to load the boot, it will print a terse |
162 | message indicating the reason for the failure. | | 162 | message indicating the reason for the failure. |
163 | The possible error messages and their cause are listed in | | 163 | The possible error messages and their cause are listed in |
164 | .Xr x86/mbr 8 . | | 164 | .Xr x86/mbr 8 . |
165 | .Pp | | 165 | .Pp |
166 | If the first stage boot succeeds, the banner will be shown and the | | 166 | If the first stage boot succeeds, the banner will be shown and the |
167 | error messages should be self-explanatory. | | 167 | error messages should be self-explanatory. |
168 | .Ss Interactive mode | | 168 | .Ss Interactive mode |
169 | In interactive mode, the boot loader will present a prompt, allowing | | 169 | In interactive mode, the boot loader will present a prompt, allowing |
170 | input of these commands: | | 170 | input of these commands: |
171 | .\" NOTE: much of this text is duplicated in the MI boot.8. | | 171 | .\" NOTE: much of this text is duplicated in the MI boot.8. |
172 | .\" Some of it is | | 172 | .\" Some of it is |
173 | .\" also duplicated in the x86-specific x86/dosboot.8 and x86/pxeboot.8; | | 173 | .\" also duplicated in the x86-specific x86/dosboot.8 and x86/pxeboot.8; |
174 | .\" please try to keep all relevant files synchronized. | | 174 | .\" please try to keep all relevant files synchronized. |
175 | .Bl -tag -width 04n -offset 04n | | 175 | .Bl -tag -width 04n -offset 04n |
176 | .It Ic boot Oo Va device : Oc Ns Oo Va filename Oc Oo Fl 1234abcdmqsvxz Oc | | 176 | .It Ic boot Oo Va device : Oc Ns Oo Va filename Oc Oo Fl 1234abcdmqsvxz Oc |
177 | The default | | 177 | The default |
178 | .Va device | | 178 | .Va device |
179 | will be set to the disk from which the boot loader was loaded. | | 179 | will be set to the disk from which the boot loader was loaded. |
180 | The partition is set to the first match in this list: | | 180 | The partition is set to the first match in this list: |
181 | .Bl -enum -compact | | 181 | .Bl -enum -compact |
182 | .It | | 182 | .It |
183 | The first | | 183 | The first |
184 | .Xr gpt 8 | | 184 | .Xr gpt 8 |
185 | partition with the | | 185 | partition with the |
186 | .Va bootme | | 186 | .Va bootme |
187 | attribute set. | | 187 | attribute set. |
188 | .It | | 188 | .It |
189 | The partition from which the boot loader was loaded from, if that | | 189 | The partition from which the boot loader was loaded from, if that |
190 | can be detected. | | 190 | can be detected. |
191 | .It | | 191 | .It |
192 | The first partition with a file system that could be bootable. | | 192 | The first partition with a file system that could be bootable. |
193 | .It | | 193 | .It |
194 | The first partition. | | 194 | The first partition. |
195 | .El | | 195 | .El |
196 | To boot from an alternate disk, the full name of the device should | | 196 | To boot from an alternate disk, the full name of the device should |
197 | be given at the prompt. | | 197 | be given at the prompt. |
198 | .Va device | | 198 | .Va device |
199 | is of the form | | 199 | is of the form |
200 | .Va NAME=partition_label | | 200 | .Va NAME=partition_label |
201 | when booting from a | | 201 | when booting from a |
202 | .Xr gpt 8 | | 202 | .Xr gpt 8 |
203 | partitioned disk. | | 203 | partitioned disk. |
204 | Otherwise, the syntax is | | 204 | Otherwise, the syntax is |
205 | .Xo Va xd | | 205 | .Xo Va xd |
206 | .Op Va N Ns Op Va x | | 206 | .Op Va N Ns Op Va x |
207 | .Xc | | 207 | .Xc |
208 | where | | 208 | where |
209 | .Va xd | | 209 | .Va xd |
210 | is the device from which to boot, | | 210 | is the device from which to boot, |
211 | .Va N | | 211 | .Va N |
212 | is the unit number, and | | 212 | is the unit number, and |
213 | .Va x | | 213 | .Va x |
214 | is the partition letter. | | 214 | is the partition letter. |
215 | .Pp | | 215 | .Pp |
216 | In the later case, the following list of supported devices may | | 216 | In the later case, the following list of supported devices may |
217 | vary from installation to installation: | | 217 | vary from installation to installation: |
218 | .Pp | | 218 | .Pp |
219 | .Bl -hang -compact | | 219 | .Bl -hang -compact |
220 | .It hd | | 220 | .It hd |
221 | Hard disks as numbered by the BIOS. | | 221 | Hard disks as numbered by the BIOS. |
222 | This includes ST506, IDE, ESDI, RLL disks on a WD100[2367] or | | 222 | This includes ST506, IDE, ESDI, RLL disks on a WD100[2367] or |
223 | lookalike controller(s), and SCSI disks | | 223 | lookalike controller(s), and SCSI disks |
224 | on SCSI controllers recognized by the BIOS. | | 224 | on SCSI controllers recognized by the BIOS. |
225 | .It fd | | 225 | .It fd |
226 | Floppy drives as numbered by the BIOS. | | 226 | Floppy drives as numbered by the BIOS. |
227 | .It cd | | 227 | .It cd |
228 | CD-ROM drives as numbered by the BIOS. | | 228 | CD-ROM drives as numbered by the BIOS. |
229 | .It raid | | 229 | .It raid |
230 | RAIDframe configured from hard disks recognized by the BIOS. | | 230 | RAIDframe configured from hard disks recognized by the BIOS. |
231 | Only RAID level 1 sets are supported by bootstrap code. | | 231 | Only RAID level 1 sets are supported by bootstrap code. |
232 | If the RAID is partitioned, the first partition is used, or the | | 232 | If the RAID is partitioned, the first partition is used, or the |
233 | first | | 233 | first |
234 | .Xr gpt 8 | | 234 | .Xr gpt 8 |
235 | partition that has the | | 235 | partition that has the |
236 | .Va bootme | | 236 | .Va bootme |
237 | attribute set. | | 237 | attribute set. |
238 | Inner RAIDframe partitions can also be given to the | | 238 | Inner RAIDframe partitions can also be given to the |
239 | .Ic dev | | 239 | .Ic dev |
240 | command using he | | 240 | command using he |
241 | .Va NAME=partition_label | | 241 | .Va NAME=partition_label |
242 | syntax. | | 242 | syntax. |
243 | .El | | 243 | .El |
244 | .Pp | | 244 | .Pp |
245 | The default | | 245 | The default |
246 | .Va filename | | 246 | .Va filename |
247 | is | | 247 | is |
248 | .Pa netbsd ; | | 248 | .Pa netbsd ; |
249 | if the boot loader fails to successfully | | 249 | if the boot loader fails to successfully |
250 | open that image, it then tries | | 250 | open that image, it then tries |
251 | .Pa netbsd.gz | | 251 | .Pa netbsd.gz |
252 | (expected to be a kernel image compressed by gzip), followed by | | 252 | (expected to be a kernel image compressed by gzip), followed by |
253 | .Pa netbsd.old , | | 253 | .Pa netbsd.old , |
254 | .Pa netbsd.old.gz , | | 254 | .Pa netbsd.old.gz , |
255 | .Pa onetbsd , | | 255 | .Pa onetbsd , |
256 | and finally | | 256 | and finally |
257 | .Pa onetbsd.gz . | | 257 | .Pa onetbsd.gz . |
258 | Alternate system images can be loaded by just specifying the name of the image. | | 258 | Alternate system images can be loaded by just specifying the name of the image. |
259 | .Pp | | 259 | .Pp |
260 | Options are: | | 260 | Options are: |
261 | .Bl -tag -width xxx | | 261 | .Bl -tag -width xxx |
262 | .It Fl 1 | | 262 | .It Fl 1 |
263 | Sets the machine-dependent flag | | 263 | Sets the machine-dependent flag |
264 | .Sy RB_MD1 | | 264 | .Sy RB_MD1 |
265 | in | | 265 | in |
266 | .Va boothowto . | | 266 | .Va boothowto . |
267 | In | | 267 | In |
268 | .Nx Ns /x86 , | | 268 | .Nx Ns /x86 , |
269 | this disables multiprocessor boot; | | 269 | this disables multiprocessor boot; |
270 | the kernel will boot in uniprocessor mode. | | 270 | the kernel will boot in uniprocessor mode. |
271 | .It Fl 2 | | 271 | .It Fl 2 |
272 | Sets the machine-dependent flag | | 272 | Sets the machine-dependent flag |
273 | .Sy RB_MD2 | | 273 | .Sy RB_MD2 |
274 | in | | 274 | in |
275 | .Va boothowto . | | 275 | .Va boothowto . |
276 | In | | 276 | In |
277 | .Nx Ns /x86 , | | 277 | .Nx Ns /x86 , |
278 | this disables ACPI. | | 278 | this disables ACPI. |
279 | .It Fl 3 | | 279 | .It Fl 3 |
280 | Sets the machine-dependent flag | | 280 | Sets the machine-dependent flag |
281 | .Sy RB_MD3 | | 281 | .Sy RB_MD3 |
282 | in | | 282 | in |
283 | .Va boothowto . | | 283 | .Va boothowto . |
284 | In | | 284 | In |
285 | .Nx Ns /x86 , | | 285 | .Nx Ns /x86 , |
286 | this has no effect. | | 286 | this has no effect. |
287 | .It Fl 4 | | 287 | .It Fl 4 |
288 | Sets the machine-dependent flag | | 288 | Sets the machine-dependent flag |
289 | .Sy RB_MD4 | | 289 | .Sy RB_MD4 |
290 | in | | 290 | in |
291 | .Va boothowto . | | 291 | .Va boothowto . |
292 | In | | 292 | In |
293 | .Nx Ns /x86 , | | 293 | .Nx Ns /x86 , |
294 | this has no effect. | | 294 | this has no effect. |
295 | .It Fl a | | 295 | .It Fl a |
296 | Sets the | | 296 | Sets the |
297 | .Sy RB_ASKNAME | | 297 | .Sy RB_ASKNAME |
298 | flag in | | 298 | flag in |
299 | .Va boothowto . | | 299 | .Va boothowto . |
300 | This causes the kernel to prompt for the root file system device, | | 300 | This causes the kernel to prompt for the root file system device, |
301 | the system crash dump device, and the path to | | 301 | the system crash dump device, and the path to |
302 | .Xr init 8 . | | 302 | .Xr init 8 . |
303 | .It Fl b | | 303 | .It Fl b |
304 | Sets the | | 304 | Sets the |
305 | .Sy RB_HALT | | 305 | .Sy RB_HALT |
306 | flag in | | 306 | flag in |
307 | .Va boothowto . | | 307 | .Va boothowto . |
308 | This causes subsequent reboot attempts to halt instead of rebooting. | | 308 | This causes subsequent reboot attempts to halt instead of rebooting. |
309 | .It Fl c | | 309 | .It Fl c |
310 | Sets the | | 310 | Sets the |
311 | .Sy RB_USERCONF | | 311 | .Sy RB_USERCONF |
312 | flag in | | 312 | flag in |
313 | .Va boothowto . | | 313 | .Va boothowto . |
314 | This causes the kernel to enter the | | 314 | This causes the kernel to enter the |
315 | .Xr userconf 4 | | 315 | .Xr userconf 4 |
316 | device configuration manager as soon as possible during the boot. | | 316 | device configuration manager as soon as possible during the boot. |
317 | .Xr userconf 4 | | 317 | .Xr userconf 4 |
318 | allows devices to be enabled or disabled, and allows device locators | | 318 | allows devices to be enabled or disabled, and allows device locators |
319 | (such as hardware addresses or bus numbers) | | 319 | (such as hardware addresses or bus numbers) |
320 | to be modified before the kernel attempts to attach the devices. | | 320 | to be modified before the kernel attempts to attach the devices. |
321 | .It Fl d | | 321 | .It Fl d |
322 | Sets the | | 322 | Sets the |
323 | .Sy RB_KDB | | 323 | .Sy RB_KDB |
324 | flag in | | 324 | flag in |
325 | .Va boothowto . | | 325 | .Va boothowto . |
326 | Requests the kernel to enter debug mode, in which it | | 326 | Requests the kernel to enter debug mode, in which it |
327 | waits for a connection from a kernel debugger; see | | 327 | waits for a connection from a kernel debugger; see |
328 | .Xr ddb 4 . | | 328 | .Xr ddb 4 . |
329 | .It Fl m | | 329 | .It Fl m |
330 | Sets the | | 330 | Sets the |
331 | .Sy RB_MINIROOT | | 331 | .Sy RB_MINIROOT |
332 | flag in | | 332 | flag in |
333 | .Va boothowto . | | 333 | .Va boothowto . |
334 | Informs the kernel that a mini-root file system is present in memory. | | 334 | Informs the kernel that a mini-root file system is present in memory. |
335 | .It Fl q | | 335 | .It Fl q |
336 | Sets the | | 336 | Sets the |
337 | .Sy AB_QUIET | | 337 | .Sy AB_QUIET |
338 | flag in | | 338 | flag in |
339 | .Va boothowto . | | 339 | .Va boothowto . |
340 | Boot the system in quiet mode. | | 340 | Boot the system in quiet mode. |
341 | .It Fl s | | 341 | .It Fl s |
342 | Sets the | | 342 | Sets the |
343 | .Sy RB_SINGLE | | 343 | .Sy RB_SINGLE |
344 | flag in | | 344 | flag in |
345 | .Va boothowto . | | 345 | .Va boothowto . |
346 | Boot the system in single-user mode. | | 346 | Boot the system in single-user mode. |
347 | .It Fl v | | 347 | .It Fl v |
348 | Sets the | | 348 | Sets the |
349 | .Sy AB_VERBOSE | | 349 | .Sy AB_VERBOSE |
350 | flag in | | 350 | flag in |
351 | .Va boothowto . | | 351 | .Va boothowto . |
352 | Boot the system in verbose mode. | | 352 | Boot the system in verbose mode. |
353 | .It Fl x | | 353 | .It Fl x |
354 | Sets the | | 354 | Sets the |
355 | .Sy AB_DEBUG | | 355 | .Sy AB_DEBUG |
356 | flag in | | 356 | flag in |
357 | .Va boothowto . | | 357 | .Va boothowto . |
358 | Boot the system with debug messages enabled. | | 358 | Boot the system with debug messages enabled. |
359 | .It Fl z | | 359 | .It Fl z |
360 | Sets the | | 360 | Sets the |
361 | .Sy AB_SILENT | | 361 | .Sy AB_SILENT |
362 | flag in | | 362 | flag in |
363 | .Va boothowto . | | 363 | .Va boothowto . |
364 | Boot the system in silent mode. | | 364 | Boot the system in silent mode. |
365 | .El | | 365 | .El |
366 | .It Ic consdev Va dev | | 366 | .It Ic consdev Va dev Ns Oo Ns , Ns Va speed Oc |
367 | Immediately switch the console to the specified device | | 367 | Immediately switch the console to the specified device |
368 | .Va dev | | 368 | .Va dev |
369 | and reprint the banner. | | 369 | and reprint the banner. |
370 | .Va dev | | 370 | .Va dev |
371 | must be one of | | 371 | must be one of |
372 | .\" .Bl -item -width com[0123]kbd -offset indent -compact | | 372 | .\" .Bl -item -width com[0123]kbd -offset indent -compact |
373 | .Ar pc , com0 , com1 , com2 , | | 373 | .Ar pc , com0 , com1 , com2 , |
374 | .Ar com3 , com0kbd , com1kbd , com2kbd , | | 374 | .Ar com3 , com0kbd , com1kbd , com2kbd , |
375 | .Ar com3kbd , | | 375 | .Ar com3kbd , |
376 | or | | 376 | or |
377 | .Ar auto . | | 377 | .Ar auto . |
378 | See | | 378 | See |
379 | .Sx Console Selection Policy | | 379 | .Sx Console Selection Policy |
380 | in | | 380 | in |
381 | .Xr x86/boot_console 8 . | | 381 | .Xr x86/boot_console 8 . |
| | | 382 | .Pp |
| | | 383 | A |
| | | 384 | .Va speed |
| | | 385 | for the serial port is optional and defaults to 9600. |
| | | 386 | If a value of zero is specified, then the current baud rate (set by the |
| | | 387 | BIOS) will be used. |
| | | 388 | Setting the |
| | | 389 | .Va speed |
| | | 390 | with the |
| | | 391 | .Ar pc |
| | | 392 | device is not possible. |
382 | .It Ic dev Op Va device | | 393 | .It Ic dev Op Va device |
383 | Set the default drive and partition for subsequent file system | | 394 | Set the default drive and partition for subsequent file system |
384 | operations. | | 395 | operations. |
385 | Without an argument, print the current setting. | | 396 | Without an argument, print the current setting. |
386 | .Va device | | 397 | .Va device |
387 | is of the form specified in | | 398 | is of the form specified in |
388 | .Cm boot . | | 399 | .Cm boot . |
389 | .It Ic fs Va file | | 400 | .It Ic fs Va file |
390 | Load a file system image from the specified | | 401 | Load a file system image from the specified |
391 | .Ar file , | | 402 | .Ar file , |
392 | and request the kernel to use it as the root file system. | | 403 | and request the kernel to use it as the root file system. |
393 | The | | 404 | The |
394 | .Xr makefs 8 | | 405 | .Xr makefs 8 |
395 | utility may be used to create suitable file system images. | | 406 | utility may be used to create suitable file system images. |
396 | .It Ic help | | 407 | .It Ic help |
397 | Print an overview about commands and arguments. | | 408 | Print an overview about commands and arguments. |
398 | .It Ic load Va module Op Ar arguments | | 409 | .It Ic load Va module Op Ar arguments |
399 | Load the specified kernel | | 410 | Load the specified kernel |
400 | .Va module , | | 411 | .Va module , |
401 | and pass it the specified | | 412 | and pass it the specified |
402 | .Ar arguments . | | 413 | .Ar arguments . |
403 | If the module name is not an absolute path, | | 414 | If the module name is not an absolute path, |
404 | .Pa /stand/ Xo Ns | | 415 | .Pa /stand/ Xo Ns |
405 | .Aq Sy arch Ns | | 416 | .Aq Sy arch Ns |
406 | .Pa / Ns | | 417 | .Pa / Ns |
407 | .Aq Sy osversion Ns | | 418 | .Aq Sy osversion Ns |
408 | .Pa /modules/ Ns | | 419 | .Pa /modules/ Ns |
409 | .Aq Sy module Ns | | 420 | .Aq Sy module Ns |
410 | .Pa / Ns | | 421 | .Pa / Ns |
411 | .Aq Sy module Ns | | 422 | .Aq Sy module Ns |
412 | .Pa .kmod | | 423 | .Pa .kmod |
413 | .Xc | | 424 | .Xc |
414 | is used. | | 425 | is used. |
415 | Possible uses of the | | 426 | Possible uses of the |
416 | .Ic load | | 427 | .Ic load |
417 | command include loading a memory disk image before booting a kernel, | | 428 | command include loading a memory disk image before booting a kernel, |
418 | or loading a | | 429 | or loading a |
419 | .Tn Xen | | 430 | .Tn Xen |
420 | DOM0 kernel before booting the | | 431 | DOM0 kernel before booting the |
421 | .Tn Xen | | 432 | .Tn Xen |
422 | hypervisor. | | 433 | hypervisor. |
423 | See | | 434 | See |
424 | .Xr boot.cfg 5 | | 435 | .Xr boot.cfg 5 |
425 | for examples. | | 436 | for examples. |
426 | .Pp | | 437 | .Pp |
427 | In addition to the | | 438 | In addition to the |
428 | .Cm boot | | 439 | .Cm boot |
429 | options specified above, the | | 440 | options specified above, the |
430 | .Tn Xen | | 441 | .Tn Xen |
431 | DOM0 kernel accepts | | 442 | DOM0 kernel accepts |
432 | .Po Ar arguments | | 443 | .Po Ar arguments |
433 | being separated with spaces | | 444 | being separated with spaces |
434 | .Pc : | | 445 | .Pc : |
435 | .Bl -tag -width xxx | | 446 | .Bl -tag -width xxx |
436 | .It Ic bootdev Ns = Ns Ar dev Po or Ic root Ns = Ns Ar dev Pc | | 447 | .It Ic bootdev Ns = Ns Ar dev Po or Ic root Ns = Ns Ar dev Pc |
437 | Override the default boot device. | | 448 | Override the default boot device. |
438 | .Ar dev | | 449 | .Ar dev |
439 | is of the form | | 450 | is of the form |
440 | .Va NAME=partition_label | | 451 | .Va NAME=partition_label |
441 | for | | 452 | for |
442 | .Xr gpt 8 | | 453 | .Xr gpt 8 |
443 | partitionned disks. It can also be a unit name | | 454 | partitionned disks. It can also be a unit name |
444 | .Po Dq wd0 | | 455 | .Po Dq wd0 |
445 | .Pc , | | 456 | .Pc , |
446 | or an interface name | | 457 | or an interface name |
447 | .Po Dq bge0 , | | 458 | .Po Dq bge0 , |
448 | .Dq wm0 , | | 459 | .Dq wm0 , |
449 | \&... | | 460 | \&... |
450 | .Pc | | 461 | .Pc |
451 | for cases where the root file system has to be loaded | | 462 | for cases where the root file system has to be loaded |
452 | from network (see the | | 463 | from network (see the |
453 | .Sx BUGS | | 464 | .Sx BUGS |
454 | section in | | 465 | section in |
455 | .Xr x86/pxeboot 8 ) . | | 466 | .Xr x86/pxeboot 8 ) . |
456 | .It Ic console Ns = Ns Ar dev | | 467 | .It Ic console Ns = Ns Ar dev |
457 | Console used by DOM0 kernel during boot. | | 468 | Console used by DOM0 kernel during boot. |
458 | .Ar dev | | 469 | .Ar dev |
459 | accepts the same values as the ones given for the | | 470 | accepts the same values as the ones given for the |
460 | .Cm consdev | | 471 | .Cm consdev |
461 | command. | | 472 | command. |
462 | See | | 473 | See |
463 | .Sx Console Selection Policy | | 474 | .Sx Console Selection Policy |
464 | in | | 475 | in |
465 | .Xr x86/boot_console 8 . | | 476 | .Xr x86/boot_console 8 . |
466 | .It Xo Ic ip Ns = Ns | | 477 | .It Xo Ic ip Ns = Ns |
467 | .Ar my_ip Ns : Ns Ar serv_ip Ns : Ns Ar gw_ip Ns : Ns | | 478 | .Ar my_ip Ns : Ns Ar serv_ip Ns : Ns Ar gw_ip Ns : Ns |
468 | .Ar mask Ns : Ns Ar host Ns : Ns Ar iface | | 479 | .Ar mask Ns : Ns Ar host Ns : Ns Ar iface |
469 | .Xc | | 480 | .Xc |
470 | Specify various parameters for a network boot (IPs are in | | 481 | Specify various parameters for a network boot (IPs are in |
471 | dot notation), | | 482 | dot notation), |
472 | each one separated by a colon: | | 483 | each one separated by a colon: |
473 | .Bl -tag -width xxxxxxx | | 484 | .Bl -tag -width xxxxxxx |
474 | .It Va my_ip | | 485 | .It Va my_ip |
475 | address of the host | | 486 | address of the host |
476 | .It Va serv_ip | | 487 | .It Va serv_ip |
477 | address of the NFS server | | 488 | address of the NFS server |
478 | .It Va gw_ip | | 489 | .It Va gw_ip |
479 | address of the gateway | | 490 | address of the gateway |
480 | .It Va mask | | 491 | .It Va mask |
481 | network mask | | 492 | network mask |
482 | .It Va host | | 493 | .It Va host |
483 | address of the host | | 494 | address of the host |
484 | .It Va iface | | 495 | .It Va iface |
485 | interface | | 496 | interface |
486 | .Po e.g., Dq xennet0 | | 497 | .Po e.g., Dq xennet0 |
487 | or | | 498 | or |
488 | .Dq eth0 | | 499 | .Dq eth0 |
489 | .Pc | | 500 | .Pc |
490 | .El | | 501 | .El |
491 | .It Ic nfsroot Ns = Ns Ar address Ns : Ns Ar rootpath | | 502 | .It Ic nfsroot Ns = Ns Ar address Ns : Ns Ar rootpath |
492 | Boot the system with root on NFS. | | 503 | Boot the system with root on NFS. |
493 | .Ar address | | 504 | .Ar address |
494 | is the address of the NFS server, and | | 505 | is the address of the NFS server, and |
495 | .Ar rootpath | | 506 | .Ar rootpath |
496 | is the remote mount point for the root file system. | | 507 | is the remote mount point for the root file system. |
497 | .It Ic pciback.hide Ns = Ns Ar pcidevs | | 508 | .It Ic pciback.hide Ns = Ns Ar pcidevs |
498 | Pass a list of PCI IDs for use with the PCI backend driver, | | 509 | Pass a list of PCI IDs for use with the PCI backend driver, |
499 | .Xr pciback 4 . | | 510 | .Xr pciback 4 . |
500 | .Ar pcidevs | | 511 | .Ar pcidevs |
501 | is formed of multiple IDs (in bus:device.function notation), | | 512 | is formed of multiple IDs (in bus:device.function notation), |
502 | each ID being surrounded with brackets. | | 513 | each ID being surrounded with brackets. |
503 | PCI domain IDs are currently ignored. | | 514 | PCI domain IDs are currently ignored. |
504 | See | | 515 | See |
505 | .Xr pciback 4 . | | 516 | .Xr pciback 4 . |
506 | .El | | 517 | .El |
507 | .It Ic ls Op Pa path | | 518 | .It Ic ls Op Pa path |
508 | Print a directory listing of | | 519 | Print a directory listing of |
509 | .Pa path , | | 520 | .Pa path , |
510 | containing inode number, filename, and file type. | | 521 | containing inode number, filename, and file type. |
511 | .Pa path | | 522 | .Pa path |
512 | can contain a device specification. | | 523 | can contain a device specification. |
513 | .It Ic menu | | 524 | .It Ic menu |
514 | Display the boot menu and initiate a countdown, | | 525 | Display the boot menu and initiate a countdown, |
515 | similarly to what would have happened if interactive mode | | 526 | similarly to what would have happened if interactive mode |
516 | had not been entered. | | 527 | had not been entered. |
517 | .It Ic modules Bro Ar on | off | enabled | disabled Brc | | 528 | .It Ic modules Bro Ar on | off | enabled | disabled Brc |
518 | The values | | 529 | The values |
519 | .Ar enabled , on | | 530 | .Ar enabled , on |
520 | will enable module loading for | | 531 | will enable module loading for |
521 | .Cm boot | | 532 | .Cm boot |
522 | and | | 533 | and |
523 | .Cm multiboot , | | 534 | .Cm multiboot , |
524 | whereas | | 535 | whereas |
525 | .Ar disabled , off | | 536 | .Ar disabled , off |
526 | will turn off the feature. | | 537 | will turn off the feature. |
527 | .It Ic multiboot Va kernel Op Ar arguments | | 538 | .It Ic multiboot Va kernel Op Ar arguments |
528 | Boot the specified | | 539 | Boot the specified |
529 | .Va kernel , | | 540 | .Va kernel , |
530 | using the | | 541 | using the |
531 | .Dq multiboot | | 542 | .Dq multiboot |
532 | protocol instead of the native | | 543 | protocol instead of the native |
533 | .Nx | | 544 | .Nx |
534 | boot protocol. | | 545 | boot protocol. |
535 | The | | 546 | The |
536 | .Va kernel | | 547 | .Va kernel |
537 | is specified in the same way as with the | | 548 | is specified in the same way as with the |
538 | .Ic boot | | 549 | .Ic boot |
539 | command. | | 550 | command. |
540 | .Pp | | 551 | .Pp |
541 | The multiboot protocol may be used in the following cases: | | 552 | The multiboot protocol may be used in the following cases: |
542 | .Bl -tag -width indent | | 553 | .Bl -tag -width indent |
543 | .It Nx Ns / Ns Xen No kernels | | 554 | .It Nx Ns / Ns Xen No kernels |
544 | The | | 555 | The |
545 | .Tn Xen | | 556 | .Tn Xen |
546 | DOM0 kernel must be loaded as a module using the | | 557 | DOM0 kernel must be loaded as a module using the |
547 | .Ic load | | 558 | .Ic load |
548 | command, and the | | 559 | command, and the |
549 | .Tn Xen | | 560 | .Tn Xen |
550 | hypervisor must be booted using the | | 561 | hypervisor must be booted using the |
551 | .Ic multiboot | | 562 | .Ic multiboot |
552 | command. | | 563 | command. |
553 | Options for the DOM0 kernel (such as | | 564 | Options for the DOM0 kernel (such as |
554 | .Dq -s | | 565 | .Dq -s |
555 | for single user mode) must be passed as options to the | | 566 | for single user mode) must be passed as options to the |
556 | .Ic load | | 567 | .Ic load |
557 | command. | | 568 | command. |
558 | Options for the hypervisor (such as | | 569 | Options for the hypervisor (such as |
559 | .Dq dom0_mem=256M | | 570 | .Dq dom0_mem=256M |
560 | to reserve 256 MB of memory for DOM0) | | 571 | to reserve 256 MB of memory for DOM0) |
561 | must be passed as options to the | | 572 | must be passed as options to the |
562 | .Ic multiboot | | 573 | .Ic multiboot |
563 | command. | | 574 | command. |
564 | See | | 575 | See |
565 | .Xr boot.cfg 5 | | 576 | .Xr boot.cfg 5 |
566 | for examples on how to boot | | 577 | for examples on how to boot |
567 | .Nx Ns / Ns Xen. | | 578 | .Nx Ns / Ns Xen. |
568 | .It Nx No multiboot kernels | | 579 | .It Nx No multiboot kernels |
569 | A | | 580 | A |
570 | .Nx | | 581 | .Nx |
571 | kernel that was built with | | 582 | kernel that was built with |
572 | .Cd options MULTIBOOT | | 583 | .Cd options MULTIBOOT |
573 | (see | | 584 | (see |
574 | .Xr x86/multiboot 8 ) | | 585 | .Xr x86/multiboot 8 ) |
575 | may be booted with either the | | 586 | may be booted with either the |
576 | .Ic boot | | 587 | .Ic boot |
577 | or | | 588 | or |
578 | .Ic multiboot | | 589 | .Ic multiboot |
579 | command, passing the same | | 590 | command, passing the same |
580 | .Ar arguments | | 591 | .Ar arguments |
581 | in either case. | | 592 | in either case. |
582 | .It Non- Ns Nx No kernels | | 593 | .It Non- Ns Nx No kernels |
583 | A kernel for a | | 594 | A kernel for a |
584 | .No non- Ns Nx | | 595 | .No non- Ns Nx |
585 | operating system that expects to be booted using the | | 596 | operating system that expects to be booted using the |
586 | multiboot protocol (such as by the GNU | | 597 | multiboot protocol (such as by the GNU |
587 | .Dq GRUB | | 598 | .Dq GRUB |
588 | boot loader) | | 599 | boot loader) |
589 | may be booted using the | | 600 | may be booted using the |
590 | .Ic multiboot | | 601 | .Ic multiboot |
591 | command. | | 602 | command. |
592 | See the foreign operating system's documentation for the available | | 603 | See the foreign operating system's documentation for the available |
593 | .Ar arguments . | | 604 | .Ar arguments . |
594 | .El | | 605 | .El |
595 | .It Ic quit | | 606 | .It Ic quit |
596 | Reboot the system. | | 607 | Reboot the system. |
597 | .It Ic rndseed Ar file | | 608 | .It Ic rndseed Ar file |
598 | Load the specified | | 609 | Load the specified |
599 | .Ar file | | 610 | .Ar file |
600 | and request the kernel to use it as a seed for the | | 611 | and request the kernel to use it as a seed for the |
601 | .Xr rnd 4 | | 612 | .Xr rnd 4 |
602 | random number generator. | | 613 | random number generator. |
603 | The | | 614 | The |
604 | .Ar file | | 615 | .Ar file |
605 | should be in the private format used by | | 616 | should be in the private format used by |
606 | .Xr rndctl 8 , | | 617 | .Xr rndctl 8 , |
607 | and should have been saved by | | 618 | and should have been saved by |
608 | .Ql "rndctl -S" | | 619 | .Ql "rndctl -S" |
609 | shortly before the previous shutdown. | | 620 | shortly before the previous shutdown. |
610 | See the | | 621 | See the |
611 | .Va random_seed | | 622 | .Va random_seed |
612 | and | | 623 | and |
613 | .Va random_file | | 624 | .Va random_file |
614 | variables in | | 625 | variables in |
615 | .Xr rc.conf 5 , | | 626 | .Xr rc.conf 5 , |
616 | and the | | 627 | and the |
617 | .Pa /etc/rc.d/random_seed | | 628 | .Pa /etc/rc.d/random_seed |
618 | script, for a way to manage the seed file. | | 629 | script, for a way to manage the seed file. |
619 | Using the same seed file on more then one host, | | 630 | Using the same seed file on more then one host, |
620 | or for more than one boot on the same host, | | 631 | or for more than one boot on the same host, |
621 | will reduce the quality of random numbers | | 632 | will reduce the quality of random numbers |
622 | and may impact system security. | | 633 | and may impact system security. |
623 | .It Ic userconf Va command | | 634 | .It Ic userconf Va command |
624 | Pass command | | 635 | Pass command |
625 | .Va command | | 636 | .Va command |
626 | to | | 637 | to |
627 | .Xr userconf 4 | | 638 | .Xr userconf 4 |
628 | at boot time. | | 639 | at boot time. |
629 | These commands are processed before the interactive | | 640 | These commands are processed before the interactive |
630 | .Xr userconf 4 | | 641 | .Xr userconf 4 |
631 | shell is executed, if requested. | | 642 | shell is executed, if requested. |
632 | .It Ic splash Ar file | | 643 | .It Ic splash Ar file |
633 | Load a graphical image from the specified | | 644 | Load a graphical image from the specified |
634 | .Ar file | | 645 | .Ar file |
635 | and request the kernel to use it as a splash screen. | | 646 | and request the kernel to use it as a splash screen. |
636 | The | | 647 | The |
637 | .Ar file | | 648 | .Ar file |
638 | should contain an image in one of these formats: | | 649 | should contain an image in one of these formats: |
639 | JPEG (baseline only, not progressive), | | 650 | JPEG (baseline only, not progressive), |
640 | PNG (8-bit only), | | 651 | PNG (8-bit only), |
641 | TGA, | | 652 | TGA, |
642 | BMP (non-1bpp, non-RLE), | | 653 | BMP (non-1bpp, non-RLE), |
643 | GIF, | | 654 | GIF, |
644 | PSD (composited view only), | | 655 | PSD (composited view only), |
645 | or | | 656 | or |
646 | PIC. | | 657 | PIC. |
647 | .It Ic vesa Bro Va modenum | Ar on | off | enabled | disabled | list Brc | | 658 | .It Ic vesa Bro Va modenum | Ar on | off | enabled | disabled | list Brc |
648 | Initialise the video card to the specified resolution and bit depth. | | 659 | Initialise the video card to the specified resolution and bit depth. |
649 | The | | 660 | The |
650 | .Va modenum | | 661 | .Va modenum |
651 | should be in the form of | | 662 | should be in the form of |
652 | .Ar 0x100 , 800x600 , 800x600x32 . | | 663 | .Ar 0x100 , 800x600 , 800x600x32 . |
653 | The values | | 664 | The values |
654 | .Ar enabled , on | | 665 | .Ar enabled , on |
655 | put the display into the default mode, and | | 666 | put the display into the default mode, and |
656 | .Ar disabled , off | | 667 | .Ar disabled , off |
657 | returns the display into standard vga mode. | | 668 | returns the display into standard vga mode. |
658 | The value | | 669 | The value |
659 | .Ar list | | 670 | .Ar list |
660 | lists all supported modes. | | 671 | lists all supported modes. |
661 | .El | | 672 | .El |
662 | .Pp | | 673 | .Pp |
663 | In an emergency, the bootstrap methods described in the | | 674 | In an emergency, the bootstrap methods described in the |
664 | .Nx | | 675 | .Nx |
665 | installation notes for the x86 architectures | | 676 | installation notes for the x86 architectures |
666 | can be used to boot from floppy or other media, | | 677 | can be used to boot from floppy or other media, |
667 | or over the network. | | 678 | or over the network. |
668 | .Ss Locating the root file system | | 679 | .Ss Locating the root file system |
669 | The kernel uses information from the bootloader to locate the | | 680 | The kernel uses information from the bootloader to locate the |
670 | file system to mount as root. | | 681 | file system to mount as root. |
671 | There are three methods: | | 682 | There are three methods: |
672 | .Bl -tag -width 04n -offset 04n | | 683 | .Bl -tag -width 04n -offset 04n |
673 | .It Ic BTINFO_ROOTDEVICE Va from | | 684 | .It Ic BTINFO_ROOTDEVICE Va from |
674 | .Xr boot.cfg 5 | | 685 | .Xr boot.cfg 5 |
675 | or multiboot. | | 686 | or multiboot. |
676 | The bootloader passes the root device name as driver, unit, and | | 687 | The bootloader passes the root device name as driver, unit, and |
677 | partition (like sd0a). | | 688 | partition (like sd0a). |
678 | This will be automatically substituted by a | | 689 | This will be automatically substituted by a |
679 | .Xr dk 4 | | 690 | .Xr dk 4 |
680 | wedge if one is discovered. | | 691 | wedge if one is discovered. |
681 | .Pp | | 692 | .Pp |
682 | The bootloader passes a wedge name as "wedge:" followed by the name. | | 693 | The bootloader passes a wedge name as "wedge:" followed by the name. |
683 | The kernel will search for a | | 694 | The kernel will search for a |
684 | .Xr dk 4 | | 695 | .Xr dk 4 |
685 | device with that name. | | 696 | device with that name. |
686 | .It Ic BTINFO_BOOTWEDGE Va determined by bootblock | | 697 | .It Ic BTINFO_BOOTWEDGE Va determined by bootblock |
687 | The bootloader passes start offset and length of a hard disk partition | | 698 | The bootloader passes start offset and length of a hard disk partition |
688 | and a offset, size and hash of a "boot area". | | 699 | and a offset, size and hash of a "boot area". |
689 | Then kernel searches | | 700 | Then kernel searches |
690 | all disks and wedges for a block sequence at that offset with a | | 701 | all disks and wedges for a block sequence at that offset with a |
691 | matching hash. | | 702 | matching hash. |
692 | If one is found, the kernel will look for a wedge | | 703 | If one is found, the kernel will look for a wedge |
693 | on that device at the same offset. | | 704 | on that device at the same offset. |
694 | .Pp | | 705 | .Pp |
695 | An additional partition number is provided if the bootloader also | | 706 | An additional partition number is provided if the bootloader also |
696 | passed a BTINFO_BOOTDISK record. | | 707 | passed a BTINFO_BOOTDISK record. |
697 | This (or partition 'a') will be used | | 708 | This (or partition 'a') will be used |
698 | by the kernel as a fallback if there is no matching wedge. | | 709 | by the kernel as a fallback if there is no matching wedge. |
699 | .It Ic BTINFO_BOOTDISK Va determined by bootblock | | 710 | .It Ic BTINFO_BOOTDISK Va determined by bootblock |
700 | This uses the device number passed by the BIOS that | | 711 | This uses the device number passed by the BIOS that |
701 | distinguishes between floppy, hard drive and CD-ROM boot. | | 712 | distinguishes between floppy, hard drive and CD-ROM boot. |
702 | .Bl -tag -width xxx | | 713 | .Bl -tag -width xxx |
703 | .It Ic Floppy | | 714 | .It Ic Floppy |
704 | The kernel searches for the | | 715 | The kernel searches for the |
705 | .Xr fd 4 | | 716 | .Xr fd 4 |
706 | device with the correct unit, the partition number is used | | 717 | device with the correct unit, the partition number is used |
707 | to select a specific disk format. | | 718 | to select a specific disk format. |
708 | See | | 719 | See |
709 | .Xr fd 4 | | 720 | .Xr fd 4 |
710 | for details. | | 721 | for details. |
711 | .It Ic Hard drive | | 722 | .It Ic Hard drive |
712 | The bootloader passed a partition number and disklabel | | 723 | The bootloader passed a partition number and disklabel |
713 | data (offset, type, checksum, packname). | | 724 | data (offset, type, checksum, packname). |
714 | The kernel searches | | 725 | The kernel searches |
715 | all disks for a matching disklabel. | | 726 | all disks for a matching disklabel. |
716 | If one is found, the | | 727 | If one is found, the |
717 | kernel will use that device and partition number. | | 728 | kernel will use that device and partition number. |
718 | .It Ic CDROM | | 729 | .It Ic CDROM |
719 | The BIOS does not distinguish between multiple CD devices. | | 730 | The BIOS does not distinguish between multiple CD devices. |
720 | The kernel searches for the first | | 731 | The kernel searches for the first |
721 | .Xr cd 4 | | 732 | .Xr cd 4 |
722 | device. | | 733 | device. |
723 | So you can only boot from unit 0. | | 734 | So you can only boot from unit 0. |
724 | .El | | 735 | .El |
725 | .El | | 736 | .El |
726 | .Sh FILES | | 737 | .Sh FILES |
727 | .Bl -tag -width /usr/mdec/bootxx_fstype -compact | | 738 | .Bl -tag -width /usr/mdec/bootxx_fstype -compact |
728 | .It Pa /boot | | 739 | .It Pa /boot |
729 | boot program code loaded by the primary bootstrap | | 740 | boot program code loaded by the primary bootstrap |
730 | .It Pa /boot.cfg | | 741 | .It Pa /boot.cfg |
731 | optional configuration file | | 742 | optional configuration file |
732 | .It Pa /netbsd | | 743 | .It Pa /netbsd |
733 | system code | | 744 | system code |
734 | .It Pa /netbsd.gz | | 745 | .It Pa /netbsd.gz |
735 | gzip-compressed system code | | 746 | gzip-compressed system code |
736 | .It Pa /usr/mdec/boot | | 747 | .It Pa /usr/mdec/boot |
737 | master copy of the boot program (copy to /boot) | | 748 | master copy of the boot program (copy to /boot) |
738 | .It Pa /usr/mdec/bootxx_fstype | | 749 | .It Pa /usr/mdec/bootxx_fstype |
739 | primary bootstrap for file system type fstype, copied to the start of | | 750 | primary bootstrap for file system type fstype, copied to the start of |
740 | the | | 751 | the |
741 | .Nx | | 752 | .Nx |
742 | partition by | | 753 | partition by |
743 | .Xr installboot 8 . | | 754 | .Xr installboot 8 . |
744 | .It Pa /usr/mdec/bootia32.efi | | 755 | .It Pa /usr/mdec/bootia32.efi |
745 | .It Pa /usr/mdec/bootx64.efi | | 756 | .It Pa /usr/mdec/bootx64.efi |
746 | .Tn UEFI | | 757 | .Tn UEFI |
747 | bootstraps for | | 758 | bootstraps for |
748 | .Nx Ns /i386 | | 759 | .Nx Ns /i386 |
749 | and | | 760 | and |
750 | .Nx Ns /amd64 , | | 761 | .Nx Ns /amd64 , |
751 | which should be copied to the | | 762 | which should be copied to the |
752 | .Pa /efi/boot | | 763 | .Pa /efi/boot |
753 | directory in a | | 764 | directory in a |
754 | .Tn FAT | | 765 | .Tn FAT |
755 | formatted partition of type | | 766 | formatted partition of type |
756 | .Tn EFI | | 767 | .Tn EFI |
757 | (Either | | 768 | (Either |
758 | .Xr mbr 8 | | 769 | .Xr mbr 8 |
759 | and | | 770 | and |
760 | .Xr gpt 8 , | | 771 | .Xr gpt 8 , |
761 | see the | | 772 | see the |
762 | .Sx BUGS | | 773 | .Sx BUGS |
763 | section). | | 774 | section). |
764 | .Nx | | 775 | .Nx |
765 | .Tn UEFI | | 776 | .Tn UEFI |
766 | bootstrap reads its configuration from the | | 777 | bootstrap reads its configuration from the |
767 | .Pa /efi/netBSD/boot.cfg | | 778 | .Pa /efi/netBSD/boot.cfg |
768 | file in the | | 779 | file in the |
769 | .Tn EFI | | 780 | .Tn EFI |
770 | partition. | | 781 | partition. |
771 | .El | | 782 | .El |
772 | .Sh SEE ALSO | | 783 | .Sh SEE ALSO |
773 | .Xr ddb 4 , | | 784 | .Xr ddb 4 , |
774 | .Xr fd 4 , | | 785 | .Xr fd 4 , |
775 | .Xr pciback 4 , | | 786 | .Xr pciback 4 , |
776 | .Xr userconf 4 , | | 787 | .Xr userconf 4 , |
777 | .Xr boot.cfg 5 , | | 788 | .Xr boot.cfg 5 , |
778 | .Xr halt 8 , | | 789 | .Xr halt 8 , |
779 | .Xr installboot 8 , | | 790 | .Xr installboot 8 , |
780 | .Xr reboot 8 , | | 791 | .Xr reboot 8 , |
781 | .Xr rescue 8 , | | 792 | .Xr rescue 8 , |
782 | .Xr shutdown 8 , | | 793 | .Xr shutdown 8 , |
783 | .Xr x86/boot_console 8 , | | 794 | .Xr x86/boot_console 8 , |
784 | .Xr x86/dosboot 8 , | | 795 | .Xr x86/dosboot 8 , |
785 | .Xr x86/mbr 8 , | | 796 | .Xr x86/mbr 8 , |
786 | .Xr x86/multiboot 8 , | | 797 | .Xr x86/multiboot 8 , |
787 | .Xr x86/pxeboot 8 , | | 798 | .Xr x86/pxeboot 8 , |
788 | .Xr boothowto 9 | | 799 | .Xr boothowto 9 |
789 | .Sh BUGS | | 800 | .Sh BUGS |
790 | The kernel file name must be specified before, not after, the boot options. | | 801 | The kernel file name must be specified before, not after, the boot options. |
791 | Any | | 802 | Any |
792 | .Ar filename | | 803 | .Ar filename |
793 | specified after the boot options, e.g.: | | 804 | specified after the boot options, e.g.: |
794 | .Pp | | 805 | .Pp |
795 | .Bd -unfilled -offset indent -compact | | 806 | .Bd -unfilled -offset indent -compact |
796 | .Cm boot -d netbsd.test | | 807 | .Cm boot -d netbsd.test |
797 | .Ed | | 808 | .Ed |
798 | .Pp | | 809 | .Pp |
799 | is ignored, and the default kernel is booted. | | 810 | is ignored, and the default kernel is booted. |
800 | .Pp | | 811 | .Pp |
801 | Hard disks are always accessed by | | 812 | Hard disks are always accessed by |
802 | .Tn BIOS | | 813 | .Tn BIOS |
803 | functions. | | 814 | functions. |
804 | Unit numbers are | | 815 | Unit numbers are |
805 | .Tn BIOS | | 816 | .Tn BIOS |
806 | device numbers which might differ from numbering in the | | 817 | device numbers which might differ from numbering in the |
807 | .Nx | | 818 | .Nx |
808 | kernel or physical parameters | | 819 | kernel or physical parameters |
809 | .Po | | 820 | .Po |
810 | e.g., | | 821 | e.g., |
811 | .Tn SCSI | | 822 | .Tn SCSI |
812 | slave numbers | | 823 | slave numbers |
813 | .Pc . | | 824 | .Pc . |
814 | There isn't any distinction between | | 825 | There isn't any distinction between |
815 | .Dq sd | | 826 | .Dq sd |
816 | and | | 827 | and |
817 | .Dq wd | | 828 | .Dq wd |
818 | devices at the bootloader level. | | 829 | devices at the bootloader level. |
819 | This is less a bug of the bootloader code than | | 830 | This is less a bug of the bootloader code than |
820 | a shortcoming of the PC architecture. | | 831 | a shortcoming of the PC architecture. |
821 | The default disk device's name printed in the starting message | | 832 | The default disk device's name printed in the starting message |
822 | is derived from the | | 833 | is derived from the |
823 | .Dq type | | 834 | .Dq type |
824 | field of the | | 835 | field of the |
825 | .Nx | | 836 | .Nx |
826 | disklabel (if it is a hard disk). | | 837 | disklabel (if it is a hard disk). |
827 | .Pp | | 838 | .Pp |
828 | .Tn UEFI | | 839 | .Tn UEFI |
829 | implementation are supposed to support either | | 840 | implementation are supposed to support either |
830 | .Xr mbr 8 | | 841 | .Xr mbr 8 |
831 | or | | 842 | or |
832 | .Xr gpt 8 | | 843 | .Xr gpt 8 |
833 | partitionning, but some do not handle the later. | | 844 | partitionning, but some do not handle the later. |
834 | .Tn UEFI | | 845 | .Tn UEFI |
835 | Booting | | 846 | Booting |
836 | from a | | 847 | from a |
837 | .Xr gpt 8 | | 848 | .Xr gpt 8 |
838 | partitioned disk is still possible in this case, by adding | | 849 | partitioned disk is still possible in this case, by adding |
839 | an overlapping | | 850 | an overlapping |
840 | .Tn EFI | | 851 | .Tn EFI |
841 | partition in the protective | | 852 | partition in the protective |
842 | .Xr mbr 8 | | 853 | .Xr mbr 8 |
843 | block. | | 854 | block. |
844 | This can be achieved using the following commands | | 855 | This can be achieved using the following commands |
845 | (you must adapt the hard disk and | | 856 | (you must adapt the hard disk and |
846 | .Tn EFI | | 857 | .Tn EFI |
847 | partition start end size to fit your setup): | | 858 | partition start end size to fit your setup): |
848 | .Dl Ic dd if=/dev/rwd0d bs=512 count=1 of=mbr | | 859 | .Dl Ic dd if=/dev/rwd0d bs=512 count=1 of=mbr |
849 | .Dl Ic fdisk -FIfaui1s 4/34/32768 -c /usr/mdec/mbr mbr | | 860 | .Dl Ic fdisk -FIfaui1s 4/34/32768 -c /usr/mdec/mbr mbr |
850 | .Dl Ic dd if=mbr bs=512 count=1 of=/dev/rwd0d conv=notrunc | | 861 | .Dl Ic dd if=mbr bs=512 count=1 of=/dev/rwd0d conv=notrunc |
851 | The resulting | | 862 | The resulting |
852 | .Xr mbr 8 | | 863 | .Xr mbr 8 |
853 | partition table will look like this: | | 864 | partition table will look like this: |
854 | .Bd -unfilled -offset indent | | 865 | .Bd -unfilled -offset indent |
855 | 0: GPT Protective MBR (sysid 238) | | 866 | 0: GPT Protective MBR (sysid 238) |
856 | start 1, size 2097151 (1024 MB, Cyls 0-130/138/8) | | 867 | start 1, size 2097151 (1024 MB, Cyls 0-130/138/8) |
857 | PBR is not bootable: Bad magic number (0x0000) | | 868 | PBR is not bootable: Bad magic number (0x0000) |
858 | 1: Primary DOS with 16 bit FAT <32M (sysid 4) | | 869 | 1: Primary DOS with 16 bit FAT <32M (sysid 4) |
859 | start 34, size 32768 (16 MB, Cyls 0/0/35-2/10/42), Active | | 870 | start 34, size 32768 (16 MB, Cyls 0/0/35-2/10/42), Active |
860 | 2: <UNUSED> | | 871 | 2: <UNUSED> |
861 | 3: <UNUSED> | | 872 | 3: <UNUSED> |
862 | .Ed | | 873 | .Ed |