[BACK]Return to install CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / distrib / notes / sparc

Annotation of src/distrib/notes/sparc/install, Revision 1.44

1.44    ! he          1: .\"    $NetBSD: install,v 1.43 2001/11/04 06:00:03 jhawk Exp $
1.18      ross        2: .\"
1.29      lukem       3: .\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
1.18      ross        4: .\" All rights reserved.
                      5: .\"
                      6: .\" Redistribution and use in source and binary forms, with or without
                      7: .\" modification, are permitted provided that the following conditions
                      8: .\" are met:
                      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.
                     14: .\" 3. All advertising materials mentioning features or use of this software
                     15: .\"    must display the following acknowledgement:
                     16: .\"        This product includes software developed by the NetBSD
                     17: .\"        Foundation, Inc. and its contributors.
                     18: .\" 4. Neither the name of The NetBSD Foundation nor the names of its
                     19: .\"    contributors may be used to endorse or promote products derived
                     20: .\"    from this software without specific prior written permission.
                     21: .\"
                     22: .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
                     23: .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
                     24: .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
                     25: .\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
                     26: .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
                     27: .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
                     28: .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
                     29: .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
                     30: .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
                     31: .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
                     32: .\" POSSIBILITY OF SUCH DAMAGE.
                     33: .\"
                     34: .
1.26      abs        35: Installing
                     36: .Nx
                     37: is a relatively complex process, but if you have
1.1       deraadt    38: this document in hand it shouldn't be too much trouble.
1.18      ross       39: .Pp
1.29      lukem      40: There are several ways to install
1.26      abs        41: .Nx
1.32      lukem      42: onto your system. The easiest way is to use the
                     43: .Pa miniroot.fs
                     44: image copied to your local disk's swap partition or a scratch drive.
                     45: If your Sparc is hooked up in a network, you may configure another
                     46: .Ul
                     47: machine as a netboot server for your Sparc.  Alternatively, there is a pair
                     48: of floppy images that will boot your system and run the installer.
1.18      ross       49: .Pp
1.31      mbw        50: For more information on the commands and variables available in
                     51: the OpenBoot PROM (present in all sun4c and sun4m machines), go to
                     52: .Lk http://docs.sun.com
1.32      lukem      53: and search for
                     54: .Dq openboot reference
                     55: (without quotes).
1.31      mbw        56: .
                     57: .Ss2 Installing NetBSD by placing a bootable filesystem on a partitioned hard drive
                     58: .
                     59: .Pa installation/miniroot/miniroot.fs.gz
                     60: is a compressed, self-contained
                     61: .Nx
                     62: filesystem holding all utilities necessary to install
                     63: .Nx
                     64: onto a disk attached to your system. It is distributed as a compressed plain
                     65: file you will transfer to a raw disk partition.  You will then boot
                     66: this installer using the appropriate PROM command.  The simplest case is
1.32      lukem      67: where you place the
                     68: .Pa miniroot.fs
                     69: filesystem on the swap partition of your disk. Alternatively, you can place
                     70: it on any other unused partition on any disk (such as a Zip disk).  Be
                     71: forewarned that you will not be able to install
                     72: .Nx
                     73: onto the partition that contains the
                     74: .Pa miniroot.fs
                     75: as this partition is needed during the install process.
                     76: .Pp
                     77: Loading the filesystem onto a raw partition is straightforward.
                     78: First, download
                     79: .Pa miniroot.fs
                     80: to your system.  Next, reboot in single-user mode (i.e.
                     81: .Ic "boot -s" )
                     82: to ensure that your system will not be swapping.
                     83: Finally, place the
                     84: .Pa miniroot.fs
                     85: on your partition of choice.  On
1.31      mbw        86: .Nx
                     87: or SunOS the commands are:
                     88: .Pp
                     89: .Dl # Ic "gunzip miniroot.fs.gz"
                     90: .Dl # Ic "dd if=miniroot.fs of=/dev/rsd0b bs=4k conv=sync"
