prep revision 1.11 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.10 mhitch /local if you have the space.
24 1.1 chopps
25 1.1 chopps This should be done as the HDToolBox manual describes. One thing
26 1.1 chopps to note is that if you are not using a Commodore controller you
27 1.1 chopps will need to specify the device your SCSI controller uses e.g.
28 1.1 chopps if you have a Warp Engine you would:
29 1.1 chopps
30 1.1 chopps from cli,
31 1.1 chopps hdtoolbox warpdrive.device
32 1.1 chopps
33 1.1 chopps from wb set the tooltype,
34 1.1 chopps SCSI_DEVICE_NAME=warpdrive.device
35 1.1 chopps
36 1.1 chopps The important things you need to do above and beyond normal
37 1.1 chopps partitioning includes (from Partition Drive section):
38 1.1 chopps
39 1.9 is Marking all NetBSD partitions as non-bootable, with
40 1.9 is one exception: the root partition, if you want to boot
41 1.9 is NetBSD directly.
42 1.1 chopps
43 1.1 chopps Changing the file system parameters of the partitions
44 1.1 chopps to NetBSD ones. This must be done from the
45 1.1 chopps partitioning section and `Advanced options' must
46 1.1 chopps be enabled. To Make the needed changes:
47 1.1 chopps
48 1.1 chopps - Click the `Adv. Options' button
49 1.7 chopps - Click the `Change file system' button
50 1.1 chopps
51 1.1 chopps - Choose `Custom File System'
52 1.1 chopps - Turn off `Automount' if on.
53 1.1 chopps - Set the dostype to one of these three choices:
54 1.1 chopps
55 1.1 chopps root partition : 0x4e425207
56 1.1 chopps swap partition : 0x4e425301
57 1.1 chopps other partitions: 0x4e425507
58 1.1 chopps
59 1.1 chopps Here `other' refers to other partitions you will
60 1.1 chopps format for reading and writing under NetBSD (e.g.
61 1.1 chopps /usr)
62 1.1 chopps
63 1.1 chopps Make sure you hit the return key to enter this value
64 1.1 chopps as some versions of HDToolBox will forget your entry
65 1.1 chopps if you don't.
66 1.1 chopps
67 1.1 chopps - Turn custom boot code off
68 1.1 chopps - Set Reserved Blocks start and end to 0.
69 1.9 is - Click Ok.
70 1.9 is
71 1.9 is On the root (and, for installation, swap) partition,
72 1.9 is set instead this:
73 1.9 is
74 1.9 is - Turn custom boot code on
75 1.9 is - Set Reserved Blocks start and end to 0.
76 1.9 is - Set Number of Custom Boot Blocks to 16
77 1.9 is - Set Automount This Partition on
78 1.1 chopps - Click Ok.
79 1.1 chopps
80 1.1 chopps Mask and maxtransfer are not used with NetBSD.
81 1.1 chopps
82 1.1 chopps
83 1.7 chopps Once this is done NetBSD/Amiga will be able to recognize your
84 1.1 chopps disks and which partitions it should use.
85 1.2 chopps
86 1.7 chopps Transferring the miniroot file system:
87 1.3 jtc
88 1.7 chopps The NetBSD/Amiga installation or upgrade now uses a "miniroot"
89 1.8 is file system which is installed on the partition used by NetBSD
90 1.3 jtc for swapping. This removes the requirement of using a floppy
91 1.7 chopps disk for the file system used by the installation or upgrade
92 1.3 jtc process. It also allows more utilities to be present on the
93 1.7 chopps file system than would be available when using an 880K floppy
94 1.3 jtc disk.
95 1.3 jtc
96 1.10 mhitch Once the hard disk has been prepared for NetBSD, the miniroot
97 1.11 veego file system (miniroot.fs) is transferred to the swap
98 1.10 mhitch partition configured during the hard disk prep (or the existing
99 1.10 mhitch swap partition in the case of an upgrade). The xstreamtodev
100 1.10 mhitch utility provided in the "amiga/utilities" directory can be used
101 1.10 mhitch on AmigaDOS to transfer the file system for either a new
102 1.10 mhitch installation or an upgrade. The file system can also be
103 1.10 mhitch transferred on an existing NetBSD system for an update by
104 1.10 mhitch using dd. This should only be done after booting NetBSD
105 1.10 mhitch into single-user state. It may also be possible to shutdown
106 1.10 mhitch to single-user, providing that the single-user state processes
107 1.10 mhitch are not using the swap partition.
108 1.3 jtc
109 1.3 jtc On AmigaDOS, the command:
110 1.11 veego xstreamtodev --input=miniroot.fs --rdb-name=<swap partition>
111 1.3 jtc where <swap partition> is the name you gave to the NetBSD
112 1.10 mhitch partition to be used for swapping. If xstreamtodev is unable
113 1.10 mhitch to determine the SCSI driver device name or the unit number
114 1.10 mhitch of the specified partition, you may also need to include the
115 1.10 mhitch option "--device=<driver.name>" and/or "--unit=<SCSI unit number>".
116 1.3 jtc
117 1.3 jtc To transfer the miniroot using NetBSD, you should be booted up
118 1.3 jtc in single user state on the current NetBSD system, or use the
119 1.7 chopps "shutdown now" command to shutdown to single-user state. Then
120 1.3 jtc copy the miniroot using dd:
121 1.11 veego dd if=miniroot.fs of=/dev/rsd0b
122 1.3 jtc where /dev/rsd0b should be the device path of the swap partition
123 1.3 jtc your system is configured to use. Once the file is copied,
124 1.10 mhitch reboot back to AmigaDOS to boot the upgrade kernel.
125