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