prep revision 1.6 1 1.1 chopps You will need an AmigaDOS hard drive prep tool to prepare you hard
2 1.1 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.1 chopps Marking all NetBSD partitions as non-bootable.
43 1.1 chopps
44 1.1 chopps Changing the file system parameters of the partitions
45 1.1 chopps to NetBSD ones. This must be done from the
46 1.1 chopps partitioning section and `Advanced options' must
47 1.1 chopps be enabled. To Make the needed changes:
48 1.1 chopps
49 1.1 chopps - Click the `Adv. Options' button
50 1.1 chopps - Click the `Change filesystem' button
51 1.1 chopps
52 1.1 chopps - Choose `Custom File System'
53 1.1 chopps - Turn off `Automount' if on.
54 1.1 chopps - Set the dostype to one of these three choices:
55 1.1 chopps
56 1.1 chopps root partition : 0x4e425207
57 1.1 chopps swap partition : 0x4e425301
58 1.1 chopps other partitions: 0x4e425507
59 1.1 chopps
60 1.1 chopps Here `other' refers to other partitions you will
61 1.1 chopps format for reading and writing under NetBSD (e.g.
62 1.1 chopps /usr)
63 1.1 chopps
64 1.1 chopps Make sure you hit the return key to enter this value
65 1.1 chopps as some versions of HDToolBox will forget your entry
66 1.1 chopps if you don't.
67 1.1 chopps
68 1.1 chopps - Turn custom boot code off
69 1.1 chopps - Set Reserved Blocks start and end to 0.
70 1.1 chopps - Click Ok.
71 1.1 chopps
72 1.1 chopps Mask and maxtransfer are not used with NetBSD.
73 1.1 chopps
74 1.1 chopps Until you compile your own kernel your swap partition
75 1.1 chopps must exist on the drive that also holds your root
76 1.1 chopps partition.
77 1.1 chopps
78 1.1 chopps
79 1.1 chopps Once this is done NetBSD/amiga will be able to recognize your
80 1.1 chopps disks and which partitions it should use.
81 1.2 chopps
82 1.3 jtc Transferring the miniroot filesystem:
83 1.3 jtc
84 1.3 jtc The NetBSD/amiga installation or upgrade now uses a "miniroot"
85 1.3 jtc fileystem which is installed on the partition used by NetBSD
86 1.3 jtc for swapping. This removes the requirement of using a floppy
87 1.3 jtc disk for the filesystem used by the installation or upgrade
88 1.3 jtc process. It also allows more utilities to be present on the
89 1.3 jtc filesystem than would be available when using an 880K floppy
90 1.3 jtc disk.
91 1.3 jtc
92 1.3 jtc Once the hard disk has been prepared for NetBSD, the appropriate
93 1.3 jtc miniroot filesystem (inst-11.fs for a new install or upgr-11.fs
94 1.3 jtc for an upgrade) is transferred to the swap partition configured
95 1.3 jtc during the hard disk prep (or the existing swap parition in
96 1.3 jtc the case of an upgrade). The xstreamtodev utility provided in
97 1.3 jtc the "amiga/utilities" directory can be used on AmigaDOS to
98 1.3 jtc transfer the filesystem for either a new installation or an
99 1.3 jtc upgrade. The filesystem can also be transferred on an existing
100 1.3 jtc NetBSD system for an update by using dd. This should only be
101 1.3 jtc done after booting NetBSD into single-user state. It may also
102 1.3 jtc be possible to shutdown to single-user, providing that the
103 1.3 jtc single-user state processes are not using the swap partition.
104 1.3 jtc
105 1.3 jtc On AmigaDOS, the command:
106 1.5 is xstreamtodev --input=inst-11.fs --rdb-name=<swap partition>
107 1.3 jtc where <swap partition> is the name you gave to the NetBSD
108 1.3 jtc partition to be used for swapping. Use upgr-11.fs if you
109 1.3 jtc are going to do an upgrade of an existing NetBSD system. If
110 1.3 jtc xstreamtodev is unable to determine the SCSI driver device
111 1.3 jtc name or the unit number of the specified partition, you may
112 1.5 is also need to include the option "--device=<driver.name>" and/or
113 1.5 is "--unit=<SCSI unit number>".
114 1.3 jtc
115 1.3 jtc To transfer the miniroot using NetBSD, you should be booted up
116 1.3 jtc in single user state on the current NetBSD system, or use the
117 1.3 jtc "shutdown now" command to shutdown to single-uyser state. Then
118 1.3 jtc copy the miniroot using dd:
119 1.3 jtc dd if=upgr-11.fs of=/dev/rsd0b
120 1.3 jtc where /dev/rsd0b should be the device path of the swap partition
121 1.3 jtc your system is configured to use. Once the file is copied,
122 1.3 jtc reboot back to AmigaDOS to boot the upgrade kernel. NOTE: the
123 1.3 jtc release kernel is a "generic" kernel, and requires that the
124 1.3 jtc swap partition be on the same device as the root partition.
125