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