2000-11-23 00:14:24 +03:00
|
|
|
.\" $NetBSD: install,v 1.38 2000/11/22 21:14:25 abs Exp $
|
1999-01-13 10:30:01 +03:00
|
|
|
.\"
|
2000-10-10 16:55:15 +04:00
|
|
|
.\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
1999-01-13 10:30:01 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.
|
2000-09-04 20:08:50 +04:00
|
|
|
Installing
|
|
|
|
.Nx
|
|
|
|
is a relatively complex process, but if you have
|
1994-10-25 09:48:14 +03:00
|
|
|
this document in hand it shouldn't be too much trouble.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
There are several ways to install
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
onto your system. The easiest way is to use the
|
|
|
|
.Pa miniroot.fs
|
|
|
|
image copied to your local disk's swap partition or a scratch drive.
|
|
|
|
If your Sparc is hooked up in a network, you may configure another
|
|
|
|
.Ul
|
|
|
|
machine as a netboot server for your Sparc. Alternatively, there is a pair
|
|
|
|
of floppy images that will boot your system and run the installer.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pp
|
|
|
|
For more information on the commands and variables available in
|
|
|
|
the OpenBoot PROM (present in all sun4c and sun4m machines), go to
|
|
|
|
.Lk http://docs.sun.com
|
2000-10-29 17:08:04 +03:00
|
|
|
and search for
|
|
|
|
.Dq openboot reference
|
|
|
|
(without quotes).
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Ss2 Installing NetBSD by placing a bootable filesystem on a partitioned hard drive
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pa installation/miniroot/miniroot.fs.gz
|
|
|
|
is a compressed, self-contained
|
|
|
|
.Nx
|
|
|
|
filesystem holding all utilities necessary to install
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-21 08:49:26 +04:00
|
|
|
onto a disk attached to your system. It is distributed as a compressed plain
|
|
|
|
file you will transfer to a raw disk partition. You will then boot
|
|
|
|
this installer using the appropriate PROM command. The simplest case is
|
2000-10-29 17:08:04 +03:00
|
|
|
where you place the
|
|
|
|
.Pa miniroot.fs
|
|
|
|
filesystem on the swap partition of your disk. Alternatively, you can place
|
|
|
|
it on any other unused partition on any disk (such as a Zip disk). Be
|
|
|
|
forewarned that you will not be able to install
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
onto the partition that contains the
|
|
|
|
.Pa miniroot.fs
|
|
|
|
as this partition is needed during the install process.
|
|
|
|
.Pp
|
|
|
|
Loading the filesystem onto a raw partition is straightforward.
|
|
|
|
First, download
|
|
|
|
.Pa miniroot.fs
|
|
|
|
to your system. Next, reboot in single-user mode (i.e.
|
|
|
|
.Ic "boot -s" )
|
|
|
|
to ensure that your system will not be swapping.
|
|
|
|
Finally, place the
|
|
|
|
.Pa miniroot.fs
|
|
|
|
on your partition of choice. On
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-21 08:49:26 +04:00
|
|
|
or SunOS the commands are:
|
|
|
|
.Pp
|
|
|
|
.Dl # Ic "gunzip miniroot.fs.gz"
|
|
|
|
.Dl # Ic "dd if=miniroot.fs of=/dev/rsd0b bs=4k conv=sync"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
Here,
|
|
|
|
.Li /dev/rsd0b
|
|
|
|
is assumed to be your swap partition. If you decide to
|
|
|
|
place
|
|
|
|
.Pa miniroot.fs
|
|
|
|
on a non-swap partition, it will overwrite all of the contents of that
|
|
|
|
partition, but you will not need to reboot into single-user mode to write it.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pp
|
|
|
|
After transferring the filesystem to disk, bring the system down by:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
1999-01-13 10:30:01 +03:00
|
|
|
.Dl # Ic halt
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Then boot the installer by typing the appropriate
|
|
|
|
command at the PROM prompt (this example is for the swap partition):
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.(tag OpenBoot\ PROM\ 2 -offset indent -compact
|
|
|
|
.It sunmon
|
|
|
|
.Li \*> Ic "b sd(,,1)netbsd -s"
|
|
|
|
.It OpenBoot PROM 1
|
|
|
|
.Li ok Ic "boot sd(,,1)netbsd -s"
|
|
|
|
.It OpenBoot PROM 2
|
|
|
|
.Li ok Ic "boot disk:b netbsd -s"
|
|
|
|
.tag)
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pp
|
|
|
|
The monitor boot command will load the
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
|
|
|
kernel contained in the
|
2000-10-21 08:49:26 +04:00
|
|
|
filesystem image. After the initial probe messages you'll be
|
1996-11-30 02:21:52 +03:00
|
|
|
asked to start the install or upgrade procedure. Proceed to the section
|
2000-09-04 20:08:50 +04:00
|
|
|
.Sx Running the installation scripts.
|
1999-01-13 10:30:01 +03:00
|
|
|
below.
|
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Ss2 Installing NetBSD by using a bootable CD-ROM
|
|
|
|
.
|
|
|
|
If you wish to burn a CD-R containing a bootable NetBSD installation,
|
|
|
|
then you can either burn the prepared disk image in
|
|
|
|
.Pa installation/cdrom/netbsd-sparc.iso
|
|
|
|
or create your own.
|
|
|
|
If you wish to create your own, you should follow the directions on the
|
|
|
|
.Nx
|
|
|
|
Bootable CD-ROM HOW-TO at:
|
|
|
|
.Lk http://www.netbsd.org/Documentation/bootcd.html#sparcimage
|
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
Once you have downloaded
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pa netbsd-sparc.iso
|
|
|
|
or created your own disk image, then you need to burn it to a CD-R.
|
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
The CD-ROM attached to your Sparc must support 512 byte sectors to be
|
2000-10-21 08:49:26 +04:00
|
|
|
bootable.
|
|
|
|
All Sun brand CD-ROMs will work, as well as many other manufacturers. See
|
|
|
|
the Sun CD-ROM FAQ:
|
|
|
|
.Lk http://saturn.tlug.org/suncdfaq/
|
|
|
|
.Pp
|
|
|
|
Sun sets their CD-ROM drives to SCSI ID 6. We recommend you do the same.
|
|
|
|
.Pp
|
|
|
|
Boot the installer by typing the appropriate command at the PROM prompt:
|
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
.(tag OpenBoot\ PROM\ 2 -offset indent -compact
|
|
|
|
.It sunmon
|
|
|
|
.Li \*> Ic b "sd(,30,)"
|
|
|
|
.It OpenBoot PROM 1
|
|
|
|
.Li ok Ic "boot sd(,30,)"
|
|
|
|
.It OpenBoot PROM 2
|
|
|
|
.Li ok Ic "boot cdrom"
|
|
|
|
.tag)
|
|
|
|
.Pp
|
|
|
|
After the initial probe messages you'll be asked to start the
|
2000-10-21 08:49:26 +04:00
|
|
|
install or upgrade procedure. Proceed to the section
|
|
|
|
.Sx Running the installation scripts.
|
|
|
|
below.
|
|
|
|
.
|
|
|
|
.Ss2 Installing NetBSD by using the bootable floppies
|
1999-02-06 11:36:05 +03:00
|
|
|
.
|
2000-09-04 20:08:50 +04:00
|
|
|
The
|
|
|
|
.Nx
|
2000-10-21 08:49:26 +04:00
|
|
|
install floppies only work on the sun4c and sun4m machines.
|
|
|
|
Making the install floppies is fairly straightforward.
|
2000-08-24 20:41:04 +04:00
|
|
|
.Pp
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-21 08:49:26 +04:00
|
|
|
and SunOS use the same commands. First, get two 1.44 MB
|
2000-10-29 17:08:04 +03:00
|
|
|
floppy disks and format them either using the
|
2000-10-21 08:49:26 +04:00
|
|
|
.Xr fdformat 8
|
|
|
|
command or a PC.
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-08-24 20:41:04 +04:00
|
|
|
.Dl # Ic "fdformat"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Be sure that the `fdformat' command completes successfully before proceeding;
|
|
|
|
on
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
success is a string of all
|
|
|
|
.Sq Li V 's ,
|
|
|
|
and on
|
|
|
|
.Tn SunOS
|
|
|
|
success is a string of
|
|
|
|
.Sq Li \&. 's .
|
|
|
|
.Pp
|
|
|
|
Next, transfer the two floppy images
|
2000-11-01 03:23:51 +03:00
|
|
|
.Pq Pa installation/floppy/disk1.gz No and Pa installation/floppy/disk2
|
2000-10-29 17:08:04 +03:00
|
|
|
to the disks you just formatted.
|
|
|
|
You can do this step from
|
|
|
|
.Nx ,
|
|
|
|
.Tn SunOS ,
|
|
|
|
or a
|
|
|
|
.Tn Windows
|
|
|
|
machine using
|
2000-10-21 08:49:26 +04:00
|
|
|
.Nm rawrite.exe
|
2000-10-29 17:08:04 +03:00
|
|
|
(available in the NetBSD/i386 distribution).
|
2000-10-21 08:49:26 +04:00
|
|
|
Insert the first floppy and run the following commands:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-11-01 03:23:51 +03:00
|
|
|
.Dl # Ic "gunzip disk1.gz"
|
|
|
|
.Dl # Ic "dd if=disk1 of=/dev/rfd0a bs=36k"
|
2000-10-20 16:26:41 +04:00
|
|
|
.Dl # Ic "eject floppy"
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Insert the second floppy and run the following commands:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-11-23 00:14:24 +03:00
|
|
|
.Dl # Ic "dd if=disk2 of=/dev/rfd0a conv=osync"
|
2000-10-20 16:26:41 +04:00
|
|
|
.Dl # Ic "eject floppy"
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Be sure to label your floppies so you can later identify them.
|
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
Insert the floppy made from
|
2000-11-01 03:23:51 +03:00
|
|
|
.Pa disk1
|
2000-10-29 17:08:04 +03:00
|
|
|
into your Sparc.
|
|
|
|
From the OpenBoot prompt, boot the floppy with the following command:
|
|
|
|
.Pp
|
|
|
|
.(tag OpenBoot\ PROM\ 2\ (alternate) -offset indent -compact
|
|
|
|
.It OpenBoot PROM 1
|
|
|
|
.Li ok Ic "boot fd(,,1)"
|
|
|
|
.It OpenBoot PROM 1 (alternate)
|
|
|
|
.Li ok Ic "boot /fd"
|
|
|
|
.It OpenBoot PROM 2
|
|
|
|
.Li ok Ic "boot floppy"
|
|
|
|
.tag)
|
|
|
|
.Pp
|
|
|
|
After the initial probe messages you'll be asked to insert the floppy
|
|
|
|
labeled
|
2000-11-01 03:23:51 +03:00
|
|
|
.Dq NetBSD disk2 .
|
2000-11-05 06:31:19 +03:00
|
|
|
If the floppy is not automatically ejected, you can either use a
|
|
|
|
straightened paperclip to eject the disk or do the following:
|
|
|
|
.Pp
|
|
|
|
Press the
|
|
|
|
.Key STOP
|
|
|
|
key (sometimes called the
|
|
|
|
.Key L1
|
|
|
|
key, found on the left side of your keyboard) and the
|
|
|
|
.Key a
|
|
|
|
key, which will halt your system and give you a PROM prompt.
|
|
|
|
.Dl ok Ic "eject"
|
|
|
|
.Dl ok Ic "go"
|
|
|
|
.Pp
|
|
|
|
Now, insert the floppy labeled
|
|
|
|
.Li disk2 .
|
|
|
|
After the installation tools have been loaded,
|
|
|
|
you'll be asked to start the install or upgrade procedure.
|
2000-10-29 17:08:04 +03:00
|
|
|
Proceed to the section
|
2000-10-21 08:49:26 +04:00
|
|
|
.Sx Running the installation scripts.
|
1999-02-06 11:36:05 +03:00
|
|
|
below.
|
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Ss2 Installing NetBSD by using a netboot setup
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
First, you must setup a netboot server to provide the services and files
|
|
|
|
your client needs. If you are using a
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-21 08:49:26 +04:00
|
|
|
system as the netboot server, have a look at the
|
1999-01-13 10:30:01 +03:00
|
|
|
.Xr diskless 8
|
2000-10-21 08:49:26 +04:00
|
|
|
manual page for a more detailed guide on how to proceed with this.
|
|
|
|
If the server runs another operating system, you should consult the
|
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
Diskless HOW-TO, which will walk you through the steps necessary to
|
2000-10-21 08:49:26 +04:00
|
|
|
configure a netboot server on a variety of platforms.
|
|
|
|
.Lk http://www.netbsd.org/Documentation/network/netboot/
|
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
This section will briefly describe what happens during a Sparc
|
2000-10-21 08:49:26 +04:00
|
|
|
netboot, and the next section will give a brief set of directions on how
|
2000-10-29 17:08:04 +03:00
|
|
|
to set up your server. Your Sparc initially broadcasts a RARP request, and
|
|
|
|
expects a server to reply with your client's IP address.
|
|
|
|
Next, it downloads a second stage bootstrap program via TFTP from the server
|
2000-10-21 08:49:26 +04:00
|
|
|
that responded to the RARP request. It will look for a filename composed of
|
1995-11-30 02:51:24 +03:00
|
|
|
the machine's IP address followed by the machine's architecture, separated
|
|
|
|
by a period. For example, a sun4c machine which has been assigned IP
|
2000-10-29 17:08:04 +03:00
|
|
|
address 130.115.144.11, will make an TFTP request for
|
|
|
|
.Pa 8273900B.SUN4C .
|
2000-10-21 08:49:26 +04:00
|
|
|
This file is a symbolic link to the second-stage
|
1995-11-30 02:51:24 +03:00
|
|
|
boot program, which should be located in a place where the TFTP daemon
|
|
|
|
can find it (remember, many TFTP daemons run in a chroot'ed environment).
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
The boot program to use is
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pa installation/netboot/boot.net
|
2000-10-29 17:08:04 +03:00
|
|
|
Alternatively, you can find the bootstrap program in
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pa /usr/mdec/boot.net
|
2000-10-10 16:55:15 +04:00
|
|
|
in the
|
|
|
|
.Nx*M
|
|
|
|
distribution.
|
1999-01-13 10:30:01 +03:00
|
|
|
.(Note
|
|
|
|
The only difference between
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pa /usr/mdec/boot.net
|
|
|
|
and
|
|
|
|
.Pa /usr/mdec/boot
|
|
|
|
is in the a.out header, which has been magically transformed in a way that
|
|
|
|
makes it usable on all versions of Sparc PROMs.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Note)
|
|
|
|
.Pp
|
1996-10-16 03:29:40 +04:00
|
|
|
After the boot program has been loaded into memory and given control by
|
|
|
|
the PROM, it starts locating the machine's remote root directory through
|
|
|
|
the BOOTPARAM protocol. First a BOOTPARAM WHOAMI request is broadcast
|
2000-10-21 08:49:26 +04:00
|
|
|
on the local net. The answer to this request should contain
|
1996-10-16 03:29:40 +04:00
|
|
|
the client's name. This name is used in next step, a BOOTPARAM GETFILE
|
2000-10-29 17:08:04 +03:00
|
|
|
request - sent to the server that responded to the WHOAMI request -
|
1996-10-16 03:29:40 +04:00
|
|
|
requesting the name and address of the machine that will serve the client's
|
|
|
|
root directory, as well as the path of the client's root on that server.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Finally, this information is used to issue a REMOTE MOUNT
|
1996-10-16 03:29:40 +04:00
|
|
|
request to the client's root filesystem server, asking for an NFS file
|
2000-10-29 17:08:04 +03:00
|
|
|
handle corresponding to the root filesystem. Once the NFS mount is complete,
|
|
|
|
the boot program starts reading from the remote root filesystem in search of
|
|
|
|
the kernel which is then read into memory.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-09-04 20:08:50 +04:00
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Ss2 Configuring your netboot server
|
2000-09-04 20:08:50 +04:00
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
Follow this section to configure a
|
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
machine as your netboot server. We will use
|
|
|
|
.Sq Li CC:CC:CC:CC:CC:CC
|
|
|
|
as the MAC address (ethernet hardware address) of your netboot client
|
|
|
|
machine that you wish to install
|
2000-10-21 08:49:26 +04:00
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
on. We use
|
|
|
|
.Sq Li 192.168.1.10
|
|
|
|
as the IP address of your client, and
|
|
|
|
.Sq Li client.test.net
|
|
|
|
as the name. The server name is
|
|
|
|
.Sq Li server.test.net ,
|
|
|
|
and the path on the server to the NFS exported directory is
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pa /export/client/root
|
|
|
|
although you may choose to use a different path. Create an
|
|
|
|
.Pa /etc/ethers
|
|
|
|
file with the following line:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl "CC:CC:CC:CC:CC:CC client"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Add your client to the server's
|
|
|
|
.Pa /etc/hosts
|
|
|
|
file:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl "192.168.1.10 client"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
If
|
|
|
|
.Ic rarpd
|
|
|
|
is currently running, restart it (kill -HUP), otherwise start
|
|
|
|
.Ic rarpd :
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl # Ic "/usr/sbin/rarpd -a"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Next, create
|
|
|
|
.Pa /etc/bootparams
|
|
|
|
with the following line:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl "client root=server:/export/client/root"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
If
|
|
|
|
.Ic rpc.bootparamd
|
|
|
|
is currently running, restart it
|
|
|
|
.Pq Ic "kill -HUP" ,
|
|
|
|
otherwise start
|
|
|
|
.Ic rpc.bootparamd :
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl # Ic "/usr/sbin/rpc.bootparamd"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
Now, make sure the bootloader in
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pa /tftpboot
|
2000-10-29 17:08:04 +03:00
|
|
|
is linked to, or a copy of,
|
2000-10-21 08:49:26 +04:00
|
|
|
.Pa boot.net
|
|
|
|
and is named appropriately for your client
|
2000-10-29 17:08:04 +03:00
|
|
|
(in this case, it would be
|
|
|
|
.Pa C0A8010A.SUN4C ) .
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl # Ic "cp boot.net /tftpboot"
|
|
|
|
.Dl # Ic "ln -s /tftpboot/boot.net /tftpboot/C0A8010A.SUN4C"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Now, you should edit
|
|
|
|
.Pa /etc/inetd.conf
|
2000-10-29 17:08:04 +03:00
|
|
|
and make sure that the line starting with
|
|
|
|
.Li tftp
|
|
|
|
is uncommented. You will need to
|
|
|
|
.Ic kill -HUP
|
|
|
|
the
|
|
|
|
.Ic inetd
|
|
|
|
process to enable tftp if this line was previously commented out.
|
|
|
|
The next step is to set up NFS exports. Create the directory you are
|
|
|
|
exporting for the netboot client:
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl # Ic "mkdir -p /export/client/root"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Put the following line in
|
|
|
|
.Pa /etc/exports
|
|
|
|
to enable NFS sharing:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl "/export/client/root -maproot=root client.test.net"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
If your server is currently running NFS services, you only need to
|
|
|
|
.Ic "kill -HUP"
|
|
|
|
the
|
|
|
|
.Ic mountd
|
|
|
|
process. Otherwise, you need to run:
|
|
|
|
.Pp
|
2000-11-04 17:06:24 +03:00
|
|
|
.Dl # Ic "/usr/sbin/mountd"
|
|
|
|
.Dl # Ic "/usr/sbin/nfsd -tun 4"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Now, you need to place the files your netboot client will need.
|
|
|
|
As noted above in the section
|
2000-10-29 17:08:04 +03:00
|
|
|
.Sx Preparing your System for NetBSD Installation
|
2000-10-21 08:49:26 +04:00
|
|
|
you have several options when choosing a location to store the
|
2000-10-29 17:08:04 +03:00
|
|
|
distribution filesets.
|
|
|
|
However, the easiest way is to put the distribution
|
2000-10-21 08:49:26 +04:00
|
|
|
files into the exported directory for your client on the server.
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl # Ic "mv *.tgz /export/client/root"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
Your client will need a kernel to boot (use
|
|
|
|
.Pa binary/kernel/netbsd.GENERIC.gz ) .
|
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
.Dl # Ic "gunzip netbsd.GENERIC.gz"
|
|
|
|
.Dl # Ic "mv netbsd.GENERIC /export/client/root/netbsd"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
Your client will need installation tools (use
|
2000-11-01 03:23:51 +03:00
|
|
|
.Pa installation/netboot/rootfs.tgz ) .
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2000-11-01 03:23:51 +03:00
|
|
|
.Dl # Ic "gunzip < rootfs.tgz | (cd /export/client/root && tar -xpf -)"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
Now, netboot your Sparc from the server by entering the appropriate
|
|
|
|
.Ic boot command at the monitor prompt.
|
|
|
|
Depending on the PROM version in your machine, this command takes one
|
|
|
|
of the following forms:
|
|
|
|
.(tag OpenBoot\ PROM\ 2 -offset indent -compact
|
|
|
|
.It sunmon
|
|
|
|
.Li \*> Ic "b le()netbsd"
|
|
|
|
.It OpenBoot PROM 1
|
|
|
|
.Li ok Ic "b le()netbsd"
|
|
|
|
.It OpenBoot PROM 2
|
|
|
|
.Li ok Ic "b net netbsd"
|
|
|
|
.tag)
|
|
|
|
.Pp
|
|
|
|
After the initial probe messages you'll be asked to start the
|
2000-10-21 08:49:26 +04:00
|
|
|
install or upgrade procedure. Proceed to the section
|
|
|
|
.Sx Running the installation scripts.
|
|
|
|
below.
|
2000-09-04 20:08:50 +04:00
|
|
|
.
|
2000-11-01 03:23:51 +03:00
|
|
|
.Ss2 Installing NetBSD by using a bootable tape
|
|
|
|
.
|
2000-11-01 23:56:06 +03:00
|
|
|
Sun sets their tape drives to SCSI ID 4. We recommend you do the same.
|
|
|
|
.Pp
|
2000-11-01 03:23:51 +03:00
|
|
|
Get the tape images
|
|
|
|
.Pq Pa installation/tape/tapefile1.gz No and Pa installation/tape/tapefile2
|
2000-11-01 23:56:06 +03:00
|
|
|
and transfer them to a tape. Make sure you use the
|
|
|
|
.Sq no rewind scsi tape
|
|
|
|
device. Run the following commands:
|
2000-11-01 03:23:51 +03:00
|
|
|
.Pp
|
|
|
|
.Dl # Ic "gunzip tapefile1.gz"
|
|
|
|
.Dl # Ic "mt -f /dev/nrst0 rew"
|
|
|
|
.Dl # Ic "dd if=tapefile1 of=/dev/nrst0 bs=4k"
|
|
|
|
.Dl # Ic "dd if=tapefile2 of=/dev/nrst0 bs=4k"
|
|
|
|
.Pp
|
|
|
|
Now you can transfer the
|
|
|
|
.Nx \*V.
|
|
|
|
distribution sets from
|
|
|
|
.Pq Pa binary/sets
|
|
|
|
to the tape by using a series of additional
|
|
|
|
.Dl # Ic "dd if=<aset>.tgz of=/dev/nrst0 bs=4k"
|
|
|
|
commands. See also the section
|
|
|
|
.Sx Getting the NetBSD System on to Useful Media.
|
|
|
|
Be sure to mark the location of these files on the tape; you'll need them
|
|
|
|
during the installation procedure.
|
|
|
|
.Pp
|
|
|
|
Insert the tape into your Sparc's tapestation.
|
2000-11-01 23:56:06 +03:00
|
|
|
Boot the installer by typing the appropriate command at the PROM prompt:
|
2000-11-01 03:23:51 +03:00
|
|
|
.Pp
|
|
|
|
.(tag OpenBoot\ PROM\ 2\ (alternate) -offset indent -compact
|
2000-11-01 23:56:06 +03:00
|
|
|
.It sunmon
|
2000-11-01 03:23:51 +03:00
|
|
|
.Li > Ic "b st()"
|
2000-11-01 23:56:06 +03:00
|
|
|
.It OpenBoot PROM 1
|
|
|
|
.Li ok Ic "boot st()"
|
|
|
|
.It OpenBoot PROM 2
|
2000-11-01 03:23:51 +03:00
|
|
|
.Li ok Ic "boot tape"
|
|
|
|
.tag)
|
|
|
|
.Pp
|
|
|
|
After the initial probe messages you'll be asked to confirm the tape
|
|
|
|
device and tape file number containing the installation tools.
|
|
|
|
Then, proceed to the section
|
|
|
|
.Sx Running the installation scripts.
|
|
|
|
below.
|
|
|
|
.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Ss2 Running the installation scripts
|
2000-09-04 20:08:50 +04:00
|
|
|
.
|
2000-11-04 16:44:05 +03:00
|
|
|
The first thing that the installation scripts will inquire about is the
|
|
|
|
type of console you're using on your machine. If you're using a Sun
|
|
|
|
frame buffer display, choose the terminal type
|
|
|
|
.Ic sun
|
|
|
|
.Pq this is presented as the default .
|
|
|
|
.(Note
|
|
|
|
if your frame buffer device is a cgsix Sbus board, you should
|
|
|
|
change the terminal type to
|
|
|
|
.Ic sun-cgsix
|
|
|
|
to avoid triggering a bug in the board's firmware code that can garble
|
|
|
|
your screen.
|
|
|
|
.Note)
|
|
|
|
.Pp
|
|
|
|
If you're using a terminal device connected to a serial port, choose a
|
|
|
|
terminal type appropriate for that device, e.g.
|
|
|
|
.Ic vt100
|
|
|
|
or
|
|
|
|
.Ic vt200 .
|
|
|
|
.Pp
|
|
|
|
Next, you will be presented with a choice of two installation methods:
|
|
|
|
a new full-screen
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic sysinst
|
|
|
|
program, or the traditional script-based
|
|
|
|
.Ic miniroot
|
|
|
|
program. The
|
|
|
|
.Ic sysinst
|
|
|
|
program is easier to use, but the
|
|
|
|
.Ic miniroot
|
|
|
|
program is more flexible. Both of these installation methods will follow the
|
|
|
|
same set of procedures and will fully install
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
on your Sparc.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-21 08:49:26 +04:00
|
|
|
You will frequently be asked for confirmation before the system proceeds
|
|
|
|
with each phase of the installation process.
|
2000-10-20 16:26:41 +04:00
|
|
|
.Pp
|
1999-01-13 10:30:01 +03:00
|
|
|
Occasionally, you will have to provide a piece of information such as the
|
2000-10-21 08:49:26 +04:00
|
|
|
name of the disk you want to install on, partitioning information,
|
2000-10-29 17:08:04 +03:00
|
|
|
or IP addresses and domain names you want to assign. If your system has
|
|
|
|
more than one disk, you may want to look at the output of the
|
2000-10-21 08:49:26 +04:00
|
|
|
.Xr dmesg 8
|
2000-10-29 17:08:04 +03:00
|
|
|
command to see how your disks have been identified by the kernel.
|
2000-10-21 08:49:26 +04:00
|
|
|
.(Note
|
|
|
|
If you repartition a hard drive, be certain that every partition starts
|
2000-10-29 17:08:04 +03:00
|
|
|
on a cylinder boundary for compatability with the Sparc ROM.
|
2000-10-21 08:49:26 +04:00
|
|
|
.Note)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1995-10-08 05:05:46 +03:00
|
|
|
The installation script goes through the following phases:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(bullet -compact
|
2000-10-21 08:49:26 +04:00
|
|
|
determination of the disk on which to install
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
2000-10-10 16:55:15 +04:00
|
|
|
.It
|
2000-10-21 08:49:26 +04:00
|
|
|
checking/creation of the partition information on the disk
|
2000-10-10 16:55:15 +04:00
|
|
|
.It
|
|
|
|
creating and mounting the
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
|
|
|
filesystems
|
2000-10-10 16:55:15 +04:00
|
|
|
.It
|
2000-10-21 08:49:26 +04:00
|
|
|
setup of network configuration
|
2000-10-10 16:55:15 +04:00
|
|
|
.It
|
|
|
|
extraction of the distribution tar files
|
|
|
|
.It
|
2000-10-21 08:49:26 +04:00
|
|
|
installation of bootstrap programs
|
2000-10-10 16:55:15 +04:00
|
|
|
.bullet)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
Now try a reboot. Initially we'd suggest you
|
|
|
|
.Ic "boot sd()netbsd -bs" ,
|
|
|
|
then try multiuser after that. If you boot single-user the
|
2000-09-04 20:08:50 +04:00
|
|
|
.Nx
|
|
|
|
incantation to make the root filesystem writable is
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dl # Ic "mount -u /dev/sd0a /"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
Your PROM might have been setup to instruct the boot program to load
|
|
|
|
a file called
|
|
|
|
.Pa vmunix .
|
|
|
|
On OpenBoot PROM systems you can change it to load
|
|
|
|
.Pa netbsd
|
|
|
|
instead using the following commands:
|
|
|
|
.Pp
|
|
|
|
.(tag OpenBoot\ PROM\ 2 -offset indent -compact
|
|
|
|
.It OpenBoot PROM 1
|
|
|
|
.Li ok Ic setenv boot-from sd(0,0,0)netbsd
|
|
|
|
.It OpenBoot PROM 2
|
|
|
|
.Li ok Ic setenv boot-file netbsd
|
|
|
|
.br
|
|
|
|
.Li ok Ic setenv boot-device disk:a
|
|
|
|
.tag)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
.Em Congratulations ,
|
2000-09-04 20:08:50 +04:00
|
|
|
you have successfully installed
|
2000-10-10 16:55:15 +04:00
|
|
|
.Nx \*V.
|