| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: altboot.8,v 1.6 2012/01/22 15:37:23 phx Exp $ | | 1 | .\" $NetBSD: altboot.8,v 1.7 2012/01/22 16:41:42 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2011 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2011 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Tohru Nishimura. | | 7 | .\" by Tohru Nishimura. |
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 |
| @@ -85,67 +85,72 @@ is instructed to copy the program to RAM | | | @@ -85,67 +85,72 @@ is instructed to copy the program to RAM |
85 | .Pp | | 85 | .Pp |
86 | Here 0xfffe'0000 is the flash address where | | 86 | Here 0xfffe'0000 is the flash address where |
87 | .Nm | | 87 | .Nm |
88 | is stored while 0x0100'0000 is the RAM address to copy to. | | 88 | is stored while 0x0100'0000 is the RAM address to copy to. |
89 | .Pp | | 89 | .Pp |
90 | The invocation syntax is: | | 90 | The invocation syntax is: |
91 | .Pp | | 91 | .Pp |
92 | .Dl => go 1000000 Ar ide:N Ar opt1 Ar opt2 ... Ar bootname | | 92 | .Dl => go 1000000 Ar ide:N Ar opt1 Ar opt2 ... Ar bootname |
93 | .Bl -tag -width xx | | 93 | .Bl -tag -width xx |
94 | .It Va ide:N | | 94 | .It Va ide:N |
95 | where | | 95 | where |
96 | .Ar N | | 96 | .Ar N |
97 | is a string of digits, which defines the number of connected drives on each | | 97 | is a string of digits, which defines the number of connected drives on each |
98 | PATA channel. This option is useful to avoid the delays, when | | 98 | PATA channel. |
| | | 99 | This option is useful to avoid the delays, when |
99 | .Nm | | 100 | .Nm |
100 | is trying to detect a non-existing drive. Examples: | | 101 | is trying to detect a non-existing drive. |
| | | 102 | Examples: |
101 | .Bl -tag -width xx | | 103 | .Bl -tag -width xx |
102 | .It ide: Ns Ar 10 | | 104 | .It ide: Ns Ar 10 |
103 | A single master drive on the first channel. Nothing on the second channel. | | 105 | A single master drive on the first channel. |
| | | 106 | Nothing on the second channel. |
104 | .It ide: Ns Ar 22 | | 107 | .It ide: Ns Ar 22 |
105 | A master and slave drive on both channels of the first controller. | | 108 | A master and slave drive on both channels of the first controller. |
106 | .It ide: Ns Ar 1111 | | 109 | .It ide: Ns Ar 1111 |
107 | A master drive on each channel. The first two digits belong to the first | | 110 | A master drive on each channel. |
| | | 111 | The first two digits belong to the first |
108 | controller, the last two to the second controller. | | 112 | controller, the last two to the second controller. |
109 | .El | | 113 | .El |
110 | .Pp | | 114 | .Pp |
111 | Unspecified digits will be read as | | 115 | Unspecified digits will be read as |
112 | .Ar 0 Ns . | | 116 | .Ar 0 . |
113 | The | | 117 | The |
114 | .Ar ide | | 118 | .Ar ide |
115 | option has only a meaning for PATA disks. Omitting it makes it default to | | 119 | option has only a meaning for PATA disks. |
116 | .Ar ide:10 Ns . | | 120 | Omitting it makes it default to |
| | | 121 | .Ar ide:10 . |
117 | .Pp | | 122 | .Pp |
118 | .It Va optN | | 123 | .It Va optN |
119 | multi, auto, ask, single, ddb, userconf, norm, quiet, verb, | | 124 | multi, auto, ask, single, ddb, userconf, norm, quiet, verb, |
120 | silent, debug | | 125 | silent, debug |
121 | .Pp | | 126 | .Pp |
122 | Omitting optN makes | | 127 | Omitting optN makes |
123 | .Nm | | 128 | .Nm |
124 | default to multi-user mode boot. | | 129 | default to multi-user mode boot. |
125 | .Pp | | 130 | .Pp |
126 | N.B., the maximum number of allowed go command arguments varies | | 131 | N.B., the maximum number of allowed go command arguments varies |
127 | and depends on the | | 132 | and depends on the |
128 | .Tn U-Boot/PPCBoot | | 133 | .Tn U-Boot/PPCBoot |
129 | buildtime configuration. | | 134 | buildtime configuration. |
130 | .It Va bootname | | 135 | .It Va bootname |
131 | One of the following: | | 136 | One of the following: |
132 | .Pp | | 137 | .Pp |
133 | .Dl nfs: Ns Ar filename | | 138 | .Dl nfs: Ns Ar filename |
134 | .Dl nfs: | | 139 | .Dl nfs: |
135 | .Dl tftp: Ns Ar filename | | 140 | .Dl tftp: Ns Ar filename |
136 | .Dl tftp: | | 141 | .Dl tftp: |
137 | .Dl wd Ns Ar Np Ns : Ns Ar filename | | 142 | .Dl wd Ns Ar Np : Ns Ar filename |
138 | .Dl wd Ns Ar Np Ns : | | 143 | .Dl wd Ns Ar Np : |
139 | .Dl mem: Ns Ar address | | 144 | .Dl mem: Ns Ar address |
140 | .Dl net: | | 145 | .Dl net: |
141 | .Pp | | 146 | .Pp |
142 | The last one is a synonym for | | 147 | The last one is a synonym for |
143 | .Dq nfs . | | 148 | .Dq nfs . |
144 | .It nfs: Ns Va filename | | 149 | .It nfs: Ns Va filename |
145 | issue a | | 150 | issue a |
146 | .Tn DHCP | | 151 | .Tn DHCP |
147 | request to determine the | | 152 | request to determine the |
148 | .Tn IP | | 153 | .Tn IP |
149 | address and download | | 154 | address and download |
150 | .Ar filename | | 155 | .Ar filename |
151 | from the | | 156 | from the |
| @@ -223,48 +228,51 @@ Note that a backslashed | | | @@ -223,48 +228,51 @@ Note that a backslashed |
223 | .Sq \&; | | 228 | .Sq \&; |
224 | is necessary to enter the script correctly. | | 229 | is necessary to enter the script correctly. |
225 | .Bd -literal -offset indent | | 230 | .Bd -literal -offset indent |
226 | => setenv bootcmd cp.b fffe0000 1000000 20000\e; go 1000000 wd0: | | 231 | => setenv bootcmd cp.b fffe0000 1000000 20000\e; go 1000000 wd0: |
227 | => setenv bootdelay 5 | | 232 | => setenv bootdelay 5 |
228 | => saveenv | | 233 | => saveenv |
229 | .Ed | | 234 | .Ed |
230 | .Pp | | 235 | .Pp |
231 | When | | 236 | When |
232 | .Tn U-Boot/PPCBoot | | 237 | .Tn U-Boot/PPCBoot |
233 | is lacking important commands like | | 238 | is lacking important commands like |
234 | .Tn cp | | 239 | .Tn cp |
235 | or | | 240 | or |
236 | .Tn go Ns , | | 241 | .Tn go , |
237 | or is unable to save the enviroment, then there is still the option to | | 242 | or is unable to save the enviroment, then there is still the option to |
238 | replace the | | 243 | replace the |
239 | .Tn Linux | | 244 | .Tn Linux |
240 | kernel module by | | 245 | kernel module by |
241 | .Pa altboot.img | | 246 | .Pa altboot.img |
242 | and save it to the same address in flash ROM. In this case you have only | | 247 | and save it to the same address in flash ROM. |
243 | two options left to pass arguments: | | 248 | In this case you have only two options left to pass arguments: |
244 | .Pp | | 249 | .Pp |
245 | .Bl -bullet -compact | | 250 | .Bl -bullet -compact |
246 | .It | | 251 | .It |
247 | Enter the interactive command line mode, after | | 252 | Enter the interactive command line mode, after |
248 | .Nm | | 253 | .Nm |
249 | has started. This requires a serial console. | | 254 | has started. |
| | | 255 | This requires a serial console. |
250 | .It | | 256 | .It |
251 | Write a fixed command line into flash, replacing the | | 257 | Write a fixed command line into flash, replacing the |
252 | .Tn Linux | | 258 | .Tn Linux |
253 | initrd image. The command line is a normal | | 259 | initrd image. |
| | | 260 | The command line is a normal |
254 | .Tn ASCII | | 261 | .Tn ASCII |
255 | file, started by the identifier | | 262 | file, started by the identifier |
256 | .Em altboot: | | 263 | .Em altboot: |
257 | and terminated by any control character between 0 and 31. Example: | | 264 | and terminated by any control character between 0 and 31. |
| | | 265 | Example: |
258 | .Dl altboot:silent ide:1111 wd0:netbsd | | 266 | .Dl altboot:silent ide:1111 wd0:netbsd |
259 | .El | | 267 | .El |
260 | .Sh SEE ALSO | | 268 | .Sh SEE ALSO |
261 | .Xr dhcpd 8 , | | 269 | .Xr dhcpd 8 , |
262 | .Xr diskless 8 , | | 270 | .Xr diskless 8 , |
263 | .Xr nfsd 8 , | | 271 | .Xr nfsd 8 , |
264 | .Xr tftpd 8 | | 272 | .Xr tftpd 8 |
265 | .Sh HISTORY | | 273 | .Sh HISTORY |
266 | The | | 274 | The |
267 | .Nx Ns Tn /sandpoint | | 275 | .Nx Ns Tn /sandpoint |
268 | .Nm | | 276 | .Nm |
269 | first appeared in | | 277 | first appeared in |
270 | .Nx 6.0 . | | 278 | .Nx 6.0 . |