prep revision 1.9.2.3 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.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.1 chopps 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.1 mellon /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.1 chopps 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
57 1.1 chopps - Choose `Custom File System'
58 1.1 chopps - Turn off `Automount' if on.
59 1.1 chopps - Set the dostype to one of these three choices:
60 1.1 chopps
61 1.1 chopps root partition : 0x4e425207
62 1.1 chopps swap partition : 0x4e425301
63 1.1 chopps other partitions: 0x4e425507
64 1.1 chopps
65 1.1 chopps Here `other' refers to other partitions you will
66 1.1 chopps format for reading and writing under NetBSD (e.g.
67 1.1 chopps /usr)
68 1.1 chopps
69 1.1 chopps Make sure you hit the return key to enter this value
70 1.1 chopps as some versions of HDToolBox will forget your entry
71 1.1 chopps if you don't.
72 1.1 chopps
73 1.1 chopps - Turn custom boot code off
74 1.1 chopps - Set Reserved Blocks start and end to 0.
75 1.9 is - Click Ok.
76 1.9 is
77 1.9 is On the root (and, for installation, swap) partition,
78 1.9 is set instead this:
79 1.9 is
80 1.9 is - Turn custom boot code on
81 1.9 is - Set Reserved Blocks start and end to 0.
82 1.9 is - Set Number of Custom Boot Blocks to 16
83 1.9 is - Set Automount This Partition on
84 1.1 chopps - Click Ok.
85 1.1 chopps
86 1.1 chopps Mask and maxtransfer are not used with NetBSD.
87 1.1 chopps
88 1.1 chopps
89 1.7 chopps Once this is done NetBSD/Amiga will be able to recognize your
90 1.1 chopps disks and which partitions it should use.
91 1.2 chopps
92 1.7 chopps Transferring the miniroot file system:
93 1.3 jtc
94 1.7 chopps The NetBSD/Amiga installation or upgrade now uses a "miniroot"
95 1.8 is file system which is installed on the partition used by NetBSD
96 1.3 jtc for swapping. This removes the requirement of using a floppy
97 1.7 chopps disk for the file system used by the installation or upgrade
98 1.3 jtc process. It also allows more utilities to be present on the
99 1.7 chopps file system than would be available when using an 880K floppy
100 1.3 jtc disk.
101 1.3 jtc
102 1.9.2.1 mellon Once the hard disk has been prepared for NetBSD, the miniroot
103 1.9.2.2 veego file system (miniroot.fs) is transferred to the swap
104 1.9.2.1 mellon partition configured during the hard disk prep (or the existing
105 1.9.2.1 mellon swap partition in the case of an upgrade). The xstreamtodev
106 1.9.2.1 mellon utility provided in the "amiga/utilities" directory can be used
107 1.9.2.1 mellon on AmigaDOS to transfer the file system for either a new
108 1.9.2.1 mellon installation or an upgrade. The file system can also be
109 1.9.2.1 mellon transferred on an existing NetBSD system for an update by
110 1.9.2.1 mellon using dd. This should only be done after booting NetBSD
111 1.9.2.1 mellon into single-user state. It may also be possible to shutdown
112 1.9.2.1 mellon to single-user, providing that the single-user state processes
113 1.9.2.1 mellon are not using the swap partition.
114 1.3 jtc
115 1.3 jtc On AmigaDOS, the command:
116 1.9.2.2 veego xstreamtodev --input=miniroot.fs --rdb-name=<swap partition>
117 1.3 jtc where <swap partition> is the name you gave to the NetBSD
118 1.9.2.1 mellon partition to be used for swapping. If xstreamtodev is unable
119 1.9.2.1 mellon to determine the SCSI driver device name or the unit number
120 1.9.2.1 mellon of the specified partition, you may also need to include the
121 1.9.2.1 mellon option "--device=<driver.name>" and/or "--unit=<SCSI unit number>".
122 1.3 jtc
123 1.3 jtc To transfer the miniroot using NetBSD, you should be booted up
124 1.3 jtc in single user state on the current NetBSD system, or use the
125 1.7 chopps "shutdown now" command to shutdown to single-user state. Then
126 1.3 jtc copy the miniroot using dd:
127 1.9.2.2 veego dd if=miniroot.fs of=/dev/rsd0b
128 1.3 jtc where /dev/rsd0b should be the device path of the swap partition
129 1.3 jtc your system is configured to use. Once the file is copied,
130 1.9.2.1 mellon reboot back to AmigaDOS to boot the upgrade kernel.
131