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