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