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