prep revision 1.1 1 1.1 glass NOTE: These instructions are explicitly for installing NetBSD
2 1.1 glass from an HP-UX system, version 7 or later. It has not been
3 1.1 glass tested with HP-UX versions earlier than 7, and has also not
4 1.1 glass been tested with HP-UX 8, although it is presumed to work.
5 1.1 glass For the creative, similar steps may be taken from a system such
6 1.1 glass as Utah's 4.3BSD release for the hp300, although bootstrapping
7 1.1 glass from such a system has not been tested.
8 1.1 glass
9 1.1 glass Bootstrapping the hp300 is a complicated process, but it's a lot
10 1.1 glass easier than it used to be. For this process you need the
11 1.1 glass following items from the install/ directory:
12 1.1 glass
13 1.1 glass boot NetBSD/hp300 boot block for
14 1.1 glass HP-IB and SCSI disks
15 1.1 glass
16 1.1 glass rootimage.gz bootstrap root filesystem
17 1.1 glass image
18 1.1 glass
19 1.1 glass label prototype disk label
20 1.1 glass
21 1.1 glass makedisk a program for HP-UX that will
22 1.1 glass write a NetBSD disk label,
23 1.1 glass boot block, and root filesystem
24 1.1 glass image to the target disk
25 1.1 glass (NOTE: This is an HP-UX 7.x binary.
26 1.1 glass while it will work under HP-UX 9.x,
27 1.1 glass you may want to compile this yourself.
28 1.1 glass The source may be found in makedisk.tar.gz)
29 1.1 glass
30 1.1 glass VERY IMPORTANT NOTE: This procedure will destroy all data on the
31 1.1 glass target disk. Because NetBSD uses a different filesystem format than
32 1.1 glass HP-UX, your old data will be useless. If you wish to save anything,
33 1.1 glass use tar(1) instead of dump(1M), again because of filesystem differences.
34 1.1 glass
35 1.1 glass First of all, you must have a second disk on which to install NetBSD.
36 1.1 glass If possible, this disk should first be prepared with mediainit(1M).
37 1.1 glass Once this disk is spotless, you should generate a disk label for it.
38 1.1 glass Using the prototype label provided, fill in all of the necessary
39 1.1 glass information. Remember, if you derive geometry information from an
40 1.1 glass HP-UX disktab, your partition size will be off. This is because HP-UX
41 1.1 glass uses a 1024-byte sector size, while NetBSD uses a 512-byte sector size.
42 1.1 glass To avoid the problem, you may simply double the number of cylinders.
43 1.1 glass (That's what I do...works great. -- JRT)
44 1.1 glass
45 1.1 glass IMPORTANT: Partition 'a' must be offset one cylinder. Since
46 1.1 glass partition information is expressed in sectors, the offset of
47 1.1 glass partition 'a' must be the value of `sectors/cylinder'. This is
48 1.1 glass to leave room for the boot block.
49 1.1 glass
50 1.1 glass When you create your disklabel, be sure to specify whether or not
51 1.1 glass the disk is HP-IB or SCSI in the `type:' field.
52 1.1 glass
53 1.1 glass Below is an example of what a disk label should look like. This
54 1.1 glass is an example only! Do not attempt this at home!
55 1.1 glass
56 1.1 glass
58 1.1 glass
59 1.1 glass # Sample disklabel for example only. This is a comment.
60 1.1 glass type: HP-IB
61 1.1 glass disk:
62 1.1 glass label: INSTALL-1_0
63 1.1 glass flags:
64 1.1 glass bytes/sector: 512
65 1.1 glass sectors/track: 36
66 1.1 glass tracks/cylinder: 7
67 1.1 glass sectors/cylinder: 252
68 1.1 glass cylinders: 1013
69 1.1 glass rpm: 3600
70 1.1 glass interleave: 1
71 1.1 glass trackskew: 0
72 1.1 glass cylinderskew: 0
73 1.1 glass headswitch: 0 # milliseconds
74 1.1 glass track-to-track seek: 0 # milliseconds
75 1.1 glass drivedata: 0
76 1.1 glass
77 1.1 glass 7 partitions:
78 1.1 glass # size offset fstype [fsize bsize cpg]
79 1.1 glass a: 30744 252 4.2BSD 1024 8192 16 # (Cyl. 1 - 122)
80 1.1 glass b: 32760 30996 swap # (Cyl. 123 - 252)
81 1.1 glass c: 255276 0 boot # (Cyl. 0 - 1012)
82 1.1 glass e: 20412 63756 4.2BSD 1024 4096 16 # (Cyl. 253 - 333)
83 1.1 glass f: 40824 84168 4.2BSD 1024 8192 16 # (Cyl. 334 - 495)
84 1.1 glass g: 130284 124992 4.2BSD 1024 8192 16 # (Cyl. 496 - 1012)
85 1.1 glass
86 1.1 glass NOTE: Due to the nature of the bootstrapping procedure, your 'a'
87 1.1 glass partition must be at least 30744 sectors long. Increase the size of
88 1.1 glass your 'a' partition just enough to make it end on a cylinder boundary.
89 1.1 glass If you make it any larger, you will just be wasting space, as the
90 1.1 glass filesystem ends after 30744 sectors.
91 1.1 glass
92 1.1 glass Remember to write down the names of the partitions and what you
93 1.1 glass will be using them for (i.e. 'a - root, b - swap, e - /usr, etc.')
94 1.1 glass as you will need this information later on in the installation
95 1.1 glass process.
96 1.1 glass
97 1.1 glass Once you are satisfied with your disklabel, you can write the
98 1.1 glass root filesystem image to the target disk. Use the `makedisk'
99 1.1 glass program for this. So, under HP-UX, do:
100 1.1 glass
101 1.1 glass ./makedisk /dev/rdsk/c7d0s0 mylabel boot rootimage.gz
102 1.1 glass
103 1.1 glass where:
104 1.1 glass /dev/rdsk/c7d0s0 raw flavor of target disk device
105 1.1 glass
106 1.1 glass mylabel disk label you just wrote
107 1.1 glass
108 1.1 glass boot supplied boot block
109 1.1 glass
110 1.1 glass rootimage.gz gzipped root filesystem image
111 1.1 glass NOTE: This requires that gzip be
112 1.1 glass installed on your HP-UX system.
113 1.1 glass If it is not, a gzip binary is
114 1.1 glass provided in the install/ directory.
115 1.1 glass Source for gzip may be found in the
116 1.1 glass gsrc10 distribution set. Again, this
117 1.1 glass gzip is an HP-UX 7.x binary.
118 1.1 glass
119 1.1 glass If you wish to label any additional disks, you will have to do this
120 1.1 glass from NetBSD, although you will not have an editor at your disposal.
121 1.1 glass To do this, simply generate the labels now, and then grab them at
122 1.1 glass the same time and by the same method you use to grab the distrubtion
123 1.1 glass sets.
124 1.1 glass
125 1.1 glass Once this is done, you should be ready to boot NetBSD from the target
126 disk.
127