1.32      lukem      91: .Pp
                     92: Here,
                     93: .Li /dev/rsd0b
                     94: is assumed to be your swap partition.  If you decide to
                     95: place
                     96: .Pa miniroot.fs
                     97: on a non-swap partition, it will overwrite all of the contents of that
                     98: partition, but you will not need to reboot into single-user mode to write it.
1.31      mbw        99: .Pp
                    100: After transferring the filesystem to disk, bring the system down by:
1.32      lukem     101: .Pp
1.18      ross      102: .Dl # Ic halt
                    103: .Pp
1.31      mbw       104: Then boot the installer by typing the appropriate
                    105: command at the PROM prompt (this example is for the swap partition):
1.32      lukem     106: .Pp
                    107: .(tag OpenBoot\ PROM\ 2 -offset indent -compact
                    108: .It sunmon
                    109: .Li \*> Ic "b sd(,,1)netbsd -s"
                    110: .It OpenBoot PROM 1
                    111: .Li ok Ic "boot sd(,,1)netbsd -s"
                    112: .It OpenBoot PROM 2
                    113: .Li ok Ic "boot disk:b netbsd -s"
                    114: .tag)
1.18      ross      115: .Pp
1.31      mbw       116: The monitor boot command will load the
1.26      abs       117: .Nx
                    118: kernel contained in the
1.31      mbw       119: filesystem image. After the initial probe messages you'll be
1.12      pk        120: asked to start the install or upgrade procedure. Proceed to the section
1.26      abs       121: .Sx Running the installation scripts.
1.19      mrg       122: below.
                    123: .
1.31      mbw       124: .Ss2 Installing NetBSD by using a bootable CD-ROM
                    125: .
                    126: If you wish to burn a CD-R containing a bootable NetBSD installation,
                    127: then you can either burn the prepared disk image in
                    128: .Pa installation/cdrom/netbsd-sparc.iso
                    129: or create your own.
                    130: If you wish to create your own, you should follow the directions on the
                    131: .Nx
                    132: Bootable CD-ROM HOW-TO at:
                    133: .Lk http://www.netbsd.org/Documentation/bootcd.html#sparcimage
                    134: .Pp
1.32      lukem     135: Once you have downloaded
1.31      mbw       136: .Pa netbsd-sparc.iso
                    137: or created your own disk image, then you need to burn it to a CD-R.
                    138: .Pp
1.32      lukem     139: The CD-ROM attached to your Sparc must support 512 byte sectors to be
1.31      mbw       140: bootable.
                    141: All Sun brand CD-ROMs will work, as well as many other manufacturers.  See
                    142: the Sun CD-ROM FAQ:
                    143: .Lk http://saturn.tlug.org/suncdfaq/
                    144: .Pp
                    145: Sun sets their CD-ROM drives to SCSI ID 6.  We recommend you do the same.
                    146: .Pp
                    147: Boot the installer by typing the appropriate command at the PROM prompt:
                    148: .Pp
1.32      lukem     149: .(tag OpenBoot\ PROM\ 2 -offset indent -compact
                    150: .It sunmon
                    151: .Li \*> Ic b "sd(,30,)"
                    152: .It OpenBoot PROM 1
                    153: .Li ok Ic "boot sd(,30,)"
                    154: .It OpenBoot PROM 2
                    155: .Li ok Ic "boot cdrom"
                    156: .tag)
                    157: .Pp
                    158: After the initial probe messages you'll be asked to start the
1.31      mbw       159: install or upgrade procedure. Proceed to the section
                    160: .Sx Running the installation scripts.
                    161: below.
                    162: .
                    163: .Ss2 Installing NetBSD by using the bootable floppies
1.19      mrg       164: .
1.26      abs       165: The
                    166: .Nx
1.31      mbw       167: install floppies only work on the sun4c and sun4m machines.
                    168: Making the install floppies is fairly straightforward.
1.25      abs       169: .Pp
1.31      mbw       170: .Nx
                    171: and SunOS use the same commands.  First, get two 1.44 MB
