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