INSTALLATION NOTES for NetBSD/i386 1.2 Be sure to read _ALL_ of this document before you try to install NetBSD/i386. What is NetBSD? ---- -- ------ The NetBSD Operating System is a fully functional UN*X-like system derrived from the Berkeley Networking Release 2 (Net/2), 4.4BSD-Lite, and 4.4BSD-Lite2 sources. NetBSD runs on many architectures and is being ported to more. NetBSD is a creation of the members of the Internet community. Without the unique cooperation and coordination the net makes possible, it's likely that this release wouldn't have come about. The current release has built upon the successful NetBSD 1.1 release by integrating many bug fixes, adding new and updated kernel subsystems, and adding various userland enhancements. The results of these improvements is a stable operating system fit for production use and ready for the next phase of development. Significant changes include: Continuing the multi-platform tradition, the integration of the DEC Alpha port has been completed, and new ports to ARM and x68k have been added. NetBSD/sparc now supports 4m machines. NetBSD/amiga now supports the DraCo. Standard C Prototypes have been added to the Kernel. Kernel NTP (Network Time Protocol) phased lock loop support has been added. See http://www.eecis.udel.edu/~ntp/ for more details. The PINT (PINT is not TWAIN) SCSI scanner driver interface has been integrated. See http://www.dol-esa.gov/~kstailey/pint for more details. A new SCSI medium changer driver and the `chio' program used to operate it has been added. The NFS subsystem now supports NFSv3. Several performance enhancements have been made to the networking subsystem. GCC, Libg++, and many other third party programs have been upgraded to more recent versions. Kernel interfaces have continued to be refined, and more subsystems and device drivers are shared among the different ports. You can look for this trend to continue. NetBSD 1.2 also includes some refinement to the NetBSD binary emulation system (which includes FreeBSD, HP-UX, iBCS2, Linux, OSF/1, SunOS, SVR4, Solaris and Ultrix compatibility), bringing NetBSD closer to the goal of making the emulation as accurate as possible. For the i386, NetBSD 1.2 brings a number of new device drivers, many bug fixes, improvements in Linux emulation (including support for sound) and the other emulations (SVR4, IBCS2, FreeBSD), and enhancements to a number of existing device drivers such as the "ahc" driver for Adaptec AHC-2X4X and AIC-7XXX-based SCSI host adapters and the "bt" driver for Bus Logic SCSI host adapters. Support for PCI-PCI bridges allows the use of cards such as Cogent and SMC multiple-port Ethernet cards and Adaptec 3940 multichannel SCSI host adapters with preexisting device drivers. FDDI is now supported; drivers are in the generic (but not install) kernels. NetBSD 1.2 on i386 is, as usual, also fully backward compatible with old NetBSD i386 binaries, so you don't need to recompile all your local programs. The Future of NetBSD: --- ------ -- ------ The NetBSD Foundation has been incorporated as a non-profit organization. Its purpose is to encourage, foster and promote the free exchange of computer software, namely the NetBSD Operating System. The foundation will allow for many things to be handled more smoothly than could be done with our previous informal organization. In particular, it provides the framework to deal with other parties that wish to become involved in the NetBSD Project. The NetBSD Foundation will help improve the quality of NetBSD by: * providing better organization to keep track of development efforts, including co-ordination with groups working in related fields. * providing a framework to receive donations of goods and services and to own the resources necessary to run the NetBSD Project. * providing a better position from which to undertake promotional activities. * periodically organizing workshops for developers and other interested people to discuss ongoing work. We hope to have regular releases of the full binary and source trees, but these are difficult to coordinate, especially with all of the architectures which we now support! We hope to support even _more_ hardware in the future, and have a rather large number of other ideas about what can be done to improve NetBSD. We intend to continue our current practice of making the NetBSD-current development source available on a daily basis. We intend to integrate free, positive changes from whatever sources will provide them, providing that they are well thought-out and increase the usability of the system. Above all, we hope to create a stable and accessible system, and to be responsive to the needs and desires of NetBSD users, because it is for and because of them that NetBSD exists. Sources of NetBSD: ------- -- ------ NetBSD Mirror Site List The following sites mirror NetBSD as of Sep 30, 1996. Host name Services Provided ---- ---- -------- -------- ftp.netbsd.org Anonymous FTP FTP path: ftp://ftp.netbsd.org/pub/NetBSD sup.netbsd.org SUP SUP: See ftp://ftp.netbsd.org/pub/NetBSD/sup/README.sup ftp.iastate.edu Anonymous FTP, AFS FTP path: ftp://ftp.iastate.edu/pub/netbsd AFS path: /afs/iastate.edu/public/ftp/pub/netbsd ftp.eecs.umich.edu Anonymous FTP FTP path: ftp://ftp.eecs.umich.edu/BSD/NetBSD ftp.cs.umn.edu Anonymous FTP, SUP FTP path: ftp://ftp.cs.umn.edu/packages/NetBSD SUP: hostbase=/ftp/ftp/packages/NetBSD, collections are the same as on sup.NetBSD.ORG ftp.cslab.vt.edu Anonymous FTP FTP path: ftp://ftp.cslab.vt.edu/pub/NetBSD ftp.op.net Anonymous FTP FTP path: ftp://ftp.op.net/pub/NetBSD ftp.cetlink.net Anonymous FTP, SUP FTP path: ftp://ftp.cetlink.net/pub/NetBSD SUP: sup.cetlink.net hostbase=/a/anon_ftp/pub netbsd.rmit.edu.au Anonymous FTP, SUP FTP path: ftp://netbsd.rmit.edu.au/pub/NetBSD SUP: ftp://netbsd.rmit.edu.au/README.sup ftp.coppe.ufrj.br Anonymous FTP FTP path: ftp://ftp.coppe.ufrj.br/mirror/netbsd ftp.cevis.uni-Bremen.de Anonymous FTP FTP path: ftp://ftp.cevis.uni-Bremen.de/pub/comp/os/NetBSD netbsd.wifo.uni-mannheim.de Anonymous FTP, SUP FTP path: ftp://netbsd.wifo.uni-mannheim.de/pub/NetBSD SUP: See ftp://netbsd.wifo.uni-mannheim.de/pub/NetBSD/sup/cfg-files/normal ftp.uni-regensburg.de Anonymous FTP FTP path: ftp://ftp.uni-regensburg.de/pub/comp/os/NetBSD/ ftp.uni-trier.de Anonymous FTP, SUP FTP path: ftp://ftp.uni-trier.de/pub/unix/systems/NetBSD SUP: use host=sup.uni-trier.de, hostbase=/ftp/pub/unix/systems/NetBSD collections are the same as on sup.NetBSD.ORG netbsd.tohoku.ac.jp Anonymous FTP FTP path: ftp://netbsd.tohoku.ac.jp/NetBSD ftp.cs.uit.no Anonymous FTP, SUP FTP path: ftp://ftp.cs.uit.no/pub/NetBSD SUP: Get the file README.sup via anonymous ftp, and read it. ftp.ntnu.no Anonymous FTP FTP path: ftp://ftp.ntnu.no/pub/NetBSD/ skarven.itea.ntnu.no SUP SUP: Use this line as your sup file to get /usr/README.supinfo-skarven: current release=supinfo host=skarven.itea.ntnu.no use-rel-suffix backup delete old base=/usr prefix=/usr hostbase=/supmirror ftp.stacken.kth.se Anonymous FTP FTP path: ftp://ftp.stacken.kth.se/pub/OS/NetBSD ftp.sunet.se Anonymous FTP FTP path: ftp://ftp.sunet.se/pub/os/NetBSD If you wish to become a distribution site for NetBSD, contact mirrors@netbsd.org. NetBSD 1.2 Release Contents: ------ --- ------- -------- The NetBSD 1.2 release is organized in the following way: .../NetBSD-1.2/ BUGS Known bugs list (incomplete and out of date). CHANGES Changes since NetBSD's last release (and before). LAST_MINUTE Last minute changes. MIRRORS A list of sites that mirror the NetBSD 1.2 distribution. README.files README describing the distribution's contents. TODO NetBSD's todo list (incomplete and out of date). patches/ Post-release source code patches. source/ Source distribution sets; see below. In addition to the files and directories listed above, there is one directory per architecture, for each of the architectures that NetBSD 1.2 has a binary distribution for. There are also 'README.export-control' files sprinkled liberally throughout the distribution tree, which point out that there are some portions of the distribution (e.g. those containing crypt(3)) that should not be exported from the United States, and that if you do export them, it's your fault, not ours. The source distribution sets can be found in subdirectories of the "source" subdirectory of the distribution tree. They contain the complete sources to the system. The source distribution sets are as follows: dsrc12 This set contains the "domestic" sources. These sources contain export-restricted encryption code and should not be exported from the U.S. [ 140K gzipped, 655K uncompressed ] gsrc12 This set contains the "gnu" sources, including the source for the compiler, assembler, groff, and the other GNU utilities in the binary distribution sets. [ 7.1M gzipped, 30.4M uncompressed ] ksrc12 This set contains the sources to the NetBSD 1.2 kernel, config(8), config.old(8) and dbsym(8). [ 6.0M gzipped, 27.0M uncompressed ] ssrc12 This set contains the "share" sources, which include the sources for the man pages not associated with any particular program, the sources for the typesettable document set, the dictionaries, and more. [ 2.4M gzipped, 8.9M uncompressed ] src12 This set contains all of the NetBSD 1.2 sources which are not mentioned above. [ 9.3M gzipped, 41.6M uncompressed ] It is worth noting that unless all of the source distribution sets are installed (except the domestic set), you can't rebuild and install the system from scratch, straight out of the box. However, all that is required to rebuild the system in that case is a trivial modification to one Makefile. The source distribution sets are distributed as groups of files named "set_name.xx" where "set_name" is the distribution set name, and "xx" is the sequence number of the file, starting with "aa" for the first file in the distribution set, then "ab" for the next, and so on. All of these files except the last one of each set should be exactly 240,640 bytes long. (The last file is just long enough to contain the remainder of the data for that distribution set.) Catted together, the files belonging to a source distribution set comprise a gzipped tar file. If you want to look at list of the files contained in the set, you could use the command: cat set_name.?? | gunzip | tar tvf - or to actually extract the files contained in the set: cat set_name.?? | gunzip | tar xfp - In each of the source distribution set directories, there is a file named "CKSUMS" which contains the checksums of the files in that directory, as generated by the cksum(1) utility. You can use cksum to check the integrity of the archives, if you suspect that one of the files is corrupt and have access to a cksum binary. The i386-specific portion of the NetBSD 1.2 release is found in the "i386" subdirectory of the distribution. That subdirectory is laid out as follows: .../NetBSD-1.2/i386/ INSTALL Installation notes; this file. binary/ i386 binary distribution sets; see below. floppies/ i386 boot and installation floppies; see below. security/ i386 security distribution; see below; utils/ Miscellaneous i386 installation utilities; see installation section, below. There are four i386 floppy images to be found in the "i386/floppy" subdirectory of the NetBSD 1.2 distribution. Two of them are bootable kernel-copy floppies, one is an installation floppy, and one is an upgrade floppy. They are all described in more detail below. There are gzipped versions of each available, for easier downloading. (The gzipped versions have the ".gz" extension added to their names.) Bootable Kernel-copy floppies: These disks contain file systems, are bootable, and have enough utilities on board to copy a new kernel to your hard disk once you have it partitioned for NetBSD. They make upgrading to a new kernel easy, because all you have to do is get a new kernel-copy floppy with a new kernel, boot from it, and confirm that you want to have the kernel copied to your disk. There are two different kernel copy floppy images, "kcadp12.fs", and "kcoth12.fs". They are identical except that the kcadp floppy has the drivers for the supported Adaptec SCSI controllers -- the Adaptec 1520, 1522, 1540, 1542, 1740, 1742, 1744, and 2940 SCSI host adapters and the AIC6x60 and AIC7870 chips on motherboards or other brands of SCSI controllers -- and does not contain the drivers for any other SCSI host adapters, which are in the kernel on the kcoth floppy. (The kernels on the install disks are otherwise identical.) Please note that because of space considerations the kernel copy floppies no longer contain drivers that are not needed during installation -- in particular, no drivers needed to run the X Window System are available in these kernels. It is recommended that you configure a custom kernel following installation. For those that cannot configure a custom kernel, two "generic" kernel images, named "netbsd-adp.gz" and "netbsd-oth.gz", have been placed in the binaries directory. These are identical except that "netbsd-adp.gz" contains support for Adaptec SCSI controllers, but no other SCSI controllers, and "netbsd-oth.gz" contains support only for SCSI controllers other than the Adaptec. (These are similar in nature to the kernels on the kernel copy floppies but with additional device support.) It is strongly encouraged that you build a custom kernel for your installation rather than use a prebuilt generic kernel. Installation floppy: This disk contains the software necessary to prepare your hard drive for NetBSD and install the NetBSD distribution. It is not bootable, and must be used in conjunction with one of the kernel-copy floppies. This floppy is named "inst-12.fs". Upgrade floppy: This disk contains the software to be used in upgrading the system from a previous version of NetBSD. It is not bootable, and must be used in conjunction with one of the kernel-copy floppies. This floppy is named "upgr12.fs" The NetBSD/i386 binary distribution sets contain the binaries which comprise the NetBSD 1.2 release for the i386. There are seven binary distribution sets, and the "security" distribution set. The binary distribution sets can be found in subdirectories of the "i386/binary" subdirectory of the NetBSD 1.2 distribution tree, and are as follows: base12 The NetBSD/i386 1.2 base binary distribution. You MUST install this distribution set. It contains the base NetBSD utilities that are necessary for the system to run and be minimally functional. It includes shared library support, and excludes everything described below. [ 7.5M gzipped, 19.5M uncompressed ] comp12 The NetBSD/i386 Compiler tools. All of the tools relating to C, C++, and FORTRAN (yes, there are two!). This set includes the system include files (/usr/include), the linker, the compiler tool chain, and the various system libraries (except the shared libraries, which are included as part of the base set). This set also includes the manual pages for all of the utilities it contains, as well as the system call and library manual pages. [ 4.9M gzipped, 15.0M uncompressed ] etc12 This distribution set contains the system configuration files that reside in /etc and in several other places. This set MUST be installed if you are installing the system from scratch, but should NOT be used if you are upgrading. (If you are upgrading, it's recommended that you get a copy of this set and CAREFULLY upgrade your configuration files by hand.) [ 63K gzipped, 338K uncompressed ] games12 This set includes the games and their manual pages. [ 2.8M gzipped, 6.9M uncompressed ] man12 This set includes all of the manual pages for the binaries and other software contained in the base set. Note that it does not include any of the manual pages that are included in the other sets. [ 0.8M gzipped, 3.4M uncompressed ] misc12 This set includes the system dictionaries (which are rather large), the typesettable document set, and man pages for other architectures which happen to be installed from the source tree by default. [ 1.9M gzipped, 6.6M uncompressed ] text12 This set includes NetBSD's text processing tools, including groff, all related programs, and their manual pages. [ 0.8M gzipped, 2.9M uncompressed ] The i386 security distribution set is named "secr12" and can be found in the "i386/security" subdirectory of the NetBSD 1.2 distribution tree. It contains crypt.c (the source file for the DES encryption algorithm) and the binaries which depend on it, as well as the "bdes" DES encryption program. You do not need this distribution set to use encrypted passwords in your password file; the "base12" distribution includes a crypt library which can perform only the decryption function. The security distribution also includes a version of the Kerberos IV network security system, and Kerberized versions of the "telnet" and "tn3270" programs. The "secr12" distribution set can be found only on those sites which carry the complete NetBSD distribution and which can legally obtain it. (Remember, because of United States law, this distribution set may not be exported to locations outside of the United States and Canada.) [ 154K gzipped, 358K uncompressed ] The i386 binary distribution sets are distributed in the same form as the source distribution sets; catted together, the members of a set form a gzipped tar file. Each i386 binary distribution set also has its own "CKSUMS" file, just as the source distribution sets do. The instructions given for extracting the source sets work equally well for the binary sets, but it is worth noting that if you use that method, the files are extracted "below" the current directory. That is, if you want to extract the binaries "into" your system, i.e. replace the system binaries with them, you have to run the "tar xfp" from /. Also note that if you upgrade or install this way, those programs that you are using at the time will NOT be replaced. If you follow the normal installation or upgrade procedures, this will be taken care of for you. NetBSD System Requirements and Supported Devices: ------ ------ ------------ --- --------- ------- NetBSD/i386 1.2 runs on ISA (AT-Bus), EISA, PCI, and VL-bus systems with 386-family processors, with or without math coprocessors. It does NOT support MCA systems, such as some IBM PS/2 systems. The minimal configuration is said to require 4M of RAM and 50M of disk space, though we do not know of anyone running with a system quite this minimal today. To install the entire system requires much more disk space, and to run X or compile the system, more RAM is recommended. (4M of RAM will actually allow you to run X and/or compile, but it won't be speedy. Note that until you have around 16M of RAM, getting more RAM is more important than getting a faster CPU.) Supported devices include: Floppy controllers. MFM, ESDI, IDE, and RLL hard disk controllers. SCSI host adapters: [Adaptec host adapters only on kcadp floppy] Adaptec AHA-154xA, -B, -C, and -CF Adaptec AHA-174x Adaptec AIC-6260 and AIC-6360 based boards, including the Adaptec AHA-152x and the SoundBlaster SCSI host adapter. (Note that you cannot boot from these boards if they do not have a boot ROM; only the AHA-152x and motherboards using this chip are likely to be bootable, consequently.) Adaptec AHA-2x4x[U][W] cards and some onboard PCI designs using the AIC78X0 chip. There is a known problem using this driver with AHA-2742 cards or AIC7770 or AIC78[56]0 based embedded designs and multiple targets, due to resource contention which is not handled well by NetBSD's higher-level SCSI subsystem. Adaptec AHA-3940[U][W] cards [b] Buslogic 54x (Adaptec AHA-154x clones; driver on kcadp floppy) [Other host adapters only on kcoth floppy] BusLogic 445, 74x, 9xx (But not the new "FlashPoint" series of BusLogic SCSI adapters) Seagate/Future Domain ISA SCSI adapter cards, including ST01/02 Future Domain TMC-885 Future Domain TMC-950 Symbios Logic (NCR) 53C8xx-based PCI SCSI host adapters: Acculogic PCIpport ASUS SC-200 (requires NCR BIOS on motherboard) ASUS SP3[G] motherboard onboard SCSI DEC Celebris XL/590 onboard SCSI Lomas Data SCSI adapters NCR/SYM 8125 (and its many clones; be careful, some of these cards have a jumper to set the PCI interrupt; leave it on INT A!) Promise DC540 (a particularly common OEM model of the SYM 8125) Tyan Yorktown Ultrastor 14f, 34f, and (possibly) 24f Western Digital WD7000 SCSI host adapters (ISA cards only) MDA, CGA, VGA, SVGA, and HGC Display Adapters. (Note that not all of the display adapters NetBSD/i386 can work with are supported by X. See the XFree86 FAQ for more information.) Serial ports: 8250/16450-based ports 16550/16650/16750-based ports AST-style 4-port serial cards [*] BOCA 8-port serial cards [*] IBM PC-RT 4-port serial cards [*] Single-port Hayes ESP serial cards [*] Parallel ports. Ethernet adapters: AMD LANCE and PCnet-based ISA Ethernet adapters [*], including: Novell NE1500T Novell NE2100 Kingston 21xx AMD PCnet-based PCI Ethernet adapters, including: Addtron AE-350 BOCALANcard/PCI SVEC FD0455 X/Lan Add-On Adapter IBM #13H9237 PCI Ethernet Adapter AT&T StarLAN 10, EN100, and StarLAN Fiber 3COM 3c501 3COM 3c503 3COM 3c505 [*] 3COM 3c507 3COM 3c509, 3c579, and 3c59X Digital DC21x4x-based PCI Ethernet adapters, including: Cogent EM1X0, EM960 (a.k.a. Adaptec ANA-69XX) Cogent EM964 [b] Cogent EM4XX [b] Compex Readylink PCI DANPEX EN-9400P3 Digital Celebris GL, GLST on-board ethernet Digital (DEC) PCI Ethernet/Fast Ethernet adapters (all) JCIS Condor JC1260 Linksys PCI Fast Ethernet SMC EtherPower 10, 10/100 (PCI only!) SMC EtherPower^2 [b] SVEC PN0455 SVEC FD1000-TP Znyx ZX34X BICC Isolan [* and not recently tested] Intel EtherExpress 16 Intel EtherExpress PRO/10 [*] SMC/WD 8003, 8013, and the SMC "Elite16" ISA boards SMC/WD 8216 (the SMC "Elite16 Ultra" ISA boards) Novell NE1000, NE2000 FDDI adapters: Digital DEFPA PCI FDDI adapters [*] [+] Digital DEFEA EISA FDDI adapters [*] [+] Tape drives: Most SCSI tape drives QIC-02 and QIC-36 format (Archive- and Wangtek- compatible) tape drives [*] [+] CD-ROM drives: Non-IDE Mitsumi CD-ROM drives [*] [+] [Note: The Mitsumi driver device probe is known to cause trouble with several devices!] Most SCSI CD-ROM drives Mice: "Logitech"-style bus mice [*] [+] "Microsoft"-style bus mice [*] [+] "PS/2"-style mice [*] [+] Serial mice (no kernel support necessary) Sound Cards: SoundBlaster [*] [+] Gravis Ultrasound and Ultrasound Max [*] [+] (But not Gravis Ultrasound Plug&Play) [The following drivers are not extensively tested] Personal Sound System [*] [+] Windows Sound System [*] [+] ProAudio Spectrum [*] [+] Miscellaneous: Drivers for hardware marked with "[*]" are NOT included on the distribution floppies. Except as noted above, all other drivers are present on both kernel-copy disks. Also, at the present time, the distributed kernels support only one SCSI host adapter per machine. NetBSD normally allows more, though, so if you have more than one, you can use all of them by compiling a custom kernel once NetBSD is installed. Support for devices marked with "[+]" IS included in the "generic" kernels, although it is not in the kernels which are on the distribution floppies. Support for devices marked with "[b]" requires BIOS support for PCI-PCI bridging on your motherboard. Most reasonably modern Pentium motherboards have this support, or can acquire it via a BIOS upgrade. Hardware the we do NOT currently support, but get many questions about: AMD PCscsi SCSI host adapters (though the PCnet portion of the PCnet-SCSI works fine) APM power management -- if your system supports it, turn it off! Intel EtherExpress 100 Fast Ethernet adapters. Multiprocessor Pentium and Pentium Pro systems. (Though they should run fine using one processor only.) NCR 5380-based SCSI host adapters. PCI WD-7000 SCSI host adapters. PCMCIA ("PC Card") devices, including some miniature "IDE" hard disks. QIC-40 and QIC-80 tape drives. (Those are the tape drives that connect to the floppy disk controller.) We are planning future support for many of these devices. To be detected by the distributed kernels, the devices must be configured as follows: Device Name Port IRQ DRQ Misc ------ ---- ---- --- --- ---- Serial ports com0 0x3f8 4 [8250/16450/16550/clones] com1 0x2f8 3 [8250/16450/16550/clones] com2 0x3e8 5 [8250/16450/16550/clones] Parallel ports lpt0 0x378 7 [interrupt-driven or polling] lpt1 0x278 [polling only] lpt2 0x3bc [polling only] MFM/ESDI/IDE/RLL hard disk controller wdc0 0x1f0 14 [supports two disks] Floppy controller fdc0 0x3f0 6 2 [supports two disks] AHA-154x, AHA-174x (in compatibility mode), or BT-54x SCSI host adapters aha0 0x330 any any [only on kcadp kernel floppy] aha1 0x334 any any [only on kcadp kernel floppy] AHA-174x SCSI host adapters (in enhanced mode) ahb0 any any any [only on kcadp kernel floppy] AHA-152x, AIC-6260- or AIC-6360-based SCSI host adapters aic0 0x340 11 6 [only on kcadp kernel floppy] AHA-2X4X or AIC-7XXX-based SCSI host adapters ahc0 any any any [only on kcadp kernel floppy] Bus Logic BT445, BT74x, or BT9xx SCSI host adapters bt0 0x330 any any [only on kcoth kernel floppy] bt1 0x334 any any Symbios Logic/NCR 53C8xx based PCI SCSI host adapters ncr0 any any any [only on kcoth kernel floppy] Ultrastor 14f, 24f (if it works), or 34f SCSI host adapters uha0 0x330 any any [only on kcoth kernel floppy] uha1 0x334 any any [only on kcoth kernel floppy] Western Digital WD7000 based ISA SCSI host adapters wds0 0x350 15 6 [only on kcoth kernel floppy] wds1 0x358 11 5 [only on kcoth kernel floppy] SCSI disks sd0 first SCSI disk (by SCSI id) sd1 second SCSI disk (by SCSI id) sd2 third SCSI disk (by SCSI id) sd3 fourth SCSI disk (by SCSI id) SCSI tapes st0 first SCSI tape (by SCSI id) st1 second SCSI tape (by SCSI id) SCSI CD-ROMs cd0 first SCSI CD-ROM (by SCSI id) cd1 second SCSI CD-ROM (by SCSI id) SMC/WD 8003, 8013, Elite16, and Elite16 Ultra Ethernet boards, 3c503, Novell NE1000, or NE2000 Ethernet boards ed0 0x280 2 iomem 0xd0000 ed1 0x250 2 iomem 0xd8000 ed2 0x300 10 iomem 0xcc000 3COM 3c509 or 3COM 3c579 Ethernet boards ep0 any any 3COM 3x59X PCI Ethernet boards ep0 any any [you must assign an interrupt in your PCI BIOS, or let it do so for you] AT&T StarLAN 10, EN100, or StarLAN Fiber, 3COM 3c507 or Intel EtherExpress 16 Ethernet boards ie0 0x360 7 iomem 0xd0000 ie1 0x300 10 iomem 0xd0000 PCnet-PCI based Ethernet boards; see above for partial list le0 any any [you must assign an interrupt in your PCI BIOS, or let it do so for you] DC21x4x based Ethernet boards; see above for partial list de0 any any [you must assign an interrupt in your PCI BIOS, or let it do so for you] Getting the NetBSD System on to Useful Media: ------- --- ------ ------ -- -- ------ ----- Installation is supported from several media types, including: DOS floppies Tape Remote NFS partition FTP No matter which installation medium you choose, you'll need to have two floppy disks (either 1.2M or 1.44 will work, though both should be the same type). On the first, you'll put the kernel-copy image that's appropriate for your system. On the second, you'll put the install or upgrade floppy image, depending on whether you're installing NetBSD for the first time, or upgrading a previous installation. If you are using an Adaptec SCSI host adapter, you need the kcadp12.fs kernel-copy image. If you're using any other SCSI host adapter, you'll need the kcoth12.fs image. If you're using a non-SCSI disk controller, either kernel-copy disk image will work for you. If you are using a UN*X-like system to write the floppy images to disks, you should use the "dd" command to copy the file system images (.fs files) directly to the raw floppy disks. It is suggested that you read the dd(1) manual page or ask your system administrator to determine the correct set of arguments to use; it will be slightly different from system to system, and a comprehensive list of the possibilities is beyond the scope of this document. If you are using DOS to write the floppy images to disks, you should use the "rawrite" utility, provided in the "i386/utilities" directory of the NetBSD distribution. It will write the file system images (.fs files) to disks. Note that, when installing, the kernel-copy floppy can be write-protected (i.e. read-only), but the install floppy MUST not be write-protected. The install program needs to write some temporary files, and if the disk is write-protected, it can't. If you're upgrading your system, both the kernel-copy and upgrade floppies may be write-protected. Obviously, the steps necessary to prepare the distribution sets for installation or upgrade depend on which installation medium you choose. The steps for the various media are outlined below. To install or upgrade NetBSD using DOS floppies, you need to do the following: Count the number of "set_name.xx" files that make up the distribution sets you want to install or upgrade. You will need one fifth that number of 1.2M floppies, or one sixth that number of 1.44M floppies. You should only use one size of floppy for the install or upgrade procedure; you can't use some 1.2M floppies and some 1.44M floppies. Format all of the floppies with DOS. DO NOT make any of them bootable DOS floppies, i.e. don't use "format/s" to format them. (If the floppies are bootable, then the DOS system files that make them bootable will take up some space, and you won't be able to fit as many distribution set parts per disk.) If you're using floppies that are formatted for DOS by their manufacturers, they probably aren't bootable, and you can use them out of the box. Place all of the "set_name.xx" files on the DOS disks, five per disk if you're using 1.2M disks, six per disk if you're using 1.44M disks. How you do this is up to you; there are many possibilities. You could, for instance, use a DOS terminal program to download them on to the floppies, or use a UN*X-like system capable of reading and writing DOS file systems (either with "mtools" or a real DOS file system) to place them on the disk. Once you have the files on DOS disks, you can proceed to the next step in the installation or upgrade process. If you're installing NetBSD from scratch, go to the section on preparing your hard disk, below. If you're upgrading an existing installation, go directly to the section on upgrading. To install or upgrade NetBSD using a tape, you need to do the following: To install NetBSD from a tape, you need to make a tape that contains the distribution set files, in "tar" format. If you're making the tape on a UN*X-like system, the easiest way to do so is probably something like: tar cf where "" is the name of the tape device that describes the tape drive you're using (possibly /dev/rst0, or something similar, but it will vary from system to system. (If you can't figure it out, ask your system administrator.) In the above example, "" are the distribution sets' directories, for the distribution sets you wish to place on the tape. For instance, to put the "base12" and "etc12" distributions on tape (in order to do the absolute minimum installation to a new disk), you would do the following: cd .../NetBSD-1.2 # the top of the tree cd i386/binary tar cf base12 etc12 (Note that you still need to fill in "" in the example.) Once you have the files on the tape, you can proceed to the next step in the installation or upgrade process. If you're installing NetBSD from scratch, go to the section on preparing your hard disk, below. If you're upgrading an existing installation, go directly to the section on upgrading. To install or upgrade NetBSD using a remote partition, mounted via NFS, you must do the following: NOTE: This method of installation is recommended only for those already familiar with using BSD network configuration and management commands. If you aren't, this documentation should help, but is not intended to be all-encompassing. Place the NetBSD distribution sets you wish to install into a directory on an NFS server, and make that directory mountable by the machine on which you are installing or upgrading NetBSD. This will probably require modifying the /etc/exports file on of the NFS server and resetting its mount daemon (mountd). (Both of these actions will probably require superuser privileges on the server.) You need to know the the numeric IP address of the NFS server, and, if the server is not on a network directly connected to the machine on which you're installing or upgrading NetBSD, you need to know the numeric IP address of the router closest to the NetBSD machine. Finally, you need to know the numeric IP address of the NetBSD machine itself. Once the NFS server is set up properly and you have the information mentioned above, you can proceed to the next step in the installation or upgrade process. If you're installing NetBSD from scratch, go to the section on preparing your hard disk, below. If you're upgrading an existing installation, go directly to the section on upgrading. To install or upgrade NetBSD by using FTP to get the installation sets, you must do the following: NOTE: This method of installation is recommended only for those already familiar with using BSD network configuration and management commands. If you aren't, this documentation should help, but is not intended to be all-encompassing. The preparations for this installation/upgrade method are easy; all you make sure that there's some FTP site from which you can retrieve the NetBSD distribution when you're about to install or upgrade. You need to know the numeric IP address of that site, and, if it's not on a network directly connected to the machine on which you're installing or upgrading NetBSD, you need to know the numeric IP address of the router closest to the NetBSD machine. Finally, you need to know the numeric IP address of the NetBSD machine itself. Once you have this information, you can proceed to the next step in the installation or upgrade process. If you're installing NetBSD from scratch, go to the section on preparing your hard disk, below. If you're upgrading an existing installation, go directly to the section on upgrading. If you are upgrading NetBSD, you also have the option of installing NetBSD by putting the new distribution sets somewhere in your existing file system, and using them from there. To do that, you must do the following: Place the distribution sets you wish to upgrade somewhere in your current file system tree. At a bare minimum, you must upgrade the "base" binary distribution, and so must put the "base12" set somewhere in your file system. If you wish, you can do the other sets, as well, but you should NOT upgrade the "etc" distribution; the "etc" distribution contains system configuration files that you should review and update by hand. Once you have done this, you can proceed to the next step in the upgrade process, actually upgrading your system. Preparing your System for NetBSD Installation: --------- ---- ------ --- ------ ------------ NOTE: If you wish to install NetBSD on your whole disk, i.e. you do not want DOS or any other operating system to reside on your hard disk, you can skip this section and go on to the section that describes installation, below. If you're upgrading your system from a previous release of NetBSD, you shouldn't have proceeded directly to the section about upgrading; you need none of the information presented here. First and foremost, before beginning the installation process, MAKE SURE YOU HAVE A RELIABLE BACKUP of any data on your hard disk that you wish to keep. Repartitioning your hard disk is an excellent way to destroy important data. Second, if you are using a disk controller which supports disk geometry translation, be sure to use the same parameters for NetBSD as for DOS or the other operating systems installed on your disk. If you do not, it will be much harder to make NetBSD properly coexist with them. Utilities exist which will print out the disk geometry which DOS sees; some versions of DOS "fdisk" also do this. If you have an "EIDE" hard disk, DOS and NetBSD probably won't see the same geometry, and you must be careful to find out the DOS geometry and tell NetBSD about it during the installation. Third (but related to the second point above), if you are using a hard disk with more sectors than DOS or your controller's BIOS supports without some kind of software translation utility or other kludge, you MUST BE SURE that all partitions which you want to boot from must start below cylinder 1024 by the BIOS's idea of the disk, and that all DOS partitions MUST EXIST ENTIRELY BELOW cylinder 1024, or you will either not be able to boot NetBSD, not be able to boot DOS, or you may experience data loss or filesystem corruption. Be sure you aren't using geometry translation that you don't know about, but that the DOS "fdisk" program does! Fourth, use the DOS "fdisk" program or another partition editor to repartition your hard disk. Create a partition of at least 40M in size (preferably much larger), and note its starting offset and its length (preferably in units of disk sectors or cylinders). You will need that information when installing NetBSD (and if the offset and length are not in those units, you will have to convert them). Once you have created the new NetBSD partition, mark it as having a partition type of 0xA5 (165, in decimal). If you used "fdisk" to partition your disk, you will probably have to use a different partition editor to mark the partition with the correct type. Finally, do whatever is necessary to restore order to the partition you took space away from. If it was a DOS partition, you probably will need to use "format" to create a new file system on it, and then restore your important files from your backups. Other operating systems will have different needs; most will need to reformat the partition, and if it was their "main" partition, will probably need to be reinstalled. Your hard disk is now prepared to have NetBSD installed on it, and you should proceed with the installation instructions. Installing the NetBSD System: ---------- --- ------ ------ Installing NetBSD is a relatively complex process, but if you have this document in hand and are careful to read and remember the information which is presented to you by the install program, it shouldn't be too much trouble. Before you begin, you should know the geometry of your hard disk, i.e. the sector size (note that sector sizes other than 512 bytes are not currently supported), the number of sectors per track, the number of tracks per cylinder (also known as the number of heads), and the number of cylinders on the disk. The NetBSD kernel will try to discover these parameters on its own, and if it can it will print them at boot time. If possible, you should use the parameters it prints. (You might not be able to because you're sharing your disk with another operating system, or because your disk is old enough that the kernel can't figure out its geometry.) If NetBSD will be sharing the disk with DOS or another operating system, you should have already completed the section of these notes that instructed you on how to prepare your hard disk. You should know the size of the NetBSD area of the disk and its offset from the beginning of the disk. You will need this information when setting up your NetBSD partitions. You should now be ready to install NetBSD. It might be handy for you to have a pencil, some paper, and a calculator handy. The following is a walk-through of the steps you will take while getting NetBSD installed on your hard disk. If any question has a default answer, it will be displayed in brackets ("[]") after the question. If you wish to stop the installation, you may hit Control-C at any time, but if you do, you'll have to begin the installation process again from scratch. Boot your machine using of the appropriate kernel-copy floppy. When presented with the boot prompt (the prompt begins with "Boot" and ends with ":-"), hit return. If the boot prompt does not appear in a reasonable amount of time, you either have a bad boot floppy or a hardware problem. Try writing the kernel-copy floppy image to a different disk, and using that. If that doesn't work, try booting after disabling your CPU's internal and external caches (if any). If it still doesn't work, NetBSD probably can't be run on your hardware. This can probably be considered a bug, so you might want to report it. If you do, please include as many details about your system configuration as you can. It will take a while to load the kernel from the floppy, probably around a minute or so. After its loaded, you will be presented with the message: "Insert file system floppy" If you do not see that message after a reasonable time has elapsed, or the spinning cursor has stopped and nothing further has happened, either your boot floppy is bad or you are having hardware problems, and should proceed as outlined above. Once you have reached that prompt, remove the kernel-copy floppy from the floppy drive. Make sure that the installation disk (the "inst-12" floppy) is writable, insert it into the floppy drive, and hit any key. You will then be presented with the NetBSD kernel boot messages. You will want to read them, to determine your disk's name and geometry. Its name will be something like "sd0" or "wd0" and the geometry will be printed on a line that begins with its name. As mentioned above, you will need your disk's geometry when creating NetBSD's partitions. You will also need to know the name, to tell the install tools what disk to install on. While booting, you will probably see several warnings. You should be warned that no swap space is present, and that init(8) cannot find /etc/rc. Do not be alarmed, these are completely normal. When you reach the prompt asking you for a shell name, just hit return. You will be presented with a welcome message and a prompt, asking if you wish to proceed with the installation process. If you wish to proceed, enter "y" and hit return. You will be asked what type of disk driver you have. The valid options are listed by the install program, to make sure you get it right. If you're installing on an ST-506 or ESDI drive, you'll be asked if your disk supports automatic sector forwarding. If you are SURE that it does, reply affirmatively. Otherwise, the install program will automatically reserve space for bad144 tables. The install program will then tell you which disks of that type it can install on, and ask you which it should use. Reply with the name of your disk. (The first disk of the type you selected, either "wd0" for ST-506/ESDI/IDE disks, or "sd0" for SCSI disks, is the default.) You will then be asked to name your disk's disklabel. The default response is "mywd" or "mysd" depending on the type of your disk, and for most purposes it will be OK. If you choose to name it something different, make sure the name is a single word and contains no special characters. You don't need to remember this name. You will be prompted for your disk's geometry information, i.e. the number of bytes per sector, cylinders on the disk, tracks per cylinder (heads), and sectors per track. Enter them when they are requested. If you make a mistake, hit Control-C and when you get to the shell prompt, restart the install process by running the "install" command. Once you have entered this data, the install program will tell you the total size of your disk, in both sectors, and cylinders. Remember this number; if you're installing on the whole disk, you'll need it again soon. When describing your partitions, you will have the option of entering data about them in units of disk sectors or cylinders. If you choose to enter the information in units of sectors, remember that, for optimal performance, partitions should begin and end on cylinder boundaries. You will be asked about which units you wish to use, and you should reply with "c" for cylinders, or "s" for sectors. You will be asked for the size of the NetBSD portion of the disk. If you're installing on the whole disk, reply with the size of the disk, as printed earlier by the install program. If you're using only part of the disk, reply with the size that you specified in the partition editor. (Don't forget to enter the size in the units you specified in the last step!) If you are not installing on the whole disk, you will be asked fro the offset of the NetBSD partition from the beginning of the disk. Reply with the appropriate offset (again, in whichever units you specified), as determined by how you set up your disk using the partition editor. You will be asked to enter the size of your NetBSD root partition. It should be at least 13M, but if you are going to be doing development, 14-16M is a more desirable size. This size should be expressed in units of sectors or cylinders, depending on which you said you wanted to use. Next, you will be asked for the size of your swap partition. You should probably allocate twice as much swap space as you have real memory. Systems that will be heavily used should have more swap space allocated, and systems that will be lightly used can get by with less. If you want the system to be able to save crash dumps when it panics, you will need at least as much swap space as you have RAM. Again, this number should be expressed in units of sectors or cylinders, as appropriate. The install program will then ask you for information about the rest of the partitions you want on your disk. For most purposes, you will want only one more partition, "/usr". (Machines used as servers will probably also want /var as a separate partition. That can be done with these installation tools, but is not covered here.) The install program will tell you how much space there is left to be allocated in the NetBSD area of the disk, and, if you only want one more partition ("/usr"), you should enter it at the prompt when the installer asks you how large the next partition should be. It will then ask you for the name of the mount point for that partition. If you're doing a basic installation, that is "/usr". YOU ARE NOW AT THE POINT OF NO RETURN. Nothing has been written to your disk yet, but if you confirm that you want to install NetBSD, your hard drive will be modified, and its contents may be scrambled at the whim of the install program. This is especially likely if you have given the install program incorrect information. If you are sure you want to proceed, enter "yes" at the prompt. The install program will now label your disk and make the file systems you specified. The filesystems will be initialized to contain NetBSD bootstrapping binaries and configuration files. It will also create an /etc/fstab for your system, and mount all of the file systems under /mnt. (In other words, your root partition will be mounted on /mnt, your /usr partition on /mnt/usr, and so on.) There should be no errors in this section of the installation. If there are, restart from the beginning of the installation process. You will be placed at a shell prompt ("#"). The remaining tasks are to copy the kernel from the kernel copy floppy to the hard drive's root filesystem and install the distribution sets. The flow of installation differs depending on your hardware resources, and on what media the distribution sets reside. To install from floppy: If you only have only one floppy drive, the order of installation is different. Follow the directions in the "Kernel installation" section which will help you install a kernel on the hard drive and then boot off the hard drive, then continue with the rest of the process described here to install the distribution sets from floppy: The first thing you should do is pick a temporary directory where the distribution files can be stored. To do this, enter the command "Set_tmp_dir", and enter the name of the temporary directory. (Don't forget that if your disk is still mounted under /mnt; you should probably pick a directory under /mnt/usr.) After you have picked a temporary directory, enter the "Load_fd" command, to load the distribution sets from your floppies. You will be asked which floppy drive to use. Enter "0" (zero) if you're using the first floppy drive (i.e. what DOS would call "A:"), or enter "1" if you're using the second. (Remember that you CANNOT use the floppy drive that you booted from. If you booted from "A:", you must load from "B:".) You will be prompted to insert a floppy into the drive, to have its contents copied to your hard disk. Do so, and hit return to begin copying. When that is done, read the remainder of the floppies that contain the distribution sets that you want to install, one by one. When the last is read, and you are being prompted for another, hit Control-C. Run the "Extract" command once for each distribution set you wish to install. For instance, if you wish to install the "base12" distribution set, followed by the "man12" distribution set, and finally the "etc12" distribution set, use the commands: Extract base12 Extract man12 Extract etc12 For each extraction, it will ask you if the extraction should be verbose. If you reply affirmatively, it will print out the name of each file that's being extracted. (Note: if you know that you will be running low on disk space when installing NetBSD, you can load and extract one distribution set at a time. To do this, load only the floppies which contain the files for the first distribution set, extract them, and then change to the temporary directory and remove them with the command "rm set_name.??".) Once you are finished extracting all of the sets that you wish to install, you should proceed to the instructions below (after the last install medium type-specific instructions), that explain how you should configure your system. To install from tape: The first thing you should do is pick a temporary directory where the distribution files can be stored. To do this, enter the command "Set_tmp_dir", and enter the name of the temporary directory. (Don't forget that your disk is mounted under /mnt; you should probably pick a directory under /mnt/usr.) The default is /mnt/usr/distrib. After you have picked a temporary directory, enter the "Load_tape" command, to load the distribution sets from tape. You will be asked which tape drive to use. The default is "rst0", which is correct if you're using the SCSI tape drive with the lowest SCSI ID number. (For the SCSI tape drive with the next lowest SCSI ID number, you should use "rst1", and so on.) You will be prompted to hit return when you have inserted the tape into the tape drive. When you do, the contents of the tape will be extracted into the temporary directory, and the names of the files being extracted will be printed. After the tape has been extracted, to go the directory containing the first distribution set you wish to install. (Depending on how you made the tape, it's probably a subdirectory of the temporary directory you specified above.) Once there, run the "Set_tmp_dir" command again, and accept its default answer by hitting return at the prompt. Use the "Extract" command to extract the distribution set. For instance, if you're extracting the "base12" set, use the command: Extract base12 You will be asked if you wish the extraction to be verbose. If you reply affirmatively, the name of each file being extracted will be printed. Repeat the previous two steps for each distribution set you wish to install. Change to the set's directory, run "Set_tmp_dir", and then run "Extract " to extract the set. Once you are finished extracting all of the sets that you wish to install, you should proceed to the instructions below (after the last install medium type-specific instructions), that explain how you should configure your system. To install via FTP or NFS: The first thing you should do is pick a temporary directory where the distribution files can be stored. To do this, enter the command "Set_tmp_dir", and enter the name of the temporary directory. (Don't forget that your disk is mounted under /mnt; you should probably pick a directory under /mnt/usr.) The default is /mnt/usr/distrib. Configure the appropriate ethernet interface (e.g. ed0, ep0, etc.) up, with a command like: ifconfig [netmask ] where "" is the interface name, like those listed above, and "" is the numeric IP address of the interface. If the interface has a special netmask, supply the word "netmask" at and that netmask at the end of the command line. (The brackets indicate that those arguments are optional.) For instance, to configure interface ed0 with IP address 129.133.10.10, use the command: ifconfig ed0 129.133.10.10 and to configure interface ep0 with IP address 128.32.240.167 and a special netmask, 0xffffff00, use the command: ifconfig ep0 128.32.240.167 netmask 0xffffff00 If your board selects software selection of the ethernet interface to use, you might have to add special flags to the "ifconfig" command you use. Consult the table below for the appropriate flags: Interface Type Connector Flags --------- ---- --------- ----- ed with WD/SMC* BNC [none necessary] ed with WD/SMC* UTP [none necessary] ed with WD/SMC* AUI link0 ed with 3c503 BNC [none necessary] ed with 3c503 AUI link0 ep BNC [none necessary] ep AUI link0 ep UTP link0 link1 * Older WD boards do not support software configuration, and must be configured via jumpers. These flags will have no effect on them. In other words, if, in the last example, the AUI port of the board were being used, you would use the command: ifconfig ep0 128.32.240.167 netmask 0xffffff00 link0 If the NFS server or FTP server is not on a directly- connected network, you need to set up a route to it using a command like: route add default where is your gateway's numeric IP address. If you are NFS-mounting the distribution sets, mount them on the temporary directory with a command like: mount -t nfs : where is the server's numeric IP address, is the path to the distribution files on the server, and is the name of the local temporary directory. Once this is done, proceed as if you had loaded the files from tape, changing to the appropriate directories, running "Set_tmp_dir", and running "Extract" as appropriate. If you are retrieving the distribution sets using ftp, change into the temporary directory, and execute the command: ftp where is once again the server's numeric IP address. Get the files with FTP, taking care to use binary mode when transferring the files. Once you have all of the files for the distribution sets that you wish to install, you can proceed using the instructions above, as if you had installed from a floppy. (Note that as with the floppy install, if you're short on disk space, you can transfer only one set at a time, extract it, then delete it, to save space.) Once you have finished extracting all of the distribution sets that you wish to install, and are back at the "#" prompt, you are ready to configure your system. The configuration utility expects that you have installed the "base12" and "etc12" distribution sets. If you have not, you will not be able to run it successfully (nor will you have a functional system, in any case). To configure your newly-installed NetBSD system, run the command "Configure". It will ask you for the system's host name, domain name, and other network configuration information. It will set up your configuration files and make the device nodes for the newly-installed system. Kernel Installation: Enter "halt" at the prompt to halt the system. When the system is halted, remove the "inst-12" floppy from the floppy drive, and replace it with the NetBSD 1.2 kernel-copy floppy that you previously booted from. Reboot with that floppy. with that floppy. Once again, you will be prompted to insert a file system floppy. DO NOT replace the kernel-copy floppy, just hit any key. Again, While booting, you may see several warnings. You may be warned that no swap space is present, that init(8) cannot find /etc/rc, and that one or more databases with names like "pwd.db" cannot be found. Do not be alarmed, as, again, these are completely normal. Hit return at the prompt asking you for a shell name. You will be presented with a shell prompt, at which you should enter the "copy_kernel" command. It will ask you what partition to copy the kernel to, and you should reply with the name of your root partition (e.g. sd0a or wd0a). You will be asked if you are sure that you want to copy the kernel. Reply affirmatively, and it will check the file system on your root partition, mount it, and copy the kernel. Once the kernel is copied, you should use "halt" to halt the system. Once the system is halted, remove the kernel-copy floppy from the floppy disk drive, and hit any key to reboot. Congratulations, you have successfully installed NetBSD 1.2. When you reboot into NetBSD, you should log in as "root" at the login prompt. There is no initial password, but if you're using the machine in a networked environment, you should create yourself an account and protect it and the "root" account with good passwords. Some of the files in the NetBSD 1.2 distribution might need to be tailored for your site. In particular, the /etc/sendmail.cf file will almost definitely need to be adjusted, and other files in /etc will probably need to be modified, as well. If you are unfamiliar with UN*X-like system administration, it's recommended that you buy a book that discusses it. Upgrading a previously-installed NetBSD System: --------- - ---------- --------- ------ ------ The upgrade to NetBSD 1.2 is a binary upgrade; it would be prohibitive to make users upgrade by compiling and installing the 1.2 sources, and it would be very difficult to even compile a set of instructions that allowed them to do so. Because of the many changes to the system, it is difficult impractical to upgrade by recompiling from the sources and installing. To do the upgrade, you must have the appropriate kernel-copy floppy image on a disk, and the upgr12.fs floppy image on another. You must also have at least the "base12" binary distribution set available, so that you can upgrade with it, using one of the upgrade methods described above. Finally, you must have sufficient disk space available to install the new binaries. Since the old binaries are being overwritten in place, you only need space for the new binaries, which weren't previously on the system. If you have a few megabytes free on each of your root and /usr partitions, you should have enough space. Since upgrading involves replacing the boot blocks on your NetBSD partition, the kernel, and most of the system binaries, it has the potential to cause data loss. You are strongly advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the NetBSD partition or on another operating system's partition, before beginning the upgrade process. To upgrade your system, follow the following instructions: Boot your machine using of the appropriate kernel-copy floppy. When presented with the boot prompt (the prompt begins with "Boot" and ends with ":-"), hit return. You will be prompted to insert a file system floppy. Remove the kernel-copy floppy and insert the upgr12 floppy, then hit any key to continue booting. While booting, you will probably see several warnings. You should be warned that no swap space is present, and that init(8) cannot find /etc/rc. Do not be alarmed, these are completely normal. When you reach the prompt asking you for a shell name, just hit return. You will be presented with some information about the upgrade process and a warning message, and will be asked if you wish to proceed with the upgrade process. If you answer negatively, the upgrade process will stop, and your disk will not be modified. If you answer affirmatively, the upgrade process will begin, and your disk will be modified. You may hit Control-C to stop the upgrade process at any time. However, if you hit it at an inopportune moment, your system may be left in an inconsistent (and possibly unusable) state. You will be asked if you wish to upgrade your file systems to the new file system format. If you do, reply affirmatively. If you don't have your file systems upgraded now, you should probably do it manually after the install process is complete, by using "fsck -c 2". Read the fsck(8) manual page for more details. Note that this step is only important when upgrading from a pre-NetBSD 1.0 release. The upgrade program will then check your root file system, and, if you approved, will upgrade it to the new file system format. It will then mount your root file system on /mnt. If your file systems are being upgraded, the upgrade script will copy the new fsck(8) program to your hard disk and upgrade your remaining file systems. The upgrade program will then automatically replace the boot blocks on your disk with newer versions, and mount all of your file systems under /mnt. (In other words, your root partition will be mounted on /mnt, your /usr partition on /mnt/usr, etc.) If you don't already have the NetBSD distribution sets on your disk, look in the installation section for information on how to transfer them to your disk. If you have only one floppy drive, and don't have the disk space to copy all of the distribution onto the hard drive, you can do the following: Install a kernel on the hard drive as detailed a few paragraphs below, then boot off the hard drive. Now you can copy and install distribution sets incrementally from your lone floppy drive. Once the distribution sets are transferred to your disk, continue here. (Obviously, if the NetBSD distribution sets are already on your disk, because you've transferred them before starting the upgrade process, you don't need to transfer them again now!) After the software has been transferred to the machine (or mounted, in the case of upgrading via NFS), change into the directory containing the "base12" distribution set. Once you are there, run the "Set_tmp_dir" command, and hit return at the prompt to select the default answer for the temporary directory's path name. (It should be the path name of the directory that you're in.) Run the command "Extract base12" to upgrade the base distribution. Repeat the above two steps for all of the sets you wish to upgrade. (For each, change into the directory containing the set, run "Set_tmp_dir" and accept the default path name, then run the "Extract " command.) If you were previously using the security distribution set, you MUST upgrade to the new version, or you will not be able to log in when the upgrade process is complete. Similarly, if you were not previously using the security set, you must NOT upgrade to the new version. When you are done upgrading all of the distribution sets you wish to upgrade, issue the command "Cleanup". It will clean up the installation, by remaking some system databases. When it is complete, you should use "halt" to halt the system. When the system is halted, remove the "upgr12" floppy from the floppy drive, and replace it with the NetBSD 1.2 kernel-copy floppy that you previously booted from. Reboot with that floppy. Once again, you will be prompted to insert a file system floppy. DO NOT replace the kernel-copy floppy, just hit any key. Again, While booting, you may see several warnings. You may be warned that no swap space is present, that init(8) cannot find /etc/rc, and that one or more databases with names like "pwd.db" cannot be found. Do not be alarmed, as, again, these are completely normal. Hit return at the prompt asking you for a shell name. You will be presented with a shell prompt, at which you should enter the "copy_kernel" command. It will ask you what partition to copy the kernel to, and you should reply with the name of your root partition (e.g. sd0a or wd0a). You will be asked if you are sure that you want to copy the kernel. Reply affirmatively, and it will check the file system on your root partition, mount it, and copy the kernel. Once the kernel is copied, you should use "halt" to halt the system. Once the system is halted, remove the kernel-copy floppy from the floppy disk drive, and hit any key to reboot. Your system has now been upgraded to NetBSD 1.2. After a new kernel has been copied to your hard disk, your machine is a complete NetBSD 1.2 system. However, that doesn't mean that you're finished with the upgrade process. There are several things that you should do, or might have to do, to insure that the system works properly. First, if you did not upgrade your file systems to the new file system format during the upgrade process, and you are upgrading from a pre-1.0 NetBSD, you may want to do so now, with "fsck -c 2". If you are unsure about the process, it's suggested that you read the fsck(8) manual page. Second, you will probably want to get the etc12 distribution, extract it, and compare its contents with those in your /etc/ directory. You will probably want to replace some of your system configuration files, or incorporate some of the changes in the new versions into yours. Third, you will probably want to update the set of device nodes you have in /dev. If you've changed the contents of /dev by hand, you will need to be careful about this, but if not, you can just cd into /dev, and run the command "sh MAKEDEV all". Fourth, you must deal with certain changes in the formats of some of the configuration files. The most notable change is that the "options" given to many of the file systems in /etc/fstab or by hand have changed, and some of the file systems have changed names. *IMPORTANT*: ANY INSTANCES OF "ufs" IN /etc/fstab MUST BE CHANGED TO "ffs". To find out what the new options are, it's suggested that you read the manual page for the file systems' mount commands, for example mount_nfs(8) for NFS. (Note that the information for mounts of type "ffs", i.e. Fast File Systems, are contained in the mount(8) man page.) Finally, you will want to delete old binaries that were part of the version of NetBSD that you upgraded from and have since been removed from the NetBSD distribution. If you are upgrading from a pre-1.0 NetBSD, you might also want to recompile any locally-built binaries, to take advantage of the shared libraries. (Note that any new binaries that you build will be dynamically linked, and therefore take advantage of the shared libraries, by default. For information on how to make statically linked binaries, see the cc(1) and ld(1) manual pages.) Using online NetBSD documentation ----- ------ ------ ------------- Documentation is available if you first install the manual distribution set. Traditionally, the "man pages" (documentation) are denoted by 'name(section)'. Some examples of this are intro(1), man(1), apropros(1), passwd(1), and passwd(5). The section numbers group the topics into several categories, but three are of primary interest: user commands are in section 1, file formats are in section 5, and administrative information is in section 8. The 'man' command is used to view the documentation on a topic, and is started by entering 'man [section] topic'. The brackets [] around the section should not be entered, but rather indicate that the section is optional. If you don't ask for a particular section, the topic with the least-numbered section name will be displayed. For instance, after logging in, enter man passwd to read the documentation for passwd(1). To view the documentation for passwd(5), enter man 5 passwd instead. If you are unsure of what man page you are looking for, enter apropos subject-word where "subject-word" is your topic of interest; a list of possibly related man pages will be displayed. Administrivia: ------------- Registration? What's that? If you've got something to say, do so! We'd like your input. There are various mailing lists available via the mailing list server at . To get help on using the mailing list server, send mail to that address with an empty body, and it will reply with instructions. There are various mailing lists set up to deal with comments and questions about this release. Please send comments to: netbsd-comments@NetBSD.ORG To report bugs, use the 'send-pr' command shipped with NetBSD, and fill in as much information about the problem as you can. Good bug reports include lots of details. Additionally, bug reports can be sent by mail to: netbsd-bugs@NetBSD.ORG Use of 'send-pr' is encouraged, however, because bugs reported with it are entered into the NetBSD bugs database, and thus can't slip through the cracks. There are also port-specific mailing lists, to discuss aspects of each port of NetBSD. Use majordomo to find their addresses. If you're interested in doing a serious amount of work on a specific port, you probably should contact the "owner" of that port (listed below). If you'd like to help with this effort, and have an idea as to how you could be useful, send mail and/or subscribe to: netbsd-help@NetBSD.ORG As a favor, please avoid mailing huge documents or files to these mailing lists. Instead, put the material you would have sent up for FTP somewhere, then mail the appropriate list about it, or, if you'd rather not do that, mail the list saying you'll send the data to those who want it. Thanks go to: ------ -- -- Members and former members of UCB's Computer Systems Research Group, including (but not limited to): Keith Bostic Ralph Campbell Mike Karels Marshall Kirk McKusick for their ongoing work on BSD systems, support, and encouragement. Also, our thanks go to: Mike Hibler Rick Macklem Jan-Simon Pendry Chris Torek for answering lots of questions, fixing bugs, and doing the various work they've done. UC Berkeley's Experimental Computing Facility provided a home for sun-lamp in the past, people to look after it, and a sense of humor. Rob Robertson, too, has added his unique sense of humor to things, and for a long time provided the primary FTP site for NetBSD. Best Internet Communications for hosting the NetBSD FTP and SUP server. Cygnus Support for hosting the NetBSD Mail server. Without CVS, this project would be impossible to manage, so our hats go off to Brian Berliner, Jeff Polk, and the various other people who've had a hand in making CVS a useful tool. Alistair G. Crooks has been producing tar file snapshot reports for NetBSD-current users, a very valuable service. Dave Burgess has been maintaining the 386BSD/NetBSD/FreeBSD FAQ for quite some time, and deserves to be recognized for it. The following people (in alphabetical order) have made donations or loans of hardware and/or money, to support NetBSD development, and deserve credit for it: Bay Area Internet Solutions Jason Brazile Dave Burgess Canada Connect Corporation James Chacon Bill Coldwell Charles Conn Brian Carlstrom Tom Coulter Charles D. Cranor Demon Internet, UK Easynet, UK Free Hardware Foundation Greg Gingerich Michael L. Hitch Scott Kaplan Chris Legrow MS Macro System GmbH, Germany Herb Peyerl Mike Price Thor Lancelot Simon Bill Sommerfeld Paul Southworth Jason R. Thorpe Steve Wadlow (If you're not on that list and should be, tell us! We probably were not able to get in touch with you, to verify that you wanted to be listed.) Finally, we thank all of the people who've put sweat and tears into developing NetBSD since its inception in January, 1993. (Obviously, there are a lot more people who deserve thanks here. If you're one of them, and would like to mentioned, tell us!) We are: -- --- (in alphabetical order) The NetBSD core group: J.T. Conklin Charles Hannum Paul Kranenburg Jason Thorpe Christos Zoulas The port-masters (and their ports): Allen Briggs (mac68k) Mark Brinicombe (arm32) Chuck Cranor (mvme68k) Chris G. Demetriou (alpha) Charles Hannum (i386) Chris Hopps (amiga) Paul Kranenburg (sparc) Anders Magnusson (vax) Phil Nelson (pc532) Masaru Oki (x68k) Gordon Ross (sun3) Jonathan Stone (pmax) Jason Thorpe (hp300) Frank van der Linden (i386) Leo Weppelman (atari) Supporting cast: Steve Allen John Brezak Aaron Brown Dave Burgess Bill Coldwell Bernd Ernesti Hubert Feyrer Brian R. Gaeke Adam Glass Michael Graff Brad Grantham Matthew Green Michael L. Hitch Lawrence Kesteloot John Kohl Ted Lemon Paul Mackerras Neil J. McRae Perry Metzger Herb Peyerl Matthias Pfaller Chris Provenzano Waldi Ravens Scott Reynolds Karl Schilke (rAT) Thor Lancelot Simon Noriyuki Soda Wolfgang Solfrank Ignatios Souvatzis Kevin Sullivan Legal Mumbo-jumbo: ----- ----- ----- The following notices are required to satisfy the license terms of the software that we have mentioned in this document: This product includes software developed by the University of California, Berkeley and its contributors. This product includes software developed by the Computer Systems Engineering Group at Lawrence Berkeley Laboratory. This product includes software developed by the NetBSD Foundation, Inc. and its contributors. This product includes software developed by Christopher G. Demetriou for the NetBSD Project. This product includes software developed by Adam Glass. This product includes software developed by Christian E. Hopps. This product includes software developed by John Kohl. This product includes software developed by Paul Kranenburg. This product includes software developed by Terrence R. Lambert. This product includes software developed for the NetBSD Project by Frank van der Linden. This product includes software developed by Philip A. Nelson. This product includes software developed by Jochen Pohl for the NetBSD Project. This product includes software developed by Chris Provenzano. This product includes software developed by Theo de Raadt. This product includes software developed by the David Muir Sharnoff. This product includes software developed by SigmaSoft, Th. Lockert. This product includes software developed for the NetBSD Project by Jason R. Thorpe. This product includes software developed by Jason R. Thorpe for And Communications, http://www.and.com/ This product includes software developed by TooLs GmbH. This product includes software developed for the NetBSD Project by John M. Vinopal. This product includes software developed by Christos Zoulas. This product includes software developed by Charles Hannum. This product includes software developed by Charles Hannum, by the University of Vermont and State Agricultural College and Garrett A. Wollman, by William F. Jolitz, and by the University of California, Berkeley, Lawrence Berkeley Laboratory, and its contributors. This product includes software developed by the University of Vermont and State Agricultural College and Garrett A. Wollman. This product includes software developed by Dean Huxley. This product includes software developed by Herb Peyerl. In the following statement, "This software" refers to the Mitsumi CD-ROM driver: This software was developed by Holger Veit and Brian Moore for use with "386BSD" and similar operating systems. "Similar operating systems" includes mainly non-profit oriented systems for research and education, including but not restricted to "NetBSD", "FreeBSD", "Mach" (by CMU). In the following statement, "This software" refers to the parallel port driver: This software is a component of "386BSD" developed by William F. Jolitz, TeleMuse.