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