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