1.32      lukem     172: floppy disks and format them either using the
1.30      pk        173: .Xr fdformat 8
1.31      mbw       174: command or a PC.
1.32      lukem     175: .Pp
1.25      abs       176: .Dl # Ic "fdformat"
1.32      lukem     177: .Pp
1.31      mbw       178: Be sure that the `fdformat' command completes successfully before proceeding;
                    179: on
1.26      abs       180: .Nx
1.32      lukem     181: success is a string of all
                    182: .Sq Li V 's ,
                    183: and on
                    184: .Tn SunOS
                    185: success is a string of
                    186: .Sq Li \&. 's .
                    187: .Pp
                    188: Next, transfer the two floppy images
1.33      pk        189: .Pq Pa installation/floppy/disk1.gz No and Pa installation/floppy/disk2
1.32      lukem     190: to the disks you just formatted.
                    191: You can do this step from
                    192: .Nx ,
                    193: .Tn SunOS ,
                    194: or a
                    195: .Tn Windows
                    196: machine using
1.31      mbw       197: .Nm rawrite.exe
1.32      lukem     198: (available in the NetBSD/i386 distribution).
1.31      mbw       199: Insert the first floppy and run the following commands:
1.32      lukem     200: .Pp
1.33      pk        201: .Dl # Ic "gunzip disk1.gz"
                    202: .Dl # Ic "dd if=disk1 of=/dev/rfd0a bs=36k"
1.30      pk        203: .Dl # Ic "eject floppy"
                    204: .Pp
1.31      mbw       205: Insert the second floppy and run the following commands:
1.32      lukem     206: .Pp
1.39      abs       207: .Dl # Ic "dd if=disk2 of=/dev/rfd0a bs=36k conv=sync"
1.30      pk        208: .Dl # Ic "eject floppy"
1.25      abs       209: .Pp
1.43      jhawk     210: Note that disk2 may be a symlink to .tgz file; do not uncompress it,
                    211: just follow the instructions above, verbatim.
                    212: After writing the two floppies,
1.42      hubertf   213: be sure to label them so you can later identify them.
1.25      abs       214: .Pp
1.32      lukem     215: Insert the floppy made from
1.33      pk        216: .Pa disk1
1.32      lukem     217: into your Sparc.
                    218: From the OpenBoot prompt, boot the floppy with the following command:
                    219: .Pp
                    220: .(tag OpenBoot\ PROM\ 2\ (alternate) -offset indent -compact
                    221: .It OpenBoot PROM 1
                    222: .Li ok Ic "boot fd(,,1)"
                    223: .It OpenBoot PROM 1 (alternate)
                    224: .Li ok Ic "boot /fd"
                    225: .It OpenBoot PROM 2
                    226: .Li ok Ic "boot floppy"
                    227: .tag)
                    228: .Pp
                    229: After the initial probe messages you'll be asked to insert the floppy
                    230: labeled
1.33      pk        231: .Dq NetBSD disk2 .
1.37      mbw       232: If the floppy is not automatically ejected, you can either use a
                    233: straightened paperclip to eject the disk or do the following:
                    234: .Pp
                    235: Press the
                    236: .Key STOP
                    237: key (sometimes called the
                    238: .Key L1
                    239: key, found on the left side of your keyboard) and the
                    240: .Key a
                    241: key, which will halt your system and give you a PROM prompt.
                    242: .Dl ok Ic "eject"
                    243: .Dl ok Ic "go"
                    244: .Pp
                    245: Now, insert the floppy labeled
                    246: .Li disk2 .
                    247: After the installation tools have been loaded,
                    248: you'll be asked to start the install or upgrade procedure.
1.32      lukem     249: Proceed to the section
1.31      mbw       250: .Sx Running the installation scripts.
1.18      ross      251: below.
                    252: .
1.31      mbw       253: .Ss2 Installing NetBSD by using a netboot setup
1.18      ross      254: .
1.31      mbw       255: First, you must setup a netboot server to provide the services and files
                    256: your client needs. If you are using a
1.26      abs       257: .Nx
1.31      mbw       258: system as the netboot server, have a look at the
1.18      ross      259: .Xr diskless 8
1.31      mbw       260: manual page for a more detailed guide on how to proceed with this.
                    261: If the server runs another operating system, you should consult the
                    262: .Nx
1.32      lukem     263: Diskless HOW-TO, which will walk you through the steps necessary to
1.31      mbw       264: configure a netboot server on a variety of platforms.
                    265: .Lk http://www.netbsd.org/Documentation/network/netboot/
                    266: .Pp
1.32      lukem     267: This section will briefly describe what happens during a Sparc
1.31      mbw       268: netboot, and the next section will give a brief set of directions on how
1.32      lukem     269: to set up your server. Your Sparc initially broadcasts a RARP request, and
                    270: expects a server to reply with your client's IP address.
                    271: Next, it downloads a second stage bootstrap program via TFTP from the server
1.31      mbw       272: that responded to the RARP request. It will look for a filename composed of
1.9       pk        273: the machine's IP address followed by the machine's architecture, separated
                    274: by a period. For example, a sun4c machine which has been assigned IP
1.32      lukem     275: address 130.115.144.11, will make an TFTP request for
                    276: .Pa 8273900B.SUN4C .
1.31      mbw       277: This file is a symbolic link to the second-stage
1.9       pk        278: boot program, which should be located in a place where the TFTP daemon
                    279: can find it (remember, many TFTP daemons run in a chroot'ed environment).
1.31      mbw       280: .Pp
1.32      lukem     281: The boot program to use is
1.31      mbw       282: .Pa installation/netboot/boot.net
1.32      lukem     283: Alternatively, you can find the bootstrap program in
1.18      ross      284: .Pa /usr/mdec/boot.net
1.29      lukem     285: in the
                    286: .Nx*M
                    287: distribution.
1.18      ross      288: .(Note
                    289: The only difference between
1.32      lukem     290: .Pa /usr/mdec/boot.net
                    291: and
                    292: .Pa /usr/mdec/boot
                    293: is in the a.out header, which has been magically transformed in a way that
                    294: makes it usable on all versions of Sparc PROMs.
1.18      ross      295: .Note)
                    296: .Pp
1.11      pk        297: After the boot program has been loaded into memory and given control by
                    298: the PROM, it starts locating the machine's remote root directory through
                    299: the BOOTPARAM protocol. First a BOOTPARAM WHOAMI request is broadcast
1.31      mbw       300: on the local net. The answer to this request should contain
1.11      pk        301: the client's name. This name is used in next step, a BOOTPARAM GETFILE
1.32      lukem     302: request - sent to the server that responded to the WHOAMI request -
1.11      pk        303: requesting the name and address of the machine that will serve the client's
                    304: root directory, as well as the path of the client's root on that server.
1.18      ross      305: .Pp
1.31      mbw       306: Finally, this information is used to issue a REMOTE MOUNT
1.11      pk        307: request to the client's root filesystem server, asking for an NFS file
1.32      lukem     308: handle corresponding to the root filesystem. Once the NFS mount is complete,
                    309: the boot program starts reading from the remote root filesystem in search of
                    310: the kernel which is then read into memory.
1.18      ross      311: .Pp
1.31      mbw       312: .
                    313: .Ss2 Configuring your netboot server
                    314: .
                    315: Follow this section to configure a
                    316: .Nx
1.32      lukem     317: machine as your netboot server.  We will use
                    318: .Sq Li CC:CC:CC:CC:CC:CC
                    319: as the MAC address (ethernet hardware address) of your netboot client
                    320: machine that you wish to install
                    321: .Nx
                    322: on.  We use
                    323: .Sq Li 192.168.1.10
                    324: as the IP address of your client, and
                    325: .Sq Li client.test.net
                    326: as the name.  The server name is
                    327: .Sq Li server.test.net ,
                    328: and the path on the server to the NFS exported directory is
1.31      mbw       329: .Pa /export/client/root
                    330: although you may choose to use a different path.  Create an
                    331: .Pa /etc/ethers
                    332: file with the following line:
1.32      lukem     333: .Pp
1.31      mbw       334: .Dl "CC:CC:CC:CC:CC:CC     client"
1.32      lukem     335: .Pp
1.31      mbw       336: Add your client to the server's
                    337: .Pa /etc/hosts
                    338: file:
1.32      lukem     339: .Pp
1.31      mbw       340: .Dl "192.168.1.10 client"
1.32      lukem     341: .Pp
                    342: If
                    343: .Ic rarpd
                    344: is currently running, restart it (kill -HUP), otherwise start
                    345: .Ic rarpd :
                    346: .Pp
1.31      mbw       347: .Dl # Ic "/usr/sbin/rarpd -a"
1.32      lukem     348: .Pp
1.31      mbw       349: Next, create
                    350: .Pa /etc/bootparams
                    351: with the following line:
1.32      lukem     352: .Pp
1.31      mbw       353: .Dl "client root=server:/export/client/root"
1.32      lukem     354: .Pp
                    355: If
                    356: .Ic rpc.bootparamd
                    357: is currently running, restart it
                    358: .Pq Ic "kill -HUP" ,
                    359: otherwise start
                    360: .Ic rpc.bootparamd :
                    361: .Pp
1.31      mbw       362: .Dl # Ic "/usr/sbin/rpc.bootparamd"
1.32      lukem     363: .Pp
                    364: Now, make sure the bootloader in
1.31      mbw       365: .Pa /tftpboot
1.32      lukem     366: is linked to, or a copy of,
1.31      mbw       367: .Pa boot.net
                    368: and is named appropriately for your client
1.32      lukem     369: (in this case, it would be
                    370: .Pa C0A8010A.SUN4C ) .
                    371: .Pp
1.31      mbw       372: .Dl # Ic "cp boot.net /tftpboot"
                    373: .Dl # Ic "ln -s /tftpboot/boot.net /tftpboot/C0A8010A.SUN4C"
1.32      lukem     374: .Pp
1.31      mbw       375: Now, you should edit
                    376: .Pa /etc/inetd.conf
1.32      lukem     377: and make sure that the line starting with
                    378: .Li tftp
                    379: is uncommented.  You will need to
                    380: .Ic kill -HUP
                    381: the
                    382: .Ic inetd
                    383: process to enable tftp if this line was previously commented out.
                    384: The next step is to set up NFS exports.  Create the directory you are
                    385: exporting for the netboot client:
                    386: .Pp
1.31      mbw       387: .Dl # Ic "mkdir -p /export/client/root"
1.32      lukem     388: .Pp
1.31      mbw       389: Put the following line in
                    390: .Pa /etc/exports
                    391: to enable NFS sharing:
1.32      lukem     392: .Pp
1.31      mbw       393: .Dl "/export/client/root -maproot=root client.test.net"
1.32      lukem     394: .Pp
                    395: If your server is currently running NFS services, you only need to
                    396: .Ic "kill -HUP"
                    397: the
                    398: .Ic mountd
                    399: process.  Otherwise, you need to run:
                    400: .Pp
1.36      wiz       401: .Dl # Ic "/usr/sbin/mountd"
                    402: .Dl # Ic "/usr/sbin/nfsd -tun 4"
1.32      lukem     403: .Pp
1.31      mbw       404: Now, you need to place the files your netboot client will need.
1.18      ross      405: As noted above in the section
1.32      lukem     406: .Sx Preparing your System for NetBSD Installation
1.31      mbw       407: you have several options when choosing a location to store the
1.32      lukem     408: distribution filesets.
                    409: However, the easiest way is to put the distribution
1.31      mbw       410: files into the exported directory for your client on the server.
1.32      lukem     411: .Pp
1.31      mbw       412: .Dl # Ic "mv *.tgz /export/client/root"
1.32      lukem     413: .Pp
                    414: Your client will need a kernel to boot (use
                    415: .Pa binary/kernel/netbsd.GENERIC.gz ) .
                    416: .Pp
1.31      mbw       417: .Dl # Ic "gunzip netbsd.GENERIC.gz"
                    418: .Dl # Ic "mv netbsd.GENERIC /export/client/root/netbsd"
1.32      lukem     419: .Pp
1.31      mbw       420: Your client will need installation tools (use
1.33      pk        421: .Pa installation/netboot/rootfs.tgz ) .
1.32      lukem     422: .Pp
1.44    ! he        423: .Dl # Ic "gunzip \*< rootfs.tgz | (cd /export/client/root && tar -xpf -)"
1.26      abs       424: .Pp
1.32      lukem     425: Now, netboot your Sparc from the server by entering the appropriate
                    426: .Ic boot command at the monitor prompt.
                    427: Depending on the PROM version in your machine, this command takes one
                    428: of the following forms:
                    429: .(tag OpenBoot\ PROM\ 2 -offset indent -compact
                    430: .It sunmon
                    431: .Li \*> Ic "b le()netbsd"
                    432: .It OpenBoot PROM 1
                    433: .Li ok Ic "b le()netbsd"
                    434: .It OpenBoot PROM 2
1.41      mrg       435: .Li ok Ic "boot net netbsd"
1.32      lukem     436: .tag)
                    437: .Pp
                    438: After the initial probe messages you'll be asked to start the
1.31      mbw       439: install or upgrade procedure. Proceed to the section
1.33      pk        440: .Sx Running the installation scripts.
                    441: below.
                    442: .
                    443: .Ss2 Installing NetBSD by using a bootable tape
                    444: .
1.34      mbw       445: Sun sets their tape drives to SCSI ID 4. We recommend you do the same.
                    446: .Pp
1.33      pk        447: Get the tape images
                    448: .Pq Pa installation/tape/tapefile1.gz No and Pa installation/tape/tapefile2
1.34      mbw       449: and transfer them to a tape.  Make sure you use the
                    450: .Sq no rewind scsi tape
                    451: device.  Run the following commands:
1.33      pk        452: .Pp
                    453: .Dl # Ic "gunzip tapefile1.gz"
                    454: .Dl # Ic "mt -f /dev/nrst0 rew"
                    455: .Dl # Ic "dd if=tapefile1 of=/dev/nrst0 bs=4k"
                    456: .Dl # Ic "dd if=tapefile2 of=/dev/nrst0 bs=4k"
                    457: .Pp
                    458: Now you can transfer the
                    459: .Nx \*V.
                    460: distribution sets from
                    461: .Pq Pa binary/sets
                    462: to the tape by using a series of additional
1.44    ! he        463: .Dl # Ic "dd if=\*<aset\*>.tgz of=/dev/nrst0 bs=4k"
1.33      pk        464: commands.  See also the section
                    465: .Sx Getting the NetBSD System on to Useful Media.
                    466: Be sure to mark the location of these files on the tape; you'll need them
                    467: during the installation procedure.
                    468: .Pp
                    469: Insert the tape into your Sparc's tapestation.
1.34      mbw       470: Boot the installer by typing the appropriate command at the PROM prompt:
1.33      pk        471: .Pp
                    472: .(tag OpenBoot\ PROM\ 2\ (alternate) -offset indent -compact
1.34      mbw       473: .It sunmon
1.44    ! he        474: .Li \*> Ic "b st()"
1.34      mbw       475: .It OpenBoot PROM 1
                    476: .Li ok Ic "boot st()"
                    477: .It OpenBoot PROM 2
1.33      pk        478: .Li ok Ic "boot tape"
                    479: .tag)
                    480: .Pp
                    481: After the initial probe messages you'll be asked to confirm the tape
                    482: device and tape file number containing the installation tools.
                    483: Then, proceed to the section
1.31      mbw       484: .Sx Running the installation scripts.
                    485: below.
1.26      abs       486: .
1.31      mbw       487: .Ss2 Running the installation scripts
1.26      abs       488: .
1.35      pk        489: The first thing that the installation scripts will inquire about is the
                    490: type of console you're using on your machine. If you're using a Sun
                    491: frame buffer display, choose the terminal type
                    492: .Ic sun
                    493: .Pq this is presented as the default .
                    494: .(Note
                    495: if your frame buffer device is a cgsix Sbus board, you should
                    496: change the terminal type to
                    497: .Ic sun-cgsix
                    498: to avoid triggering a bug in the board's firmware code that can garble
                    499: your screen.
                    500: .Note)
                    501: .Pp
                    502: If you're using a terminal device connected to a serial port, choose a
                    503: terminal type appropriate for that device, e.g.
                    504: .Ic vt100
                    505: or
                    506: .Ic vt200 .
                    507: .Pp
                    508: Next, you will be presented with a choice of two installation methods:
                    509: a new full-screen
1.32      lukem     510: .Ic sysinst
                    511: program, or the traditional script-based
                    512: .Ic miniroot
                    513: program. The
                    514: .Ic sysinst
                    515: program is easier to use, but the
                    516: .Ic miniroot
                    517: program is more flexible.  Both of these installation methods will follow the
                    518: same set of procedures and will fully install
1.26      abs       519: .Nx
1.32      lukem     520: on your Sparc.
1.18      ross      521: .Pp
1.31      mbw       522: You will frequently be asked for confirmation before the system proceeds
                    523: with each phase of the installation process.
1.18      ross      524: .Pp
                    525: Occasionally, you will have to provide a piece of information such as the
1.31      mbw       526: name of the disk you want to install on, partitioning information,
1.32      lukem     527: or IP addresses and domain names you want to assign. If your system has
                    528: more than one disk, you may want to look at the output of the
1.31      mbw       529: .Xr dmesg 8
1.32      lukem     530: command to see how your disks have been identified by the kernel.
1.31      mbw       531: .(Note
                    532: If you repartition a hard drive, be certain that every partition starts
1.40      wiz       533: on a cylinder boundary for compatibility with the Sparc ROM.
1.31      mbw       534: .Note)
1.18      ross      535: .Pp
1.4       pk        536: The installation script goes through the following phases:
1.29      lukem     537: .(bullet -compact
1.31      mbw       538: determination of the disk on which to install
1.29      lukem     539: .Nx
                    540: .It
1.31      mbw       541: checking/creation of the partition information on the disk
1.29      lukem     542: .It
                    543: creating and mounting the
1.26      abs       544: .Nx
                    545: filesystems
1.29      lukem     546: .It
1.31      mbw       547: setup of network configuration
1.29      lukem     548: .It
                    549: extraction of the distribution tar files
                    550: .It
1.31      mbw       551: installation of bootstrap programs
1.29      lukem     552: .bullet)
1.18      ross      553: .Pp
1.32      lukem     554: Now try a reboot.  Initially we'd suggest you
                    555: .Ic "boot sd()netbsd -bs" ,
                    556: then try multiuser after that. If you boot single-user the
1.26      abs       557: .Nx
                    558: incantation to make the root filesystem writable is
1.18      ross      559: .Pp
1.32      lukem     560: .Dl # Ic "mount -u /dev/sd0a /"
1.18      ross      561: .Pp
1.32      lukem     562: Your PROM might have been setup to instruct the boot program to load
                    563: a file called
                    564: .Pa vmunix .
                    565: On OpenBoot PROM systems you can change it to load
                    566: .Pa netbsd
                    567: instead using the following commands:
                    568: .Pp
                    569: .(tag OpenBoot\ PROM\ 2 -offset indent -compact
                    570: .It OpenBoot PROM 1
                    571: .Li ok Ic setenv boot-from sd(0,0,0)netbsd
                    572: .It OpenBoot PROM 2
                    573: .Li ok Ic setenv boot-file netbsd
                    574: .br
                    575: .Li ok Ic setenv boot-device disk:a
                    576: .tag)
1.18      ross      577: .Pp
                    578: .Em Congratulations ,
1.26      abs       579: you have successfully installed
1.29      lukem     580: .Nx \*V.

CVSweb <webmaster@jp.NetBSD.org>