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