1 .\" $NetBSD: install,v 1.54 2008/04/30 13:10:49 martin Exp $
3 .\" Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 .\" POSSIBILITY OF SUCH DAMAGE.
30 is a relatively complex process, but if you have
31 this document in hand it shouldn't be too much trouble.
33 There are several ways to install
36 The easiest way is to use the
38 image copied to your local disk's swap partition or a scratch drive.
39 If your Sparc is hooked up in a network, you may configure another
41 machine as a netboot server for your Sparc.
42 Alternatively, there is a pair
43 of floppy images that will boot your system and run the installer.
45 For more information on the commands and variables available in
46 the OpenBoot PROM (present in all sun4c and sun4m machines), go to
47 .Lk http://docs.sun.com
49 .Dq openboot reference
52 .Ss2 Installing NetBSD by placing a bootable file system on a partitioned hard drive
54 .Pa installation/miniroot/miniroot.fs.gz
55 is a compressed, self-contained
57 file system holding all utilities necessary to install
59 onto a disk attached to your system.
60 It is distributed as a compressed plain
61 file you will transfer to a raw disk partition.
62 You will then boot this installer using the appropriate PROM command.
63 The simplest case is where you place the
65 file system on the swap partition of your disk.
66 Alternatively, you can place
67 it on any other unused partition on any disk (such as a Zip disk).
68 Be forewarned that you will not be able to install
70 onto the partition that contains the
72 as this partition is needed during the install process.
74 Loading the file system onto a raw partition is straightforward.
78 Next, reboot in single-user mode (i.e.
80 to ensure that your system will not be swapping.
83 on your partition of choice.
86 or SunOS the commands are:
89 .No # Ic "gunzip miniroot.fs.gz"
90 .No # Ic "dd if=miniroot.fs of=/dev/rsd0b bs=4k"
95 is assumed to be your swap partition.
96 If you decide to place
98 on a non-swap partition, it will overwrite all of the contents of that
99 partition, but you will not need to reboot into single-user mode to write it.
101 After transferring the file system to disk, bring the system down by:
107 Then boot the installer by typing the appropriate
108 command at the PROM prompt (this example is for the swap partition):
110 .(tag OpenBoot\ PROM\ 2 -offset indent -compact
113 .No \*[Gt] Ic "b sd(,,1)netbsd -s"
117 .No ok Ic "boot sd(,,1)netbsd -s"
121 .No ok Ic "boot disk:b netbsd -s"
125 The monitor boot command will load the
127 kernel contained in the
129 After the initial probe messages you'll be
130 asked to start the install or upgrade procedure.
131 Proceed to the section
132 .Sx Running the installation scripts.
135 .Ss2 Installing NetBSD by using a bootable CD-ROM
137 If you wish to burn a CD-R containing a bootable NetBSD installation,
138 then you can either burn the prepared disk image in
139 .Pa installation/cdrom/sparccd-\*V.iso
141 If you wish to create your own, you should follow the directions on the
143 Bootable CD-ROM HOW-TO at:
144 .Lk http://www.NetBSD.org/docs/bootcd.html#sparcimage
146 Once you have downloaded
148 or created your own disk image, then you need to burn it to a CD-R.
150 The CD-ROM attached to your Sparc must support 512 byte sectors to be
152 All Sun brand CD-ROMs will work, as well as many other manufacturers.
153 See the Sun CD-ROM FAQ:
154 .Lk http://saturn.tlug.org/suncdfaq/
156 Sun sets their CD-ROM drives to SCSI ID 6.
157 We recommend you do the same.
159 Boot the installer by typing the appropriate command at the PROM prompt:
161 .(tag OpenBoot\ PROM\ 2 -offset indent -compact
164 .No \*[Gt] Ic b "sd(,30,)"
168 .No ok Ic "boot sd(,30,)"
172 .No ok Ic "boot cdrom"
176 After the initial probe messages you'll be asked to start the
177 install or upgrade procedure.
178 Proceed to the section
179 .Sx Running the installation scripts.
182 .Ss2 Installing NetBSD by using the bootable floppies
186 install floppies only work on the sun4c and sun4m machines.
187 Making the install floppies is fairly straightforward.
190 and SunOS use the same commands.
191 First, get two 1.44 MB floppy disks and format them either using the
199 Be sure that the `fdformat' command completes successfully before proceeding;
202 success is a string of all
206 success is a string of
209 Next, transfer the two floppy images
210 .Pq Pa installation/floppy/disk1.gz No and Pa installation/floppy/disk2
211 to the disks you just formatted.
212 You can do this step from
222 Insert the first floppy and run the following commands:
225 .No # Ic "gunzip disk1.gz"
226 .No # Ic "dd if=disk1 of=/dev/rfd0a bs=36k"
227 .No # Ic "eject floppy"
230 Insert the second floppy and run the following commands:
233 .No # Ic "dd if=disk2 of=/dev/rfd0a bs=36k"
234 .No # Ic "eject floppy"
237 Note that disk2 may be a symlink to .tgz file; do not uncompress it,
238 just follow the instructions above, verbatim.
239 After writing the two floppies,
240 be sure to label them so you can later identify them.
242 Insert the floppy made from
245 From the OpenBoot prompt, boot the floppy with the following command:
247 .(tag OpenBoot\ PROM\ 2\ (alternate) -offset indent -compact
250 .No ok Ic "boot fd(,,1)"
252 .It OpenBoot PROM 1 (alternate)
258 .No ok Ic "boot floppy"
262 After the initial probe messages you'll be asked to insert the floppy
265 If the floppy is not automatically ejected, you can either use a
266 straightened paperclip to eject the disk or do the following:
270 key (sometimes called the
272 key, found on the left side of your keyboard) and the
274 key, which will halt your system and give you a PROM prompt.
280 Now, insert the floppy labeled
282 After the installation tools have been loaded,
283 you'll be asked to start the install or upgrade procedure.
284 Proceed to the section
285 .Sx Running the installation scripts.
288 .Ss2 Installing NetBSD by using a netboot setup
290 .so ../common/netboot
292 Now, netboot your Sparc from the server by entering the appropriate
294 command at the monitor prompt.
295 Depending on the PROM version in your machine, this command takes one
296 of the following forms:
297 .(tag OpenBoot\ PROM\ 2 -offset indent -compact
300 .No \*[Gt] Ic "b le()netbsd"
304 .No ok Ic "b le()netbsd"
308 .No ok Ic "boot net netbsd"
312 After the initial probe messages you'll be asked to start the
313 install or upgrade procedure.
314 Proceed to the section
315 .Sx Running the installation scripts.
318 .Ss2 Installing NetBSD by using a bootable tape
320 Sun sets their tape drives to SCSI ID 4.
321 We recommend you do the same.
324 .Pq Pa installation/tape/tapefile1.gz No and Pa installation/tape/tapefile2
325 and transfer them to a tape.
326 Make sure you use the
327 .Sq no rewind scsi tape
329 Run the following commands:
332 .No # Ic "gunzip tapefile1.gz"
333 .No # Ic "mt -f /dev/nrst0 rew"
334 .No # Ic "dd if=tapefile1 of=/dev/nrst0 bs=4k conv=osync"
335 .No # Ic "dd if=tapefile2 of=/dev/nrst0 bs=4k conv=osync"
338 Now you can transfer the
340 distribution sets from
342 to the tape by using a series of additional
344 .No # Ic "dd if=\*[Lt]aset\*[Gt].tgz of=/dev/nrst0 bs=4k conv=osync"
348 .Sx Getting the NetBSD System on to Useful Media.
349 Be sure to mark the location of these files on the tape; you'll need them
350 during the installation procedure.
352 Insert the tape into your Sparc's tapestation.
353 Boot the installer by typing the appropriate command at the PROM prompt:
355 .(tag OpenBoot\ PROM\ 2\ (alternate) -offset indent -compact
358 .No \*[Gt] Ic "b st()"
362 .No ok Ic "boot st()"
366 .No ok Ic "boot tape"
370 After the initial probe messages you'll be asked to confirm the tape
371 device and tape file number containing the installation tools.
372 Then, proceed to the section
373 .Sx Running the installation scripts.
376 .Ss2 Running the installation scripts
378 The first thing that the installation scripts will inquire about is the
379 type of console you're using on your machine.
380 If you're using a Sun frame buffer display, choose the terminal type
382 .Pq this is presented as the default .
384 if your frame buffer device is a cgsix Sbus board, you should
385 change the terminal type to
387 to avoid triggering a bug in the board's firmware code that can garble
391 If you're using a terminal device connected to a serial port, choose a
392 terminal type appropriate for that device, e.g.
397 Next, you will be presented with a choice of two installation methods:
400 program, or the traditional script-based
405 program is easier to use, but the
407 program is more flexible.
408 Both of these installation methods will follow the
409 same set of procedures and will fully install
413 You will frequently be asked for confirmation before the system proceeds
414 with each phase of the installation process.
416 Occasionally, you will have to provide a piece of information such as the
417 name of the disk you want to install on, partitioning information,
418 or IP addresses and domain names you want to assign.
420 more than one disk, you may want to look at the output of the
422 command to see how your disks have been identified by the kernel.
424 If you repartition a hard drive, be certain that every partition starts
425 on a cylinder boundary for compatibility with the Sparc ROM.
428 The installation script goes through the following phases:
430 determination of the disk on which to install
433 checking/creation of the partition information on the disk
435 creating and mounting the
439 setup of network configuration
441 extraction of the distribution tar files
443 installation of bootstrap programs
447 Initially we'd suggest you
448 .Ic "boot sd()netbsd -bs" ,
449 then try multiuser after that.
450 If you boot single-user the
452 incantation to make the root file system writable is
455 .No # Ic "mount -u /dev/sd0a /"
458 Your PROM might have been setup to instruct the boot program to load
461 On OpenBoot PROM systems you can change it to load
463 instead using the following commands:
465 .(tag OpenBoot\ PROM\ 2 -offset indent -compact
468 .No ok Ic setenv boot-from sd(0,0,0)netbsd
472 .No ok Ic setenv boot-file netbsd
473 .No ok Ic setenv boot-device disk:a
477 .Em Congratulations ,
478 you have successfully installed