Home | History | Annotate | Line # | Download | only in amiga
prep revision 1.12
      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 	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 	/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 
     42 	The important things you need to do above and beyond normal
     43 	partitioning includes (from Partition Drive section):
     44 
     45 		Marking all NetBSD partitions as non-bootable, with
     46 		one exception: the root partition, if you want to boot
     47 		NetBSD directly, or the swap partition, if you want
     48 		the to boot the installation miniroot directly.
     49 
     50 		Changing the file system parameters of the partitions
     51 		to NetBSD ones.  This must be done from the
     52 		partitioning section and `Advanced options' must
     53 		be enabled.  To Make the needed changes:
     54 
     55 		- Click the `Adv. Options' button
     56 		- Click the `Change file system' button
     57 
     58 		- Choose `Custom File System'
     59 		- Turn off `Automount' if on.
     60 		- Set the dostype to one of these three choices:
     61 
     62 			root partition  : 0x4e425207
     63 			swap partition  : 0x4e425301
     64 			other partitions: 0x4e425507
     65 
     66 		Here `other' refers to other partitions you will
     67 		format for reading and writing under NetBSD (e.g.
     68 		/usr)
     69 
     70 		Make sure you hit the return key to enter this value
     71 		as some versions of HDToolBox will forget your entry
     72 		if you don't.
     73 
     74 		- Turn custom boot code off
     75 		- Set Reserved Blocks start and end to 0.
     76 		- Click Ok.
     77 
     78 		On the root (and, for installation, swap) partition,
     79 		set instead this:
     80 
     81 		- Turn custom boot code on
     82 		- Set Reserved Blocks start and end to 0.
     83 		- Set Number of Custom Boot Blocks to 16
     84 		- Set Automount This Partition on
     85 		- Click Ok.
     86 
     87 		Mask and maxtransfer are not used with NetBSD.
     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 miniroot
    104 	file system (miniroot.fs) is transferred to the swap
    105 	partition configured during the hard disk prep (or the existing
    106 	swap partition in the case of an upgrade).  The xstreamtodev
    107 	utility provided in the "amiga/utilities" directory can be used
    108 	on AmigaDOS to transfer the file system for either a new
    109 	installation or an upgrade.  The file system can also be
    110 	transferred on an existing NetBSD system for an update by
    111 	using dd.  This should only be done after booting NetBSD
    112 	into single-user state.  It may also be possible to shutdown
    113 	to single-user, providing that the single-user state processes
    114 	are not using the swap partition.
    115 
    116 	On AmigaDOS, the command:
    117 		xstreamtodev --input=miniroot.fs --rdb-name=<swap partition>
    118 	where <swap partition> is the name you gave to the NetBSD
    119 	partition to be used for swapping.  If xstreamtodev is unable
    120 	to determine the SCSI driver device name or the unit number
    121 	of the specified partition, you may also need to include the
    122 	option "--device=<driver.name>" and/or "--unit=<SCSI unit number>".
    123 
    124 	To transfer the miniroot using NetBSD, you should be booted up
    125 	in single user state on the current NetBSD system, or use the
    126 	"shutdown now" command to shutdown to single-user state.  Then
    127 	copy the miniroot using dd:
    128 		dd if=miniroot.fs of=/dev/rsd0b
    129 	where /dev/rsd0b should be the device path of the swap partition
    130 	your system is configured to use.  Once the file is copied,
    131 	reboot back to AmigaDOS to boot the upgrade kernel.
    132