prep revision 1.9.2.5 1 1.9.2.4 perry You will need an AmigaDOS hard drive prep tool to prepare your hard
2 1.7 chopps drives for use with NetBSD/Amiga. HDToolBox is provided with the
3 1.1 chopps system software and on floppy installation disks since Release 2.0
4 1.9.2.4 perry of AmigaDOS, so we will provide instructions for its use.
5 1.1 chopps
6 1.1 chopps Preparing you hard disk with HDToolBox:
7 1.1 chopps
8 1.1 chopps A full explanation of HDToolBox can be found with your
9 1.1 chopps AmigaDOS manuals and is beyond the scope of this document.
10 1.1 chopps
11 1.9.2.3 mellon The first time you partition a drive, you need to set its drive
12 1.9.2.3 mellon type so that you have working geometry parameters. To do this
13 1.9.2.3 mellon you enter the "Change drive type" menu, and either use "read
14 1.9.2.3 mellon parameters from drive" or set them manually.
15 1.9.2.3 mellon
16 1.9.2.4 perry Note you will be modifying your HD's. If you mess something
17 1.1 chopps up here you could lose everything on all the drives that
18 1.1 chopps you configure. It is therefore advised that you:
19 1.1 chopps
20 1.1 chopps Write down your current configurations. Do this
21 1.1 chopps by examining each partition on the drive and the
22 1.1 chopps drives parameters (from Change drive type.)
23 1.1 chopps
24 1.1 chopps Back up the partitions you are keeping.
25 1.1 chopps
26 1.6 is What you need to do is partition your drives; creating at least
27 1.6 is root, swap and /usr partitions and possibly at least one more for
28 1.9.2.4 perry /usr/local if you have the space.
29 1.1 chopps
30 1.1 chopps This should be done as the HDToolBox manual describes. One thing
31 1.1 chopps to note is that if you are not using a Commodore controller you
32 1.9.2.4 perry will need to specify the device your SCSI controller uses, e.g.
33 1.1 chopps if you have a Warp Engine you would:
34 1.1 chopps
35 1.1 chopps from cli,
36 1.1 chopps hdtoolbox warpdrive.device
37 1.1 chopps
38 1.1 chopps from wb set the tooltype,
39 1.1 chopps SCSI_DEVICE_NAME=warpdrive.device
40 1.1 chopps
41 1.1 chopps The important things you need to do above and beyond normal
42 1.1 chopps partitioning includes (from Partition Drive section):
43 1.1 chopps
44 1.9 is Marking all NetBSD partitions as non-bootable, with
45 1.9.2.3 mellon two exceptions: the root partition, if you want to boot
46 1.9.2.3 mellon NetBSD directly, or the swap partition, if you want
47 1.9.2.3 mellon to boot the installation miniroot directly.
48 1.1 chopps
49 1.1 chopps Changing the file system parameters of the partitions
50 1.1 chopps to NetBSD ones. This must be done from the
51 1.1 chopps partitioning section and `Advanced options' must
52 1.1 chopps be enabled. To Make the needed changes:
53 1.1 chopps
54 1.1 chopps - Click the `Adv. Options' button
55 1.7 chopps - Click the `Change file system' button
56 1.1 chopps - Choose `Custom File System'
57 1.1 chopps - Turn off `Automount' if on.
58 1.1 chopps - Set the dostype to one of these three choices:
59 1.1 chopps
60 1.1 chopps root partition : 0x4e425207
61 1.1 chopps swap partition : 0x4e425301
62 1.1 chopps other partitions: 0x4e425507
63 1.1 chopps
64 1.1 chopps Here `other' refers to other partitions you will
65 1.1 chopps format for reading and writing under NetBSD (e.g.
66 1.1 chopps /usr)
67 1.1 chopps
68 1.1 chopps Make sure you hit the return key to enter this value
69 1.1 chopps as some versions of HDToolBox will forget your entry
70 1.1 chopps if you don't.
71 1.1 chopps
72 1.1 chopps - Turn custom boot code off
73 1.1 chopps - Set Reserved Blocks start and end to 0.
74 1.9 is - Click Ok.
75 1.9 is
76 1.9 is On the root (and, for installation, swap) partition,
77 1.9 is set instead this:
78 1.9 is
79 1.9 is - Turn custom boot code on
80 1.9 is - Set Reserved Blocks start and end to 0.
81 1.9 is - Set Number of Custom Boot Blocks to 16
82 1.9 is - Set Automount This Partition on
83 1.1 chopps - Click Ok.
84 1.1 chopps
85 1.1 chopps Mask and maxtransfer are not used with NetBSD.
86 1.1 chopps
87 1.1 chopps
88 1.7 chopps Once this is done NetBSD/Amiga will be able to recognize your
89 1.1 chopps disks and which partitions it should use.
90 1.2 chopps
91 1.7 chopps Transferring the miniroot file system:
92 1.3 jtc
93 1.7 chopps The NetBSD/Amiga installation or upgrade now uses a "miniroot"
94 1.8 is file system which is installed on the partition used by NetBSD
95 1.3 jtc for swapping. This removes the requirement of using a floppy
96 1.7 chopps disk for the file system used by the installation or upgrade
97 1.3 jtc process. It also allows more utilities to be present on the
98 1.7 chopps file system than would be available when using an 880K floppy
99 1.3 jtc disk.
100 1.3 jtc
101 1.9.2.1 mellon Once the hard disk has been prepared for NetBSD, the miniroot
102 1.9.2.2 veego file system (miniroot.fs) is transferred to the swap
103 1.9.2.1 mellon partition configured during the hard disk prep (or the existing
104 1.9.2.1 mellon swap partition in the case of an upgrade). The xstreamtodev
105 1.9.2.4 perry utility provided in the "amiga/installation/misc" directory can
106 1.9.2.4 perry be used on AmigaDOS to transfer the file system for either a new
107 1.9.2.1 mellon installation or an upgrade. The file system can also be
108 1.9.2.1 mellon transferred on an existing NetBSD system for an update by
109 1.9.2.1 mellon using dd. This should only be done after booting NetBSD
110 1.9.2.1 mellon into single-user state. It may also be possible to shutdown
111 1.9.2.1 mellon to single-user, providing that the single-user state processes
112 1.9.2.1 mellon are not using the swap partition.
113 1.3 jtc
114 1.3 jtc On AmigaDOS, the command:
115 1.9.2.2 veego xstreamtodev --input=miniroot.fs --rdb-name=<swap partition>
116 1.3 jtc where <swap partition> is the name you gave to the NetBSD
117 1.9.2.1 mellon partition to be used for swapping. If xstreamtodev is unable
118 1.9.2.1 mellon to determine the SCSI driver device name or the unit number
119 1.9.2.1 mellon of the specified partition, you may also need to include the
120 1.9.2.1 mellon option "--device=<driver.name>" and/or "--unit=<SCSI unit number>".
121 1.3 jtc
122 1.3 jtc To transfer the miniroot using NetBSD, you should be booted up
123 1.3 jtc in single user state on the current NetBSD system, or use the
124 1.7 chopps "shutdown now" command to shutdown to single-user state. Then
125 1.3 jtc copy the miniroot using dd:
126 1.9.2.2 veego dd if=miniroot.fs of=/dev/rsd0b
127 1.3 jtc where /dev/rsd0b should be the device path of the swap partition
128 1.3 jtc your system is configured to use. Once the file is copied,
129 1.9.2.1 mellon reboot back to AmigaDOS to boot the upgrade kernel.
130 1.9.2.5 cgd
131 1.9.2.5 cgd CAVEAT: Once you have started installation once, whenever you abort it
132 1.9.2.5 cgd and want to retry, you must reinstall the miniroot.fs on the swap
133 1.9.2.5 cgd partition.
134