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