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