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