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