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