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