Home | History | Annotate | Line # | Download | only in hp300
prep revision 1.6
      1  1.6    perry 	$NetBSD: prep,v 1.6 1998/01/09 18:46:20 perry Exp $	
      2  1.6    perry 
      3  1.2  thorpej Currently, only installing the miniroot from the network is supported.
      4  1.2  thorpej This may change in a future release.
      5  1.1    glass 
      6  1.2  thorpej You will need information about your disk's geometry, based on 512-byte
      7  1.2  thorpej sectors.  You must have this information before proceeding.  The
      8  1.4   scottr file `.../installation/misc/HP-IB.geometry' has geometry inforomation for
      9  1.4   scottr several HP-IB disks, but may be incomplete.  Geometry may be calculated
     10  1.4   scottr from an HP-UX `/etc/disktab' entry, but note that HP-UX geometry is based
     11  1.4   scottr on 1024 byte sectors, while NetBSD's is based on 512 byte sectors.
     12  1.2  thorpej 
     13  1.2  thorpej QUICK NOTE ABOUT PARTITIONS:  Since the target disk will become the boot
     14  1.2  thorpej disk for your new NetBSD/hp300 installation, you will need to treat the
     15  1.2  thorpej `a' and `c' partitions in a special manner.  Due to the size of the
     16  1.2  thorpej NetBSD/hp300 boot program (it spills into the area after the disklabel),
     17  1.2  thorpej it is necessary to offset the `a' partition one cylinder from the beginning
     18  1.2  thorpej of the disk.  Later, the `c' partition will be marked with the type
     19  1.2  thorpej `FS_BOOT' and may not be used for a filesystem.  (For those unfamiliar
     20  1.2  thorpej with historic BSD partition conventions, the `c' partition is defined
     21  1.2  thorpej as `the entire disk', or the `raw partition'.)
     22  1.2  thorpej 
     23  1.2  thorpej A QUICK NOTE ABOUT DISK NUMBERS:  While in the SYS_INST program, you
     24  1.2  thorpej may use different unit numbers for the disks than when the NetBSD
     25  1.2  thorpej kernel is running.  The unit number for a disk while in SYS_INST is
     26  1.2  thorpej calculated with the following formula:
     27  1.2  thorpej 
     28  1.2  thorpej 	unit = (controller * 8) + slave
     29  1.2  thorpej 
     30  1.2  thorpej Controllers are numbered 0, 1, ... starting with the lowest select code.
     31  1.2  thorpej SCSI controllers and HP-IB controllers are counted separately.  Therefore,
     32  1.2  thorpej if you had a system with an internal HP-IB interface at select code 7,
     33  1.2  thorpej a fast HP-IB interface at select code 14, and a SCSI interface at select
     34  1.2  thorpej code 16, unit numers might be something like the following:
     35  1.2  thorpej 
     36  1.2  thorpej 	Location			Unit
     37  1.2  thorpej 	--------			----
     38  1.2  thorpej 	HP-IB at 7, slave 2		2	(disk: rd2)
     39  1.2  thorpej 	HP-IB at 14, slave 5		13	(disk: rd13)
     40  1.2  thorpej 	SCSI at 16, slave 0		0	(disk: sd0)
     41  1.2  thorpej 
     42  1.2  thorpej 
     43  1.2  thorpej                    Miniroot installation via network
     44  1.2  thorpej 	           ---------------------------------
     45  1.3      jtc NOTE:  BOOTING SYS_INST VIA THE NETWORK ON EARLY HP300 MODELS IS ONLY
     46  1.3      jtc POSSIBLE IF YOUR BOOTROM IS `REV. C' OR LATER.  When checking the
     47  1.3      jtc revision of your BOOTROM, use what it printed on the console during
     48  1.3      jtc the self-test, not what may be printed on a sticker on the chip itself.
     49  1.2  thorpej 
     50  1.2  thorpej In order to complete this process, you will need the following from the
     51  1.4   scottr `.../installation/misc' directory of the distribution:
     52  1.2  thorpej 
     53  1.4   scottr 	SYS_INST.gz		The standalone disklabel and miniroot
     54  1.4   scottr 				installation tool. This file must be
     55  1.4   scottr 				un-gzipped before using.
     56  1.2  thorpej 
     57  1.4   scottr And the following from the `.../installation/miniroot' directory of
     58  1.4   scottr of the distribution:
     59  1.4   scottr 
     60  1.4   scottr 	miniroot.fs.gz		A miniroot filesystem image.
     61  1.2  thorpej 
     62  1.2  thorpej To boot SYS_INST via the network, you will need a system capable of handling
     63  1.2  thorpej boot requests for an HP workstation.  If you will use this method, see the
     64  1.2  thorpej special note below.
     65  1.2  thorpej 
     66  1.2  thorpej To boot SYS_INST from tape, you need only place SYS_INST on the tape as
     67  1.2  thorpej the first file.
     68  1.2  thorpej 
     69  1.2  thorpej -- The following section is specific for loading SYS_INST via the network. --
     70  1.2  thorpej 
     71  1.2  thorpej If you wish to load the SYS_INST program via the network, you may need
     72  1.4   scottr the following from the `.../installation/misc' directory in addition to the
     73  1.4   scottr items listed above:
     74  1.2  thorpej 
     75  1.4   scottr 	rbootd.tgz	Source code for the rbootd program included with
     76  1.4   scottr 			NetBSD.  It requires that the server has a
     77  1.2  thorpej 			Berkeley Packet Filter (bpf).  You will need to
     78  1.2  thorpej 			compile this version of rbootd if your server
     79  1.2  thorpej 			system does not have this utility already.
     80  1.2  thorpej 
     81  1.2  thorpej First of all, configure your rbootd to handle boot requests from the
     82  1.2  thorpej client.  NOTE: NetBSD's `rbootd' is slightly different from HP-UX's.
     83  1.2  thorpej To configure NetBSD's `rbootd', create a file called `/etc/rbootd.conf'
     84  1.2  thorpej and place in it an entry like the following:
     85  1.2  thorpej 
     86  1.2  thorpej 	08:00:09:04:AA:33	SYS_INST	# thunder-egg
     87  1.2  thorpej 
     88  1.2  thorpej The first column is the ethernet address of the client's network interface.
     89  1.2  thorpej The second column is the program to send to the client, and anything after
     90  1.2  thorpej the `#' is a comment.  Once you have rbootd running, copy the SYS_INST
     91  1.2  thorpej program to the /usr/mdec/rbootd directory on your server.  If this
     92  1.2  thorpej directory doesn't exist already, you will need to create it.
     93  1.2  thorpej 
     94  1.2  thorpej For information on configuring rbootd under HP-UX, see the rbootd(1M)
     95  1.2  thorpej manual page on your server system.
     96  1.2  thorpej 
     97  1.2  thorpej Once `rbootd' is configured and running, you will be ready to continue.
     98  1.2  thorpej 
     99  1.2  thorpej ------------------ End of network boot-specific section ----------------------
    100  1.2  thorpej 
    101  1.2  thorpej Make sure that the miniroot filesystem image has been un-gzipped, and
    102  1.2  thorpej that it resides in a filesystem what is exported to the client.  See the
    103  1.2  thorpej manual pages on your server system if you need more information about
    104  1.2  thorpej exporting filesystems.
    105  1.2  thorpej 
    106  1.2  thorpej You are now ready to SYS_INST.  During the client's self-test cycle, press
    107  1.2  thorpej the space bar a few times.  Shortly, you should see a menu of possible boot
    108  1.2  thorpej options appear.  Select the option corresponding to SYS_INST.  SYS_INST will
    109  1.2  thorpej load and prompt you for a command.
    110  1.2  thorpej 
    111  1.2  thorpej If this is a new NetBSD installation, you will need to place a disklabel
    112  1.2  thorpej on the disk.
    113  1.2  thorpej 
    114  1.2  thorpej 	sys_inst> disklabel
    115  1.2  thorpej 
    116  1.2  thorpej NOTE: it may be worth selecting the `zap' option initially to ensure that
    117  1.2  thorpej the disklabel area is clear.  This may be especially important if an
    118  1.2  thorpej HP-UX boot block had been previously installed on the disk.
    119  1.2  thorpej 
    120  1.2  thorpej Select the `edit' option, and answer the questions about your disk.
    121  1.2  thorpej There may be several questions which you may not be sure of the answers
    122  1.2  thorpej to.  Listed below are guidelines for SCSI and HP-IB disks:
    123  1.2  thorpej 
    124  1.2  thorpej 	Bad sectoring?		NO
    125  1.2  thorpej 	Ecc?			NO
    126  1.2  thorpej 	Interleave?		1
    127  1.2  thorpej 	Trackskew?		0
    128  1.2  thorpej 	Cylinderskew?		0
    129  1.2  thorpej 	Headswitch?		0
    130  1.2  thorpej 	Track-to-track?		0
    131  1.2  thorpej 	Drivedata 0-4?		0 (for all Drivedata values)
    132  1.2  thorpej 
    133  1.2  thorpej Next, you will be asked to fill out the partition map.  You must provide
    134  1.2  thorpej responses for all 8 partitions.  Remember, you must allocate at least 6M
    135  1.2  thorpej for the `b' partition, or else the miniroot will not fit.  Set the size and
    136  1.2  thorpej offset of any unused partition to 0.  Note that sizes and offsets are
    137  1.2  thorpej expressed in `n sectors', assuming 512 byte sectors.  Care should be taken
    138  1.2  thorpej to ensure that partitions begin and end on cylinder boundaries (i.e. size
    139  1.2  thorpej and offset is an even multiple of the number of sectors per cylinder).
    140  1.5   scottr While this is not technically necessary, it is generally encouraged.
    141  1.5   scottr 
    142  1.5   scottr NOTE: When setting the partition type of the `b' partition, make sure to
    143  1.5   scottr specify it as an `ffs' partition so that the miniroot can be mounted (even
    144  1.5   scottr if this will be a swap partition).  You will be given a chance to clean
    145  1.5   scottr this up later in the installation process.
    146  1.2  thorpej 
    147  1.2  thorpej Once you have edited the label, select the `show' option to verify that
    148  1.2  thorpej it is correct.  If so, select `write' and `done'.  Otherwise, you may
    149  1.2  thorpej re-edit the label.
    150  1.2  thorpej 
    151  1.2  thorpej The next step is to copy the miniroot image onto the target disk.
    152  1.2  thorpej 
    153  1.2  thorpej 	sys_inst> miniroot
    154  1.2  thorpej 
    155  1.2  thorpej You will be prompted for the target disk and the source of the miniroot
    156  1.2  thorpej filesytem image.
    157  1.2  thorpej 
    158  1.2  thorpej Enter the filename of the miniroot image.  Note that this file _must_ reside
    159  1.2  thorpej in the server directory being mounted.  Next you will be asked for the
    160  1.2  thorpej client's IP address, netmask, and default router, the server's IP address,
    161  1.2  thorpej and the directory on the server to mount.  Once you have entered this
    162  1.2  thorpej information, SYS_INST will attempt to mount the NFS server and begin copying
    163  1.2  thorpej the miniroot filesystem to the `b' partition of the target disk.
    164  1.2  thorpej 
    165  1.2  thorpej Is is worth noting that this copy may take a while.  It might be worth
    166  1.2  thorpej grabbing a cup of coffee at this point.
    167  1.2  thorpej 
    168  1.2  thorpej Once the miniroot filesystem image has been copied onto the target disk,
    169  1.2  thorpej you may boot from the miniroot filesystem.
    170  1.2  thorpej 
    171  1.2  thorpej 	sys_inst> boot
    172  1.2  thorpej 
    173  1.2  thorpej Enter the disk from which to boot.  The kernel in the miniroot filesystem
    174  1.2  thorpej will be booted into single-user mode.
    175