Home | History | Annotate | Line # | Download | only in mac68k
upgrade revision 1.6
      1  1.6  ender <<<<<<< upgrade
      2  1.6  ender The upgrade to NetBSD _VER is a binary upgrade; it would be prohibitive
      3  1.6  ender to make users upgrade by compiling and installing the _VER sources, and
      4  1.6  ender it would be very difficult to even compile a set of instructions that
      5  1.6  ender allowed them to do so.  Because of the many changes to the system, it
      6  1.6  ender is difficult and impractical to upgrade by recompiling from the sources
      7  1.6  ender and installing.
      8  1.6  ender 
      9  1.6  ender There is no upgrade program for upgrading to release _VER for the
     10  1.6  ender NetBSD/mac68k architecture.  The current procedure is basically to perform
     11  1.6  ender a new install from scratch.  It is hoped that there will be a good upgrade
     12  1.6  ender procedure for future releases.  Please feel free to volunteer to help
     13  1.6  ender replace these installation tools.
     14  1.6  ender 
     15  1.6  ender The following steps outline the current upgrade procedure.  These steps
     16  1.6  ender should help ease the upgrade process.  Please read these instructions
     17  1.6  ender carefully and completely before proceeding:
     18  1.6  ender 
     19  1.6  ender 1) Since upgrading involves replacing the kernel and most of the system
     20  1.6  ender    binaries, it has the potential to cause data loss.  You are strongly
     21  1.6  ender    advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the
     22  1.6  ender    NetBSD partition or on another operating system's partition, before
     23  1.6  ender    beginning the upgrade process.  Although the upgrade should not
     24  1.6  ender    damage your filesystem(s) in any way, you never know what may happen.
     25  1.6  ender 
     26  1.6  ender 2) Download the distribution sets you want from the "mac68k/binary/sets"
     27  1.6  ender    subdirectory of the NetBSD _VER distribution.  You will need the base
     28  1.6  ender    set and the kernel at a minimum.  Be sure to download the files in
     29  1.6  ender    _binary_ mode.  If you will be upgrading from within NetBSD, make sure
     30  1.6  ender    that you place the distribution sets on a filesystem you will be able to
     31  1.6  ender    reach from single-user mode.
     32  1.6  ender 
     33  1.6  ender 3) Install the _VER kernel.  You may either use the Installer utility
     34  1.6  ender    (included in the "installation/misc" subdirectory) or install from
     35  1.6  ender    within NetBSD (the latter is recommended for speed reasons).  If you
     36  1.6  ender    choose the former, proceed as you normally would.  If you choose to
     37  1.6  ender    install from within NetBSD, then boot (or shutdown) into single-user
     38  1.6  ender    mode and do the following:
     39  1.6  ender 
     40  1.6  ender      cd /
     41  1.6  ender      tar -zxvpf /path/to/kern.tgz
     42  1.6  ender 
     43  1.6  ender    There is no need to explicitly backup your old kernel since it will be
     44  1.6  ender    incapable of running many of the newer binaries you are about to
     45  1.6  ender    install (unless, of course, you have a backup copy of your older
     46  1.6  ender    binaries and want to revert to them for some reason).
     47  1.6  ender 
     48  1.6  ender 4) If you are installing using the Installer, skip to step 5.  Otherwise,
     49  1.6  ender    reboot into NetBSD in single-user mode.  Run 'fsck -f' and then mount all
     50  1.6  ender    local partitions read/write.  Usually 'mount -a -t nonfs' should do the
     51  1.6  ender    trick, but if you have several partitions on the same disk, take note of
     52  1.6  ender    the fact that a change in partition numbering may have moved a few of
     53  1.6  ender    your partitions around.  You can do a 'disklabel sdX' (where X is a
     54  1.6  ender    drive on which you have NetBSD partitions) to see how the partitions are
     55  1.6  ender    currently layed out.  It is likely that a partition has shifted into
     56  1.6  ender    'sdXe', a slot that was often not available under previous releases of
     57  1.6  ender    NetBSD.  If this is the case, you will need to manually mount your root
     58  1.6  ender    partition  (via 'mount -w /') and edit your /etc/fstab file to reflect
     59  1.6  ender    the new partition layout.  Unless you are familiar with 'ex' or 'ed',
     60  1.6  ender    the easiest way to fix your /etc/fstab file is probably to simply do a
     61  1.6  ender    'cat > /etc/fstab' and type in the corrected file in its entirety. 
     62  1.6  ender 
     63  1.6  ender 5) Install the distribution sets.  Keep in mind that the NetBSD _VER
     64  1.6  ender    distribution takes up a considerably larger amount of disk space than
     65  1.6  ender    did the 1.2 or 1.2.1 distributions.  If you are using the Installer,
     66  1.6  ender    proceed normally (remember that you will need to mount non-root
     67  1.6  ender    partitions by hand using the MiniShell before installing).  If you are
     68  1.6  ender    installing from within NetBSD, do the following:
     69  1.6  ender 
     70  1.6  ender      cd /
     71  1.6  ender      tar --unlink -zxvpf /path/to/base.tgz
     72  1.6  ender 
     73  1.6  ender    It is crucial that you use the '--unlink' flag when invoking tar or you
     74  1.6  ender    will fail to correctly overwrite some files.  Keep in mind that there is
     75  1.6  ender    no going back once you have installed the base set short of a complete
     76  1.6  ender    re-install of an earlier distribution.  Continue with the appropriate
     77  1.6  ender    command line for each of the other sets you wish to install except for
     78  1.6  ender    the etc set.  If you are in the Installer, open up the Minishell and do
     79  1.6  ender    the following:
     80  1.6  ender 
     81  1.6  ender      cd /tmp
     82  1.6  ender      exit
     83  1.6  ender 
     84  1.6  ender    Now, use the Installer to install the etc set (it will install into
     85  1.6  ender    /tmp instead of the /etc/ directory).
     86  1.6  ender 
     87  1.6  ender    If you are in NetBSD, do the following instead:
     88  1.6  ender 
     89  1.6  ender      cd /tmp
     90  1.6  ender      tar --unlink -zxvpf /path/to/etc.tgz
     91  1.6  ender 
     92  1.6  ender 6) If you are in the Installer, quit it and boot into NetBSD in single-user
     93  1.6  ender    mode.  From there, 'cd' to the /tmp/etc directory and compare each file
     94  1.6  ender    there with your old files in /etc.  You will probably want to replace
     95  1.6  ender    some of your system configuration files, or incorporate some of the
     96  1.6  ender    changes in the new versions into yours.  You should take note of the
     97  1.6  ender    following when upgrading to the NetBSD _VER etc.tgz set:
     98  1.6  ender 
     99  1.6  ender    * The first file to pay attention to is /etc/rc.conf.  This file did not
    100  1.6  ender    exist under NetBSD 1.2, but it is used to configure the rc scripts
    101  1.6  ender    under NetBSD _VER.  Edit the file to your preferences, making sure
    102  1.6  ender    that you change the line that says:
    103  1.6  ender 
    104  1.6  ender      rc_configured=NO
    105  1.6  ender 
    106  1.6  ender    to read:
    107  1.6  ender 
    108  1.6  ender      rc_configured=YES
    109  1.6  ender 
    110  1.6  ender    This will enable all of the options you have configured in /etc/rc.conf.
    111  1.6  ender 
    112  1.6  ender    * The next important item to take note of is the new networking
    113  1.6  ender    configuration files.  If you currently have an /etc/hostname.xxN file
    114  1.6  ender    (fill in the xx with either ae or sn and the X with a number), you will
    115  1.6  ender    need to convert it into an ifconfig.xxN file before networking
    116  1.6  ender    automatically works.  The format for the new file is simply the
    117  1.6  ender    arguments which you would give to ifconfig on the command line.  The
    118  1.6  ender    following is an example of the minimal ifconfig.xxN file:
    119  1.6  ender 
    120  1.6  ender      inet hostname.domain.dom netmask 0xffffff00
    121  1.6  ender 
    122  1.6  ender    Read the ifconfig(8) man page for more details on arguments to ifconfig.
    123  1.6  ender    Be sure to set
    124  1.6  ender 
    125  1.6  ender      auto_ifconfig=YES
    126  1.6  ender 
    127  1.6  ender    in /etc/rc.conf to ensure that your network interfaces will be brought
    128  1.6  ender    up automatically on boot.
    129  1.6  ender 
    130  1.6  ender    * Many of the options given to many of the file systems have changed,
    131  1.6  ender    and some of the file systems have changed names.  IT IS IMPERATIVE THAT
    132  1.6  ender    YOU CHANGE ANY INSTANCES OF "ufs" IN /etc/fstab TO "ffs".  To find out
    133  1.6  ender    more about different filesystem options, read the man page for the
    134  1.6  ender    associated mount command (e.g. mount_mfs(8) for MFS filesystems, note:
    135  1.6  ender    FFS type filesystems are documented in the mount(8) man page).  If you
    136  1.6  ender    have not already done so, you may also need to correct /etc/fstab for
    137  1.6  ender    a shift in the partition numbering scheme.  See step (4) above for more
    138  1.6  ender    details.
    139  1.6  ender 
    140  1.6  ender    * You will also probably want to upgrade your device nodes at this time
    141  1.6  ender    as well.  Make sure you have installed the latest MAKEDEV script (it
    142  1.6  ender    should be included in the etc set) and perform the following commands:
    143  1.6  ender 
    144  1.6  ender      cd /dev
    145  1.6  ender      sh MAKEDEV all
    146  1.6  ender 
    147  1.6  ender 
    148  1.6  ender 7) A number of binaries have changed their locations from NetBSD 1.2.1 to
    149  1.6  ender    NetBSD _VER (most of these have moved from /sbin to /usr/sbin).  A few
    150  1.6  ender    binaries have been removed.  It is probably best if you scan the
    151  1.6  ender    modification dates of the files in the /sbin directory.  If there are
    152  1.6  ender    files in the directory which have newer counterparts in the /usr/sbin
    153  1.6  ender    directory, it is a very good idea to remove the older files (you will
    154  1.6  ender    probably run into difficulties later if you choose not to do this). 
    155  1.6  ender    You should also check the /sbin, /bin, /usr/bin/, and /usr/sbin
    156  1.6  ender    directories for old binaries that are no longer part of the NetBSD
    157  1.6  ender    distribution and delete them as well.  In general, all the files in a
    158  1.6  ender    particular distribution should have similar modification dates, so
    159  1.6  ender    looking at these is a good way of determining a file's age.
    160  1.6  ender 
    161  1.6  ender 8) Run 'fsck -f' to make sure that your filesystem is still consistent.  If
    162  1.6  ender    fsck reports any errors, fix them by answering 'y' to its suggested
    163  1.6  ender    solutions (note: if there are a large number of errors, you may wish
    164  1.6  ender    to stop and run 'fsck -fy' to automatically answer "yes" instead).
    165  1.6  ender 
    166  1.6  ender 9) Exit from single-user mode and it should continue to boot into
    167  1.6  ender    multi-user mode.
    168  1.6  ender 
    169  1.6  ender At this point you have successfully upgraded to NetBSD _VER.
    170  1.6  ender ||||||| 1.4
    171  1.6  ender There is no upgrade to release _VER for the NetBSD/mac68k architecture.
    172  1.6  ender It is hoped that there will be a good upgrade procedure for future
    173  1.6  ender releases.  Please feel free to volunteer to help replace these
    174  1.6  ender installation tools.
    175  1.6  ender =======
    176  1.5  ender The upgrade to NetBSD _VER is a binary upgrade; it would be prohibitive
    177  1.5  ender to make users upgrade by compiling and installing the _VER sources, and
    178  1.5  ender it would be very difficult to even compile a set of instructions that
    179  1.5  ender allowed them to do so.  Because of the many changes to the system, it
    180  1.5  ender is difficult and impractical to upgrade by recompiling from the sources
    181  1.5  ender and installing.
    182  1.5  ender 
    183  1.5  ender There is no upgrade program for upgrading to release _VER for the
    184  1.5  ender NetBSD/mac68k architecture.  The current procedure is basically to perform
    185  1.5  ender a new install from scratch.  It is hoped that there will be a good upgrade
    186  1.5  ender procedure for future releases.  Please feel free to volunteer to help
    187  1.5  ender replace these installation tools.
    188  1.5  ender 
    189  1.5  ender The following steps outline the current upgrade procedure.  These steps
    190  1.5  ender should help ease the upgrade process.  Please read these instructions
    191  1.5  ender carefully and completely before proceeding:
    192  1.5  ender 
    193  1.5  ender 1) Since upgrading involves replacing the kernel and most of the system
    194  1.5  ender    binaries, it has the potential to cause data loss.  You are strongly
    195  1.5  ender    advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the
    196  1.5  ender    NetBSD partition or on another operating system's partition, before
    197  1.5  ender    beginning the upgrade process.  Although the upgrade should not
    198  1.5  ender    damage your filesystem(s) in any way, you never know what may happen.
    199  1.5  ender 
    200  1.5  ender 2) Download the distribution sets you want from the "mac68k/binaries"
    201  1.5  ender    subdirectory of the NetBSD _VER distribution.  You will need the base
    202  1.5  ender    set and the kernel at a minimum.  Be sure to download the files in
    203  1.5  ender    _binary_ mode.  If you will be upgrading from within NetBSD, make sure
    204  1.5  ender    that you place the distribution sets on a filesystem you will be able to
    205  1.5  ender    reach from single-user mode.
    206  1.5  ender 
    207  1.5  ender 3) Install the _VER kernel.  You may either use the Installer utility
    208  1.5  ender    (included in the utils subdirectory) or install from within
    209  1.5  ender    NetBSD (the latter is recommended for speed reasons).  If you choose
    210  1.5  ender    the former, proceed as you normally would.  If you choose to install from
    211  1.5  ender    within NetBSD, then boot (or shutdown) into single-user mode and do the
    212  1.5  ender    following:
    213  1.5  ender 
    214  1.5  ender      cd /
    215  1.5  ender      tar -zxvpf netbsd13  (substitute the full path to archive here)
    216  1.5  ender 
    217  1.5  ender    There is no need to explicitly backup your old kernel since it will be
    218  1.5  ender    incapable of running many the newer binaries you are about to install.
    219  1.5  ender 
    220  1.5  ender 4) If you are installing using the Installer, skip to step 5.  Otherwise,
    221  1.5  ender    reboot into NetBSD in single-user mode.  Run 'fsck -f' and then mount all
    222  1.5  ender    local partitions read/write.  Usually 'mount -a -t nonfs' should do the
    223  1.5  ender    trick, but if you have several partitions on the same disk, take note of
    224  1.5  ender    the fact that a change in partition numbering may have moved a few of
    225  1.5  ender    your partitions around.  You can do a 'disklabel sdX' (where X is a
    226  1.5  ender    drive on which you have NetBSD partitions) to see how the partitions are
    227  1.5  ender    currently layed out.  It is likely that a partition has shifted into
    228  1.5  ender    'sdXd', a slot that was not available under previous releases of NetBSD.
    229  1.5  ender    If this is the case, you will need to manually mount your root partition
    230  1.5  ender    (via 'mount -w /') and edit your /etc/fstab file to reflect the new
    231  1.5  ender    partition layout.  Unless you are familiar with 'ex', the easiest way to
    232  1.5  ender    fix your /etc/fstab file is probably to simply do a 'cat > /etc/fstab'
    233  1.5  ender    and type in the corrected file in its entirety. 
    234  1.5  ender 
    235  1.5  ender 5) Install the distribution sets.  Keep in mind that the NetBSD _VER
    236  1.5  ender    distribution takes up a considerable amount more of disk space than did
    237  1.5  ender    the 1.2 or 1.2.1 distributions.  If you are using the Installer, proceed
    238  1.5  ender    normally (remember that you will need to mount non-root partitions by
    239  1.5  ender    hand using the MiniShell before installing).  If you are installing from
    240  1.5  ender    with NetBSD, do the following:
    241  1.5  ender 
    242  1.5  ender      cd /
    243  1.5  ender      tar --unlink -zxvpf base13 (substitute the full path to the archive here)
    244  1.5  ender 
    245  1.5  ender    It is crucial that you use the '--unlink' flag when invoking tar or you
    246  1.5  ender    will fail to correctly overwrite some files.  Keep in mind that there is
    247  1.5  ender    no going back once you have installed the base set short of a complete
    248  1.5  ender    reinstall of an earlier distribution.  Continue with the appropriate
    249  1.5  ender    command line for each of the other packages you have installed except for
    250  1.5  ender    the etc package.  If you are in the Installer, open up the Minishell and
    251  1.5  ender    do the following:
    252  1.5  ender 
    253  1.5  ender      cd /tmp
    254  1.5  ender      exit
    255  1.5  ender 
    256  1.5  ender    Now, use the Installer to install the etc package (it will install into
    257  1.5  ender    /tmp instead of the /etc/ directory).
    258  1.5  ender 
    259  1.5  ender    If you are in NetBSD, do the following instead:
    260  1.5  ender 
    261  1.5  ender      cd /tmp
    262  1.5  ender      tar --unlink -zxvpf etc13 (substitute the full path to the archive here)
    263  1.5  ender 
    264  1.5  ender 6) If you are in the Installer, quit it and boot into NetBSD in single-user
    265  1.5  ender    mode.  From there, 'cd' to the /tmp/etc directory and compare each file
    266  1.5  ender    there with your old files in /etc.  You will probably want to replace
    267  1.5  ender    some of your system configuration files, or incorporate some of the
    268  1.5  ender    changes in the new versions into yours.  You should take note of the
    269  1.5  ender    following when upgrading to the etc13 set:
    270  1.5  ender 
    271  1.5  ender    * The first file to pay attention to is /etc/rc.conf.  This file did not
    272  1.5  ender    exist under NetBSD 1.2, but it is used to configure the rc scripts
    273  1.5  ender    under NetBSD _VER.  Edit the file to your preferences, making sure that
    274  1.5  ender    you change the line that says:
    275  1.5  ender 
    276  1.5  ender      rc_configured=NO
    277  1.5  ender 
    278  1.5  ender    to read:
    279  1.5  ender 
    280  1.5  ender      rc_configured=YES
    281  1.5  ender 
    282  1.5  ender    This will enable all of the options you have configured in /etc/rc.conf.
    283  1.5  ender 
    284  1.5  ender    * The next important item to take note of is the new networking
    285  1.5  ender    configuration files.  If you currently have an /etc/hostname.xxN file
    286  1.5  ender    (fill in the xxN with either ae0 or sn0), you will need to convert it
    287  1.5  ender    into an ifconfig.xxN file before networking automatically works.  The
    288  1.5  ender    format for the new file is simply the arguments which you would give
    289  1.5  ender    to ifconfig on the command line.  The following is an example of the
    290  1.5  ender    minimal ifconfig.xxN file:
    291  1.5  ender 
    292  1.5  ender      inet hostname.domain.dom netmask 0xffffff00
    293  1.5  ender 
    294  1.5  ender    Read the ifconfig(8) man page for more details on arguments to ifconfig.
    295  1.5  ender    Be sure to set
    296  1.5  ender 
    297  1.5  ender      auto_ifconfig=YES
    298  1.5  ender 
    299  1.5  ender    in /etc/rc.conf to ensure that your network interfaces will be brought
    300  1.5  ender    up automatically on boot.
    301  1.5  ender 
    302  1.5  ender    * Many of the options given to many of the file systems have changed,
    303  1.5  ender    and some of the file systems have changed names.  IT IS IMPERATIVE THAT
    304  1.5  ender    YOU CHANGE ANY INSTANCES OF "ufs" IN /etc/fstab TO "ffs".  To find out
    305  1.5  ender    more about different filesystem options, read the man page for the
    306  1.5  ender    associated mount command (e.g. mount_mfs(8) for MFS filesystems, note:
    307  1.5  ender    FFS type filesystems are documented in the mount(8) man page).  If you
    308  1.5  ender    have not already done so, you may also need to correct /etc/fstab for
    309  1.5  ender    a shift in the partition numbering scheme.  See step (4) above for more
    310  1.5  ender    details.
    311  1.5  ender 
    312  1.5  ender    * You will also probably want to upgrade your device nodes at this time
    313  1.5  ender    as well.  Make sure you have installed the latest MAKEDEV script (it
    314  1.5  ender    should be included in the etc set) and perform the following commands:
    315  1.5  ender 
    316  1.5  ender      cd /dev
    317  1.5  ender      sh MAKEDEV all
    318  1.5  ender 
    319  1.5  ender 
    320  1.5  ender 7) A number of binaries have changed their locations from NetBSD 1.2.1 to
    321  1.5  ender    NetBSD _VER (most of these have moved from /sbin to /usr/sbin).  A few
    322  1.5  ender    binaries have been removed.  It is probably best if you scan the
    323  1.5  ender    modification dates of the files in the /sbin directory.  If there are
    324  1.5  ender    files in the directory which have newer counterparts in the /usr/sbin
    325  1.5  ender    directory, it is a very good idea to remove the older files (you will
    326  1.5  ender    probably run into difficulties later if you choose not to do this). 
    327  1.5  ender    You should also check the /sbin, /bin, /usr/bin/, and /usr/sbin
    328  1.5  ender    directories for old binaries that are no longer part of the NetBSD
    329  1.5  ender    distribution and delete them as well.  In general, all the files in a
    330  1.5  ender    particular distribution should have similar modification dates, so
    331  1.5  ender    looking at these is a good way of determining a file's age.
    332  1.5  ender 
    333  1.5  ender 8) Run 'fsck -f' to make sure that your filesystem is still consistent.  If
    334  1.5  ender    fsck reports any errors, fix them by answering 'y' to its suggested
    335  1.5  ender    solutions (note: if there are a large number of errors, you may wish
    336  1.5  ender    to stop and run 'fsck -fy' to automatically answer "yes" instead).
    337  1.5  ender 
    338  1.5  ender 9) Exit from single-user mode and it should continue to boot into
    339  1.5  ender    multi-user mode.
    340  1.5  ender 
    341  1.5  ender At this point you have successfully upgraded to NetBSD _VER.
    342  1.6  ender >>>>>>> 1.5
    343