prep revision 1.9 1 1.1 chopps You will need an AmigaDOS hard drive prep tool to prepare you 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.1 chopps 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.1 chopps Note you will be modifying your HD's if you mess something
12 1.1 chopps up here you could lose everything on all the drives that
13 1.1 chopps you configure. It is therefore advised that you:
14 1.1 chopps
15 1.1 chopps Write down your current configurations. Do this
16 1.1 chopps by examining each partition on the drive and the
17 1.1 chopps drives parameters (from Change drive type.)
18 1.1 chopps
19 1.1 chopps Back up the partitions you are keeping.
20 1.1 chopps
21 1.6 is What you need to do is partition your drives; creating at least
22 1.6 is root, swap and /usr partitions and possibly at least one more for
23 1.6 is /local if you have the space. (The root and swap partitions must
24 1.6 is be on the same drive for your initial installation. You can use
25 1.6 is other configurations after building a customized kernel once your
26 1.6 is system is running.)
27 1.1 chopps
28 1.1 chopps This should be done as the HDToolBox manual describes. One thing
29 1.1 chopps to note is that if you are not using a Commodore controller you
30 1.1 chopps will need to specify the device your SCSI controller uses e.g.
31 1.1 chopps if you have a Warp Engine you would:
32 1.1 chopps
33 1.1 chopps from cli,
34 1.1 chopps hdtoolbox warpdrive.device
35 1.1 chopps
36 1.1 chopps from wb set the tooltype,
37 1.1 chopps SCSI_DEVICE_NAME=warpdrive.device
38 1.1 chopps
39 1.1 chopps The important things you need to do above and beyond normal
40 1.1 chopps partitioning includes (from Partition Drive section):
41 1.1 chopps
42 1.9 is Marking all NetBSD partitions as non-bootable, with
43 1.9 is one exception: the root partition, if you want to boot
44 1.9 is NetBSD directly.
45 1.1 chopps
46 1.1 chopps Changing the file system parameters of the partitions
47 1.1 chopps to NetBSD ones. This must be done from the
48 1.1 chopps partitioning section and `Advanced options' must
49 1.1 chopps be enabled. To Make the needed changes:
50 1.1 chopps
51 1.1 chopps - Click the `Adv. Options' button
52 1.7 chopps - Click the `Change file system' button
53 1.1 chopps
54 1.1 chopps - Choose `Custom File System'
55 1.1 chopps - Turn off `Automount' if on.
56 1.1 chopps - Set the dostype to one of these three choices:
57 1.1 chopps
58 1.1 chopps root partition : 0x4e425207
59 1.1 chopps swap partition : 0x4e425301
60 1.1 chopps other partitions: 0x4e425507
61 1.1 chopps
62 1.1 chopps Here `other' refers to other partitions you will
63 1.1 chopps format for reading and writing under NetBSD (e.g.
64 1.1 chopps /usr)
65 1.1 chopps
66 1.1 chopps Make sure you hit the return key to enter this value
67 1.1 chopps as some versions of HDToolBox will forget your entry
68 1.1 chopps if you don't.
69 1.1 chopps
70 1.1 chopps - Turn custom boot code off
71 1.1 chopps - Set Reserved Blocks start and end to 0.
72 1.9 is - Click Ok.
73 1.9 is
74 1.9 is On the root (and, for installation, swap) partition,
75 1.9 is set instead this:
76 1.9 is
77 1.9 is - Turn custom boot code on
78 1.9 is - Set Reserved Blocks start and end to 0.
79 1.9 is - Set Number of Custom Boot Blocks to 16
80 1.9 is - Set Automount This Partition on
81 1.1 chopps - Click Ok.
82 1.1 chopps
83 1.1 chopps Mask and maxtransfer are not used with NetBSD.
84 1.1 chopps
85 1.1 chopps Until you compile your own kernel your swap partition
86 1.1 chopps must exist on the drive that also holds your root
87 1.1 chopps partition.
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.3 jtc Once the hard disk has been prepared for NetBSD, the appropriate
104 1.7 chopps miniroot file system (inst-12.fs for a new install or upgr-12.fs
105 1.3 jtc for an upgrade) is transferred to the swap partition configured
106 1.7 chopps during the hard disk prep (or the existing swap partition in
107 1.3 jtc the case of an upgrade). The xstreamtodev utility provided in
108 1.3 jtc the "amiga/utilities" directory can be used on AmigaDOS to
109 1.7 chopps transfer the file system for either a new installation or an
110 1.7 chopps upgrade. The file system can also be transferred on an existing
111 1.3 jtc NetBSD system for an update by using dd. This should only be
112 1.3 jtc done after booting NetBSD into single-user state. It may also
113 1.3 jtc be possible to shutdown to single-user, providing that the
114 1.3 jtc single-user state processes are not using the swap partition.
115 1.3 jtc
116 1.3 jtc On AmigaDOS, the command:
117 1.7 chopps xstreamtodev --input=inst-12.fs --rdb-name=<swap partition>
118 1.3 jtc where <swap partition> is the name you gave to the NetBSD
119 1.7 chopps partition to be used for swapping. Use upgr-12.fs if you
120 1.3 jtc are going to do an upgrade of an existing NetBSD system. If
121 1.3 jtc xstreamtodev is unable to determine the SCSI driver device
122 1.3 jtc name or the unit number of the specified partition, you may
123 1.5 is also need to include the option "--device=<driver.name>" and/or
124 1.5 is "--unit=<SCSI unit number>".
125 1.3 jtc
126 1.3 jtc To transfer the miniroot using NetBSD, you should be booted up
127 1.3 jtc in single user state on the current NetBSD system, or use the
128 1.7 chopps "shutdown now" command to shutdown to single-user state. Then
129 1.3 jtc copy the miniroot using dd:
130 1.7 chopps dd if=upgr-12.fs of=/dev/rsd0b
131 1.3 jtc where /dev/rsd0b should be the device path of the swap partition
132 1.3 jtc your system is configured to use. Once the file is copied,
133 1.3 jtc reboot back to AmigaDOS to boot the upgrade kernel. NOTE: the
134 1.3 jtc release kernel is a "generic" kernel, and requires that the
135 1.3 jtc swap partition be on the same device as the root partition.
136