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