Home | History | Annotate | Line # | Download | only in amiga
upgrade revision 1.7.2.6
      1  1.7.2.6  mycroft 	$NetBSD: upgrade,v 1.7.2.6 1998/05/29 03:39:17 mycroft Exp $	
      2  1.7.2.4   mellon 
      3  1.7.2.5  mycroft The upgrade to NetBSD _VER is a binary upgrade; it can be quite difficult
      4  1.7.2.5  mycroft to advance to a later version by recompiling from source due primarily
      5  1.7.2.6  mycroft to interdependencies in the various components.
      6      1.2   chopps 
      7      1.3      jtc To do the upgrade, you must have the NetBSD kernel on AmigaDOS and
      8  1.7.2.2    veego you must transfer the miniroot file system miniroot.fs onto the swap
      9      1.3      jtc partition of the NetBSD hard disk.  You must also have at least the
     10  1.7.2.2    veego "base" binary distribution set available, so that you can upgrade
     11      1.3      jtc with it, using one of the upgrade methods described above.  Finally,
     12      1.3      jtc you must have sufficient disk space available to install the new
     13      1.3      jtc binaries.  Since the old binaries are being overwritten in place,
     14      1.3      jtc you only need space for the new binaries, which weren't previously
     15      1.3      jtc on the system.  If you have a few megabytes free on each of your
     16      1.3      jtc root and /usr partitions, you should have enough space.
     17      1.2   chopps 
     18      1.2   chopps Since upgrading involves replacing the kernel, and most of the system
     19      1.2   chopps binaries, it has the potential to cause data loss.  You are strongly
     20      1.2   chopps advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the
     21      1.2   chopps NetBSD partition or on another operating system's partition, before
     22      1.2   chopps beginning the upgrade process.
     23      1.2   chopps 
     24      1.2   chopps To upgrade your system, follow the following instructions:
     25      1.2   chopps 
     26  1.7.2.1   mellon 	Transfer the miniroot file system onto the hard disk partition
     27  1.7.2.1   mellon 	used by NetBSD for swapping, as described in the "Preparing
     28  1.7.2.1   mellon 	your System for NetBSD Installation" section above.
     29      1.3      jtc 
     30  1.7.2.1   mellon 	Now boot up NetBSD using the _VER kernel using the loadbsd
     31      1.3      jtc 	command:
     32      1.3      jtc 
     33      1.3      jtc 		loadbsd -b netbsd
     34      1.3      jtc 
     35      1.5      jtc 	If you machine has a split memory space, like, e.g., DraCo
     36      1.4   chopps 	machines, use this instead:
     37      1.4   chopps 
     38      1.4   chopps 		loadbsd -bn2 netbsd
     39      1.4   chopps 
     40      1.6       is 	* Directly booting NetBSD, with boot blocks installed:
     41      1.6       is 
     42  1.7.2.2    veego 	[This description is for V40 (OS 3.1) ROMs. For older ROMs,
     43      1.6       is 	there might be small differences. Check your AmigaOS documentation
     44      1.6       is 	to learn about the exact procedure.]
     45      1.6       is 
     46  1.7.2.1   mellon [XXX another note about bootblock support?]
     47  1.7.2.1   mellon 
     48      1.6       is 	Reboot your machine, holding down both mouse buttons if you
     49      1.6       is 	have a 2-button mouse, the outer mouse buttons if you have
     50      1.6       is 	a 3-button mouse. On the DraCo, press the left mouse button
     51      1.6       is 	instead, when the boot screen prompts you for it.
     52      1.6       is 
     53      1.6       is 	From the boot menu, select "Boot Options".
     54      1.6       is 	Select the swap partition with the miniroot, and then "ok".
     55      1.6       is 	Select "Boot" now. The machine will boot the bootblock, which
     56      1.6       is 	will prompt your for a command line. You have a few seconds time
     57      1.6       is 	to change the default. Entering an empty line will accept the
     58      1.6       is 	default.
     59      1.6       is 
     60      1.6       is 	The bootblock uses command lines of the form:
     61      1.6       is 
     62      1.6       is 	file options
     63      1.6       is 
     64      1.6       is 	where file is the kernel file name on the partition where the
     65      1.6       is 	boot block is on, and options are the same as with loadbsd.
     66      1.6       is 	E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2".
     67      1.6       is 
     68      1.6       is 	* Once your kernel boots:
     69      1.6       is 
     70      1.3      jtc 	You should see the screen clear and some information about
     71      1.3      jtc 	your system as the kernel configures the hardware.  Note which
     72      1.3      jtc 	hard disk device is configured that contains your root and
     73      1.3      jtc 	swap partition.  When prompted for the root device, type
     74      1.7       is 	'sd0b' (replacing 0 with the disk number that NetBSD used for
     75  1.7.2.4   mellon 	your root/swap device).  When prompted for a dump device,
     76  1.7.2.4   mellon 	answer 'none' for the upgrade. (For a normal boot, you would
     77  1.7.2.4   mellon 	tell it one of the swap devices). When prompted for the root
     78  1.7.2.4   mellon 	filesystem type, confirm 'generic', which will auto-detect it.
     79      1.2   chopps 
     80      1.2   chopps 	You will be presented with some information about the upgrade
     81      1.2   chopps 	process and a warning message, and will be asked if you wish
     82      1.2   chopps 	to proceed with the upgrade process.  If you answer
     83      1.2   chopps 	negatively, the upgrade process will stop, and your disk will
     84      1.2   chopps 	not be modified.  If you answer affirmatively, the upgrade
     85      1.2   chopps 	process will begin, and your disk will be modified.  You may
     86      1.2   chopps 	hit Control-C to stop the upgrade process at any time.
     87      1.2   chopps 	However, if you hit it at an inopportune moment, your system
     88      1.2   chopps 	may be left in an inconsistent (and possibly unusable) state.
     89      1.2   chopps 
     90  1.7.2.1   mellon 	You will now be greeted and reminded of the fact that this is a
     91  1.7.2.1   mellon 	potential dangerous procedure and that you should not upgrade the
     92  1.7.2.1   mellon 	etc-set.
     93  1.7.2.1   mellon 
     94  1.7.2.1   mellon 	When you decide to proceed, you will be prompted to enter
     95  1.7.2.1   mellon 	your root disk. After you've done this, it will be checked
     96  1.7.2.1   mellon 	automatically to make sure that the filesystem is in a sane
     97  1.7.2.1   mellon 	state before making any modifications. After this is done,
     98  1.7.2.1   mellon 	you will be asked if you want to configure your network.
     99  1.7.2.1   mellon 
    100  1.7.2.1   mellon 	You are now allowed to edit your fstab. Normally you don't have
    101  1.7.2.1   mellon 	to. Note that the upgrade-kit uses it's own copy of the fstab.
    102  1.7.2.1   mellon 	Whatever you do here *won't* affect your actual fstab.
    103  1.7.2.1   mellon 	After you are satisfied with your fstab, the upgrade-kit will check
    104  1.7.2.1   mellon 	all filesystems mentioned in it. When they're ok, they will be
    105  1.7.2.1   mellon 	mounted.
    106  1.7.2.1   mellon 
    107  1.7.2.1   mellon 	You will now be asked if your sets are stored on a normally
    108  1.7.2.1   mellon 	mounted filesystem. You should answer 'y' to this question if
    109  1.7.2.1   mellon 	you have the sets stored on a filesystem that was present in
    110  1.7.2.1   mellon 	the fstab. The actions you should take for the set extraction
    111  1.7.2.1   mellon 	are pretty logical (I think).
    112  1.7.2.1   mellon 
    113  1.7.2.1   mellon 	After you have extracted the sets, the upgrade kit will proceed
    114  1.7.2.1   mellon 	with setting the timezone and installing the kernel and bootcode.
    115  1.7.2.1   mellon 	This is all exactly the same as described in the installation
    116  1.7.2.1   mellon 	section.
    117      1.2   chopps 
    118  1.7.2.1   mellon Your system has now been upgraded to NetBSD _VER.
    119      1.2   chopps 
    120      1.4   chopps 	After a new kernel has been copied to your hard disk, your
    121  1.7.2.1   mellon 	machine is a complete NetBSD _VER system.  However, that
    122      1.2   chopps 	doesn't mean that you're finished with the upgrade process.
    123      1.2   chopps 	There are several things that you should do, or might have to
    124      1.2   chopps 	do, to insure that the system works properly.
    125      1.2   chopps 
    126  1.7.2.2    veego 	You will probably want to get the etc distribution,
    127  1.7.2.3    perry 	extract it, and compare its contents with those in your /etc
    128      1.2   chopps 	directory.  You will probably want to replace some of your
    129      1.2   chopps 	system configuration files, or incorporate some of the changes
    130      1.2   chopps 	in the new versions into yours.
    131      1.2   chopps 
    132  1.7.2.1   mellon 	You will want to delete old binaries that were part
    133      1.2   chopps 	of the version of NetBSD that you upgraded from and have since
    134      1.4   chopps 	been removed from the NetBSD distribution.  If upgrading from
    135      1.4   chopps 	a NetBSD version older than 1.0, you might also want to
    136      1.4   chopps 	recompile any locally-built binaries, to take advantage of the
    137      1.4   chopps 	shared libraries.  (Note that any new binaries that you build
    138      1.4   chopps 	will be dynamically linked, and therefore take advantage of
    139      1.4   chopps 	the shared libraries, by default.  For information on how to
    140      1.4   chopps 	make statically linked binaries, see the cc(1) and ld(1)
    141      1.4   chopps 	manual pages.)
    142