home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / docs / kernel-h < prev    next >
Encoding:
Text File  |  1996-07-11  |  51.9 KB  |  1,181 lines

  1.   The Linux Kernel HOWTO
  2.   Brian Ward, bri@blah.math.tu-graz.ac.at
  3.   v0.51, 22 February 1996
  4.  
  5.   This is a detailed guide to kernel configuration, compilation, and
  6.   upgrades.
  7.  
  8.   1.  Introduction
  9.  
  10.   This is release 0.51 of the Kernel-HOWTO. Should you read this
  11.   document?  Well, see if you've got any of the following symptoms:
  12.  
  13.   ╖  ``Arg! This wizzo-46.5.6 package says it needs kernel release
  14.      1.1.193 and I still only have release 1.0.9!''
  15.  
  16.   ╖  There's a device driver in one of the newer kernels that you just
  17.      gotta have
  18.  
  19.   ╖  You really have no idea at all how to compile a kernel
  20.  
  21.   ╖  ``Is this stuff in the README really the whole story?''
  22.  
  23.   ╖  You came, you tried, it didn't work
  24.  
  25.   ╖  You know how to compile and install a kernel, and people seem to
  26.      know this. Therefore, they keep whining to you to help them install
  27.      their kernels.
  28.  
  29.   1.1.  Read this first! (I mean it)
  30.  
  31.   Some of the examples in this document assume that you have GNU tar,
  32.   find, and xargs. These are quite standard; this should not cause
  33.   problems. It is also assumed that you know your system's filesystem
  34.   structure; if you don't, it is critical that you keep a written copy
  35.   of the mount command's output during normal system operation (or a
  36.   listing of /etc/fstab, if you can read it). This information is
  37.   important, and does not change unless you repartition your disk, add a
  38.   new one, reinstall your system, or something similar.
  39.  
  40.   The latest ``production'' kernel version at the time of this writing
  41.   was 1.2.13, meaning that the references and examples correspond to
  42.   that release. Even though I try to make this document as version-
  43.   independent as possible, the kernel is constantly under development,
  44.   so if you get a newer release, it will inevitably have some
  45.   differences. Again, this should not cause major problems, but it may
  46.   create some confusion.
  47.  
  48.   There are two versions of the linux kernel source, ``production'' and
  49.   ``development.'' Production releases begin with 1.0.x and are
  50.   currently the even-numbered releases; 1.0.x was production, 1.2.x is
  51.   production, and 1.4.x is expected to be the same. These kernels are
  52.   considered to be the most stable, bug-free versions available at the
  53.   time of release. The development kernels (1.1.x, 1.3.x, etc) are meant
  54.   as testing kernels, for people willing to test out new and possibly
  55.   very buggy kernels. You have been warned.
  56.  
  57.   1.2.  A word on style
  58.  
  59.   Text that looks like this is either something that appears on your
  60.   screen, a filename, or something that can be directly typed in, such
  61.   as a command, or options to a command (if you're looking at a plain-
  62.   text file, it doesn't look any different). Commands and other input
  63.   are frequently quoted (with ` '), which causes the following classic
  64.   punctuation problem: if such an item appears at the end of a sentence
  65.   in quotes, people often type a `.' along with the command, because the
  66.   American quoting style says to put the period inside of the quotation
  67.   marks. Even though common sense (and unfortunately, this assumes that
  68.   the one with the ``common sense'' is used to the so-called American
  69.   style of quotation) should tell one to strip off the punctuation
  70.   first, many people simply do not remember, so I will place it outside
  71.   the quotation marks in such cases. In other words, when indicating
  72.   that you should type ``make config'' I would write `make config', not
  73.   `make config.'
  74.  
  75.   2.  Important questions and their answers
  76.  
  77.   2.1.  What does the kernel do, anyway?
  78.  
  79.   The Unix kernel acts as a mediator for your programs and your
  80.   hardware.  First, it does (or arranges for) the memory management for
  81.   all of the running programs (processes), and makes sure that they all
  82.   get a fair (or unfair, if you please) share of the processor's cycles.
  83.   In addition, it provides a nice, fairly portable interface for
  84.   programs to talk to your hardware.
  85.  
  86.   There is certainly more to the kernel's operation than this, but these
  87.   basic functions are the most important to know.
  88.  
  89.   2.2.  Why would I want to upgrade my kernel?
  90.  
  91.   Newer kernels generally offer the ability to talk to more types of
  92.   hardware (that is, they have more device drivers), they can have
  93.   better process management, they can run faster than the older
  94.   versions, they could be more stable than the older versions, and they
  95.   fix silly bugs in the older versions. Most people upgrade kernels
  96.   because they want the device drivers and the bug-fixes.
  97.  
  98.   2.3.  What kind of hardware do the newer kernels support?
  99.  
  100.   See the Hardware-HOWTO. Alternatively, you can look at the `config.in'
  101.   file in the linux source, or just find out when you try `make config'.
  102.   This shows you all hardware supported by the standard kernel
  103.   distribution, but not everything that linux supports; many common
  104.   device drivers (such as the PCMCIA drivers and some tape drivers) are
  105.   loadable modules maintained and distributed separately.
  106.  
  107.   2.4.  What version of gcc and libc do I need?
  108.  
  109.   Linus recommends a version of gcc in the README file included with the
  110.   linux source. If you don't have this version, the documentation in the
  111.   recommended version of gcc should tell you if you need to upgrade your
  112.   libc.  This is not a difficult procedure, but it is important to
  113.   follow the instructions.
  114.  
  115.   2.5.  What's a loadable module?
  116.  
  117.   These are pieces of kernel code which are not linked (included)
  118.   directly in the kernel. One compiles them separately, and can insert
  119.   and remove them into the running kernel at almost any time. Due to its
  120.   flexibility, this is now the preferred way to code certain kernel
  121.   features. Many popular device drivers, such as the PCMCIA drivers and
  122.   the QIC-80/40 tape driver, are loadable modules.
  123.  
  124.   2.6.  How much disk space do I need?
  125.  
  126.   It depends on your particular system configuration. First, the
  127.   compressed linux source is 2.35 megabytes large at version 1.2.0. Most
  128.   keep this even after unpacking.  Uncompressed, it takes up 10 MB. But
  129.   that's not the end -- you need more to actually compile the thing.
  130.   This depends on how much you configure into your kernel. For example,
  131.   on my 386, I have networking, the 3Com 3C503 driver, and five
  132.   filesystems configured, using 18 MB. Adding the compressed linux
  133.   source, you need about 20 MB for this particular configuration. On
  134.   another system, without network device support (but still with
  135.   networking support), and sound card support, it consumes 14 MB. Also,
  136.   a newer kernel is certain to have a larger source tree than an older
  137.   one, so, in general, if you have a lot of hardware, make sure that you
  138.   have a big enough hard disk in that mess (and at today's prices, I
  139.   cannot help but to recommend getting another disk space as an answer
  140.   to your storage problems).
  141.  
  142.   2.7.  How long does it take?
  143.  
  144.   For most people, the answer is ``fairly long.'' The speed of your
  145.   system and the amount of memory you have ultimately determines the
  146.   time, but there is a small bit to do with the amount of stuff you
  147.   configure into the kernel. On a 486DX4/100 with 16 MB of RAM, on a
  148.   v1.2 kernel with five filesystems, networking support, and sound card
  149.   drivers, it takes around 20 minutes. On a 386DX/40 (8 MB RAM) with a
  150.   similar configuration, compilation lasts nearly 1.5 hours. It is a
  151.   generally good recommendation to make a little coffee, watch some TV,
  152.   knit, or whatever you do for fun while your machine compiles the
  153.   kernel. You can have someone else with a faster machine compile it for
  154.   you if you really have a slow machine.
  155.  
  156.   3.  How to actually configure the kernel
  157.  
  158.   3.1.  Getting the source
  159.  
  160.   You can obtain the source via anonymous ftp from ftp.funet.fi in
  161.   /pub/OS/Linux/PEOPLE/Linus, a mirror, or other sites.  It is typically
  162.   labelled linux-x.y.z.tar.gz, where x.y.z is the version number. Newer
  163.   (better?) versions and the patches are typically in subdirectories
  164.   such as `v1.1' and `v1.2' The highest number is the latest version,
  165.   and is usually a ``test release,'' meaning that if you feel uneasy
  166.   about beta or alpha releases, you should stay with a major release.
  167.  
  168.   I strongly suggest that you use a mirror ftp site instead of
  169.   ftp.funet.fi. Here is a short list of mirrors and other sites:
  170.  
  171.   USA:         tsx-11.mit.edu:/pub/linux/sources/system
  172.   USA:         sunsite.unc.edu:/pub/Linux/kernel
  173.   UK:          sunsite.doc.ic.ac.uk:/pub/unix/Linux/sunsite.unc-mirror/kernel
  174.   Austria:     fvkma.tu-graz.ac.at:/pub/linux/linus
  175.   Germany:     ftp.Germany.EU.net:/pub/os/Linux/Local.EUnet/Kernel/Linus
  176.   Germany:     sunsite.informatik.rwth-aachen.de:/pub/Linux/PEOPLE/Linus
  177.   France:      ftp.ibp.fr:/pub/linux/sources/system/patches
  178.   Australia:   ftp.dstc.edu.au:/pub/linux/kernel
  179.  
  180.   If you do not have ftp access, a list of BBS systems which carry linux
  181.   is posted periodically to comp.os.linux.announce; try to obtain this.
  182.  
  183.   3.2.  Unpacking the source
  184.  
  185.   Log in as or su to `root', and cd to /usr/src.  If you installed
  186.   kernel source when you first installed linux (as most do), there will
  187.   already be a directory called `linux' there, which contains the entire
  188.   old source tree.  If you have the disk space and you want to play it
  189.   safe, preserve that directory. A good idea is to figure out what
  190.   version your system runs now and rename the directory accordingly. The
  191.   command `uname -r' prints the current kernel version.  Therefore, if
  192.   `uname -r' said `1.0.9', you would rename (with `mv') `linux' to
  193.   `linux-1.0.9'.  If you feel mildly reckless, just wipe out the entire
  194.   directory. In any case, make certain there is no `linux' directory in
  195.   /usr/src before unpacking the full source code.
  196.  
  197.   Now, in /usr/src, unpack the source with `tar zxpvf linux-
  198.   x.y.z.tar.gz' (if you've just got a .tar  file with no .gz at the end,
  199.   `tar xpvf linux-x.y.z.tar' works.).  The contents of the source will
  200.   fly by. When finished, there will be a new `linux' directory in
  201.   /usr/src. cd to linux and look over the README  file.  There will be a
  202.   section with the label `INSTALLING the kernel'.  Carry out the
  203.   instructions when appropriate -- symbolic links that should be in
  204.   place, removal of stale .o files, etc.
  205.  
  206.   3.3.  Configuring the kernel
  207.  
  208.   Note: Some of this is reiteration/clarification of a similar section
  209.   in Linus' README file.
  210.  
  211.   The command `make config' while in /usr/src/linux starts a configure
  212.   script which asks you many questions. It requires bash, so verify that
  213.   bash is /bin/bash, /bin/sh, or $BASH.
  214.  
  215.   You are ready to answer the questions, usually with `y' (yes) or `n'
  216.   (no). Some of the more obvious and non-critical options are not
  217.   described here; see the section ``Other configuration options'' for
  218.   short descriptions of a few others.
  219.  
  220.   3.3.1.  Kernel math emulation
  221.  
  222.   If you don't have a math coprocessor (you have a bare 386 or 486SX),
  223.   you must say `y' to this. If you do have a coprocessor and you still
  224.   say `y', don't worry too much -- the coprocessor is still used and the
  225.   emulation ignored. The only consequence is that the kernel will be
  226.   larger (costing RAM). I have been told that the math emulation is
  227.   slow; although this does not have much to do with this section, it
  228.   might be something to keep in mind when faced with sluggish X window
  229.   system performance.
  230.  
  231.   3.3.2.  Normal (MFM/RLL) disk and IDE disk/cdrom support
  232.  
  233.   You probably need to support this; it means that the kernel will
  234.   support standard PC hard disks, which most people have. This driver
  235.   does not include SCSI drives; they come later in the configuration.
  236.  
  237.   You will then be asked about the ``old disk-only'' and ``new IDE''
  238.   drivers.  You want to choose one of them; the main difference is that
  239.   the old driver only supports two disks on a single interface, and the
  240.   new one supports a secondary interface and IDE/ATAPI cdrom drives. The
  241.   new driver is 4k larger than the old one and is also supposedly
  242.   ``improved,'' meaning that aside from containing a different number of
  243.   bugs, it might improve your disk performance, especially if you have
  244.   newer (EIDE-type) hardware.
  245.  
  246.   3.3.3.  Networking support
  247.  
  248.   In principle, you would only say `y' if your machine is on a network
  249.   such as the internet, or you want to use SLIP, PPP, term, etc to dial
  250.   up for internet access. However, as many packages (such as the X
  251.   window system) require networking support even if your machine does
  252.   not live on a real network, you should say `y'. Later on, you will be
  253.   asked if you want to support TCP/IP networking; again, say `y' here if
  254.   you are not absolutely sure.
  255.  
  256.   3.3.4.  Limit memory to low 16MB
  257.  
  258.   There exist buggy 386 DMA controllers which have problems with
  259.   addressing anything more than 16 MB of RAM; you want to say `y' in the
  260.   (rare) case that you have one.
  261.  
  262.   3.3.5.  System V IPC
  263.  
  264.   One of the best definitions of IPC (Interprocess Communication) is in
  265.   the Perl book's glossary. Not surprisingly, some Perl programmers
  266.   employ it to let processes talk to each other, as well as many other
  267.   packages (DOOM, most notably), so it is not a good idea to say n
  268.   unless you know exactly what you are doing.
  269.  
  270.   3.3.6.  Use -m486 flag for 486-specific optimizations
  271.  
  272.   This optimizes the kernel for use on a 486 processor. A ``486'' kernel
  273.   will be slightly larger, but will work fine on a 386.
  274.  
  275.   3.3.7.  SCSI support
  276.  
  277.   If you have SCSI devices, say `y'. You will be prompted for further
  278.   information, such as support for CD-ROM, disks, and what kind of SCSI
  279.   adapter you have. See the SCSI-HOWTO for greater detail.
  280.  
  281.   3.3.8.  Network device support
  282.  
  283.   If you have a network card, or you would like to use SLIP, PPP, or a
  284.   parallel port adapter for connecting to the Internet, say `y'. The
  285.   config script will prompt for which kind of card you have, and which
  286.   protocol to use.
  287.  
  288.   3.3.9.  Filesystems
  289.  
  290.   The configure script then asks if you wish to support the following
  291.   filesystems:
  292.  
  293.   Standard (minix) - Newer distributions don't create minix filesystems,
  294.   and many people don't use it, but it may still be a good idea to
  295.   configure this one. Some ``rescue disk'' programs use it, and still
  296.   more floppies may have a minix filesystem, since the minix filesystem
  297.   is less painful to use on a floppy.
  298.  
  299.   Extended fs - This was the first version of the extended filesystem,
  300.   which is no longer in widespread use. Chances are that you'll know it
  301.   if you need it and that if you are doubt, you do not need it.
  302.  
  303.   Second extended - This is widely used in new distributions. You
  304.   probably have one of these, and need to say `y'.
  305.  
  306.   xiafs filesystem - At one time, this was not uncommon, but at the time
  307.   of this writing, I did not know of anyone using it.
  308.  
  309.   msdos - If you want to use your MS-DOS hard disk partitions, or mount
  310.   MS-DOS formatted floppy disks, say `y'.
  311.  
  312.   umsdos - This filesystem expands an MS-DOS filesystem with usual Unix-
  313.   like features such as long filenames. It is not useful for people
  314.   (like me) who ``don't do DOS.''
  315.  
  316.   /proc - Another one of the greatest things since powdered milk (idea
  317.   shamelessly stolen from Bell Labs, I guess). One doesn't make a proc
  318.   filesystem on a disk; this is a filesystem interface to the kernel and
  319.   processes. Many process listers (such as `ps') use it. Try `cat
  320.   /proc/meminfo' or `cat /proc/devices' sometime.  Some shells (rc, in
  321.   particular) use /proc/self/fd  (known as /dev/fd on other systems) for
  322.   I/O. You should almost certainly say `y' to this; many important linux
  323.   tools depend on it.
  324.  
  325.   NFS - If your machine lives on a network and you want to use
  326.   filesystems which reside on other systems with NFS, say `y'.
  327.  
  328.   ISO9660 - Found on most CD-ROMs. If you have a CD-ROM drive and you
  329.   wish to use it under Linux, say `y'.
  330.  
  331.   OS/2 HPFS - At the time of this writing, a read-only fs for OS/2 HPFS.
  332.  
  333.   System V and Coherent - for partitions of System V and Coherent
  334.   systems (These are other PC Unix variants).
  335.  
  336.   3.3.9.1.  But I don't know which filesystems I need!
  337.  
  338.   Ok, type `mount'. The output will look something like this:
  339.  
  340.            blah# mount
  341.            /dev/hda1 on / type ext2 (defaults)
  342.            /dev/hda3 on /usr type ext2 (defaults)
  343.            none on /proc type proc (defaults)
  344.            /dev/fd0 on /mnt type msdos (defaults)
  345.  
  346.   Look at each line; the word next to `type' is the filesystem type. In
  347.   this example, my /  and /usr filesystems are second extended, I'm
  348.   using /proc, and there's a floppy disk mounted using the msdos (bleah)
  349.   filesystem.
  350.  
  351.   You can try `cat /proc/filesystems' if you have /proc currently
  352.   enabled; it will list your current kernel's filesystems.
  353.  
  354.   The configuration of rarely-used, non-critical filesystems can cause
  355.   kernel bloat; see the section on modules for a way to avoid this and
  356.   the ``Pitfalls'' section on why a bloated kernel is undesirable.
  357.  
  358.   3.3.10.  Character devices
  359.  
  360.   Here, you enable the drivers for your printer (parallel printer, that
  361.   is), busmouse, PS/2 mouse (many notebooks use the PS/2 mouse protocol
  362.   for their built-in trackballs), some tape drives, and other such
  363.   ``character'' devices. Say `y' when appropriate.
  364.  
  365.   Note: Selection is a program which allows the use of the mouse outside
  366.   of the X window system for cut and paste between virtual consoles.
  367.   It's fairly nice if you have a serial mouse, because it coexists well
  368.   with X, but you need to do special tricks for others. Selection
  369.   support was a configuration option at one time, but is now standard.
  370.  
  371.   Note 2: Selection is now considered obsolete. ``gpm'' is the name of
  372.   the new program. It can do fancier things, such translate mouse
  373.   protocols, handle multiple mice, ..
  374.  
  375.   3.3.11.  Sound card
  376.  
  377.   If you feel a great desire to hear biff bark, say `y', and later on,
  378.   another config program will compile and ask you all about your sound
  379.   board. (A note on sound card configuration: when it asks you if you
  380.   want to install the full version of the driver, you can say `n' and
  381.   save some kernel memory by picking only the features which you deem
  382.   necessary.) I highly recommend looking at the  Sound-HOWTO for more
  383.   detail about sound support if you have a sound card.
  384.  
  385.   3.3.12.  Other configuration options
  386.  
  387.   Not all of the configuration options are listed here because they
  388.   change too often or fairly self-evident (for instance, 3Com 3C509
  389.   support to compile the device drive for this particular ethernet
  390.   card).  There exists a fairly comprehensive list of all the options
  391.   (plus a way to place them into the Configure script) put together by
  392.   Axel Boldt (axel@uni-paderborn.de) with the following URL:
  393.  
  394.        http://math-www.uni-paderborn.de/~axel/config_help.html
  395.  
  396.   or via anonymous FTP at:
  397.  
  398.        ftp://sunsite.unc.edu/pub/Linux/kernel/config/krnl_cnfg_hlp.x.yz.tgz
  399.  
  400.   where the x.yz is the version number.
  401.  
  402.   3.3.13.  Kernel hacking
  403.  
  404.   >From Linus' README:
  405.  
  406.   the ``kernel hacking'' configuration details usually result in a
  407.   bigger or slower kernel (or both), and can even make the kernel less
  408.   stable by configuring some routines to actively try to break bad code
  409.   to find kernel problems (kmalloc()).  Thus you should probably answer
  410.   `n' to the questions for a ``production'' kernel.
  411.  
  412.   3.4.  Now what? (The Makefile)
  413.  
  414.   After you make config, a message tells you that your kernel has been
  415.   configured, and to ``check the top-level Makefile for additional
  416.   configuration,'' etc.
  417.  
  418.   So, look at the Makefile. You probably will not need to change it, but
  419.   it never hurts to look. You can also change its options with the
  420.   `rdev' command once the new kernel is in place.
  421.  
  422.   4.  Compiling the kernel
  423.  
  424.   4.1.  Cleaning and depending
  425.  
  426.   When the configure script ends, it also tells you to `make dep' and
  427.   `clean'.  So, do the `make dep'. This insures that all of the
  428.   dependencies, such the include files, are in place. It does not take
  429.   long, unless your computer is fairly slow to begin with.  When
  430.   finished, do a `make clean'.  This removes all of the object files and
  431.   some other things that an old version leaves behind. Do not forget
  432.   this step.
  433.  
  434.   4.2.  Compile time
  435.  
  436.   After depending and cleaning, you may now `make zImage' or `make
  437.   zdisk' (this is the part that takes a long time.).  `make zImage' will
  438.   compile the kernel, and leave a file in arch/i386/boot called `zImage'
  439.   (among other things). This is the new compressed kernel. `make zdisk'
  440.   does the same thing, but also places the new zImage on a floppy disk
  441.   which you hopefully put in drive ``A:''.  `zdisk' is fairly handy for
  442.   testing new kernels; if it bombs (or just doesn't work right), just
  443.   remove the floppy and boot with your old kernel. It can also be a
  444.   handy way to boot if you accidentally remove your kernel (or something
  445.   equally as dreadful). You can also use it to install new systems when
  446.   you just dump the contents of one disk onto the other (``all this and
  447.   more! NOW how much would you pay?'').
  448.  
  449.   All even halfway reasonably recent kernels are compressed, hence the
  450.   `z' in front of the names. A compressed kernel automatically
  451.   decompresses itself when executed.
  452.  
  453.   4.3.  Other ``make''ables
  454.  
  455.   `make mrproper' will do a more extensive `clean'ing.  It is sometimes
  456.   necessary; you may wish to do it at every patch. See the section on
  457.   modules for a description of `make modules'.
  458.  
  459.   4.4.  Installing the kernel
  460.  
  461.   After you have a new kernel that seems to work the way you want it to,
  462.   it's time to install it. Most people use LILO (Linux Loader) for this.
  463.   `make zlilo' will install the kernel, run LILO on it, and get you all
  464.   ready to boot, BUT ONLY if lilo is configured in the following way on
  465.   your system: kernel is /vmlinuz, lilo is in /sbin, and your lilo
  466.   config (/etc/lilo.conf) agrees with this.
  467.  
  468.   Otherwise, you need to use LILO directly. It's a fairly easy package
  469.   to install and work with, but it has a tendency to confuse people with
  470.   the configuration file.  Look at the config file (either
  471.   /etc/lilo/config for older versions or /etc/lilo.conf for new
  472.   versions), and see what the current setup is. The config file looks
  473.   like this:
  474.  
  475.       image = /vmlinuz
  476.           label = Linux
  477.           root = /dev/hda1
  478.           ...
  479.  
  480.   The `image =' is set to the currently installed kernel.  Most people
  481.   use /vmlinuz. `label' is used by lilo to determine which kernel or
  482.   operating system to boot, and `root' is the / of that particular
  483.   operating system. Make a backup copy of your old kernel and copy the
  484.   zImage which you just made into place (you would say `cp zImage
  485.   /vmlinuz' if you use `/vmlinuz').  Then, rerun lilo -- on newer
  486.   systems, you can just run `lilo', but on older stuff, you might have
  487.   to do an /etc/lilo/install or even an /etc/lilo/lilo -C
  488.   /etc/lilo/config.
  489.  
  490.   If you would like to know more about LILO's configuration, or you
  491.   don't have LILO, get the newest version from your favorite ftp site
  492.   and follow the instructions.
  493.  
  494.   To boot one of your old kernels off the hard disk (another way to save
  495.   yourself in case you screw up the new kernel), copy the lines below
  496.   (and including) `image = xxx' in the LILO config file to the bottom of
  497.   the file, and change the `image = xxx' to `image = yyy', where `yyy'
  498.   is the full pathname of the file you saved your backup kernel to.
  499.   Then, change the `label = zzz' to `label = linux-backup' and rerun
  500.   lilo. You may need to put a line in the config file saying `delay=x',
  501.   where x is an amount in tenths of a second, which tells LILO to wait
  502.   that much time before booting, so that you can interrupt it (with the
  503.   shift key, for example), and type in the label of the backup boot
  504.   image (in case unpleasant things happen).
  505.  
  506.   5.  Patching the kernel
  507.  
  508.   5.1.  Applying a patch
  509.  
  510.   Incremental upgrades of the kernel are distributed as patches. For
  511.   example, if you have version 1.1.45, and you notice that there's a
  512.   `patch46.gz' out there for it, it means you can upgrade to version
  513.   1.1.46 through application of the patch. You might want to make a
  514.   backup of the source tree first (`make clean' and then `cd /usr/src;
  515.   tar zcvf old-tree.tar.gz linux' will make a compressed tar archive for
  516.   you.).
  517.  
  518.   So, continuing with the example above, let's suppose that you have
  519.   `patch46.gz' in /usr/src. cd to /usr/src  and do a `zcat patch46.gz |
  520.   patch -p0' (or `patch -p0 < patch46' if the patch isn't compressed).
  521.   You'll see things whizz by (or flutter by, if your system is that
  522.   slow) telling you that it is trying to apply hunks, and whether it
  523.   succeeds or not. Usually, this action goes by too quickly for you to
  524.   read, and you're not too sure whether it worked or not, so you might
  525.   want to use the -s flag to patch, which tells patch to only report
  526.   error messages (you don't get as much of the ``hey, my computer is
  527.   actually doing something for a change!'' feeling, but you may prefer
  528.   this..). To look for parts which might not have gone smoothly, cd to
  529.   /usr/src/linux  and look for files with a .rej extension. Some
  530.   versions of patch (older versions which may have been compiled with on
  531.   an inferior filesystem) leave the rejects with a # extension. You can
  532.   use `find' to look for you;
  533.  
  534.       find .  -name '*.rej' -print
  535.  
  536.   prints all files who live in the current directory or any subdirecto¡
  537.   ries with a .rej extension to the standard output.
  538.  
  539.   If everything went right, do a `make clean', `config', and `dep' as
  540.   described in sections 3 and 4.
  541.  
  542.   There are quite a few options to the patch command. As mentioned
  543.   above, patch -s will suppress all messages except the errors. If you
  544.   keep your kernel source in some other place than /usr/src/linux, patch
  545.   -p1 (in that directory) will patch things cleanly. Other patch options
  546.   are well-documented in the manual page.
  547.  
  548.   5.2.  If something goes wrong
  549.  
  550.   The most frequent problem that used to arise was when a patch modified
  551.   a file called `config.in' and it didn't look quite right, because you
  552.   changed the options to suit your machine. This has been taken care of,
  553.   but one still might encounter it with an older release.  To fix it,
  554.   look at the config.in.rej  file, and see what remains of the original
  555.   patch.  The changes will typically be marked with `+' and `-' at the
  556.   beginning of the line. Look at the lines surrounding it, and remember
  557.   if they were set to `y' or `n'. Now, edit config.in, and change `y' to
  558.   `n' and `n' to `y' when appropriate. Do a
  559.  
  560.       patch -p0 < config.in.rej
  561.  
  562.   and if it reports that it succeeded (no fails), then you can continue
  563.   on with a configuration and compilation. The config.in.rej file will
  564.   remain, but you can get delete it.
  565.  
  566.   If you encounter further problems, you might have installed a patch
  567.   out of order. If patch says `previously applied patch detected: Assume
  568.   -R?', you are probably trying to apply a patch which is below your
  569.   current version number; if you answer `y', it will attempt to degrade
  570.   your source, and will most likely fail; thus, you will need to get a
  571.   whole new source tree (which might not have been such a bad idea in
  572.   the first place).
  573.  
  574.   To back out (unapply) a patch, use `patch -R' on the original patch.
  575.  
  576.   The best thing to do when patches really turn out wrong is to start
  577.   over again with a clean, out-of-the-box source tree (for example, from
  578.   one of the linux-x.y.z.tar.gz  files), and start again.
  579.  
  580.   5.3.  Getting rid of the .orig files
  581.  
  582.   After just a few patches, the .orig  files will start to pile up. For
  583.   example, one 1.1.51 tree I had was once last cleaned out at 1.1.48.
  584.   Removing the .orig files saved over a half a meg.
  585.  
  586.       find .  -name '*.orig' -exec rm -f {} ';'
  587.  
  588.   will take care of it for you. Versions of patch which use # for
  589.   rejects use a tilde instead of .orig.
  590.  
  591.   There are better ways to get rid of the .orig files, which depend on
  592.   GNU xargs:
  593.  
  594.       find .  -name '*.orig' | xargs rm
  595.  
  596.   or the ``quite secure but a little more verbose'' method:
  597.  
  598.       find . -name '*.orig' -print0 | xargs --null rm --
  599.  
  600.   5.4.  Other patches
  601.  
  602.   There are other patches (I'll call them ``nonstandard'') than the ones
  603.   Linus distributes. If you apply these, Linus' patches may not work
  604.   correctly and you'll have to either back them out, fix the source or
  605.   the patch, install a new source tree, or a combination of the above.
  606.   This can become very frustrating, so if you do not want to modify the
  607.   source (with the possibility of a very bad outcome), back out the
  608.   nonstandard patches before applying Linus', or just install a new
  609.   tree. Then, you can see if the nonstandard patches still work. If they
  610.   don't, you are either stuck with an old kernel, playing with the patch
  611.   or source to get it to work, or waiting (possibly begging) for a new
  612.   version of the patch to come out.
  613.  
  614.   How common are the patches not in the standard distribution? You will
  615.   probably hear of them. I used to use the noblink patch for my virtual
  616.   consoles because I hate blinking cursors (This patch is (or at least
  617.   was) frequently updated for new kernel releases.). With most newer
  618.   device drivers being developed as loadable modules, though, the
  619.   frequecy of ``nonstandard'' patches is decreasing significantly.
  620.  
  621.   6.  Additional packages
  622.  
  623.   Your linux kernel has many features which are not explained in the
  624.   kernel source itself; these features are typically utilized through
  625.   external packages. Some of the most common are listed here.
  626.  
  627.   6.1.  kbd
  628.  
  629.   The linux console probably has more features than it deserves. Among
  630.   these are the ability to switch fonts, remap your keyboard, switch
  631.   video modes (in newer kernels), etc. The kbd package has programs
  632.   which allow the user to do all of this, plus many fonts and keyboard
  633.   maps for almost any keyboard, and is available from the same sites
  634.   that carry the kernel source.
  635.  
  636.   6.2.  util-linux
  637.  
  638.   Rik Faith (faith@cs.unc.edu) keeps a large collection of linux
  639.   utilities which are, by odd coincidence, called util-linux. Available
  640.   via anonymous ftp from sunsite.unc.edu in /pub/Linux/system/Misc, it
  641.   contains programs such as setterm, rdev, and ctrlaltdel, which are
  642.   relevant to the kernel. As Rik says, do not install without thinking;
  643.   you do not need to install everything in the package, and it could
  644.   very well cause serious problems if you do.
  645.  
  646.   6.3.  hdparm
  647.  
  648.   As with many packages, this was once a kernel patch and support
  649.   programs.  The patches made it into the official kernel, and the
  650.   programs to optimize and play with your hard disk are distributed
  651.   separately.
  652.  
  653.   6.4.  gpm
  654.  
  655.   gpm stands for general purpose mouse. This program allows you to cut
  656.   and paste text between virtual consoles and do other things with a
  657.   large variety of mouse types.
  658.  
  659.   7.  Some pitfalls
  660.  
  661.   7.1.  make clean
  662.  
  663.   If your new kernel does really weird things after a routine kernel
  664.   upgrade, chances are you forgot to make clean before compiling the new
  665.   kernel. Symptoms can be anything from your system outright crashing,
  666.   strange I/O problems, to crummy performance. Make sure you do a make
  667.   dep, too.
  668.  
  669.   7.2.  Huge or slow kernels
  670.  
  671.   If your kernel is sucking up a lot of memory, is too large, and/or
  672.   just takes forever to compile even when you've got your new 786DX6/440
  673.   working on it, you've probably got lots of unneeded stuff (device
  674.   drivers, filesystems, etc) configured. If you don't use it, don't
  675.   configure it, because it does take up memory.  The most obvious
  676.   symptom of kernel bloat is extreme swapping in and out of memory to
  677.   disk; if your disk is making a lot of noise and it's not one of those
  678.   old Fujitsu Eagles that sound like like a jet landing when turned off,
  679.   look over your kernel configuration.
  680.  
  681.   You can find out how much memory the kernel is using by taking the
  682.   total amount of memory in your machine and subtracting it from the
  683.   amount of ``total mem'' in /proc/meminfo  or the output of the command
  684.   `free'. You can also find out by doing a `dmesg' (or by looking at the
  685.   kernel log file, wherever it is on your system).  There will be a line
  686.   which looks like this:
  687.  
  688.   Memory: 15124k/16384k available (552k kernel code, 384k reserved, 324k
  689.   data)
  690.  
  691.   My 386 (which has slightly less junk configured) says this:
  692.  
  693.   Memory: 7000k/8192k available (496k kernel code, 384k reserved, 312k
  694.   data)
  695.  
  696.   7.3.  Kernel doesn't compile
  697.  
  698.   If it does not compile, then it is likely that a patch failed, or your
  699.   source is somehow corrupt. Your version of gcc also might not be
  700.   correct, or could also be corrupt (for example, the include files
  701.   might be in error). Make sure that the symbolic links which Linus
  702.   describes in the README are set up correctly. In general, if a
  703.   standard kernel does not compile, something is seriously wrong with
  704.   the system, and reinstallation of certain tools is probably necessary.
  705.  
  706.   Or perhaps you're compiling a 1.2.x kernel with an ELF compiler (gcc
  707.   2.6.3 and higher). If you're getting a bunch of so-and-so undefined
  708.   messages during the compilation, chances are that this is your
  709.   problem. The fix is in most cases very simple. Add these lines to the
  710.   top of arch/i386/Makefile:
  711.  
  712.   AS=/usr/i486-linuxaout/bin/as
  713.   LD=/usr/i486-linuxaout/bin/ld -m i386linux
  714.   CC=gcc -b i486-linuxaout -D__KERNEL__ -I$(TOPDIR)/include
  715.  
  716.   Then make dep and zImage again.
  717.  
  718.   In very, very rare cases, gcc can crash due to hardware problems. The
  719.   error message will be something like ``xxx exited with signal 15'' and
  720.   it will generally look very mysterious. I probably would not mention
  721.   this, except that it happened to me once - I had some bad cache
  722.   memory, and the compiler would occasionally barf at random. Try
  723.   reinstalling gcc first if you experience problems. You should only get
  724.   suspicious if your kernel compiles fine with external cache turned
  725.   off, a reduced amount of RAM, etc.
  726.  
  727.   7.4.  New version of the kernel doesn't seem to boot
  728.  
  729.   You did not run LILO, or it is not configured correctly. One thing
  730.   that ``got'' me once was a problem in the config file; it said `boot =
  731.   /dev/hda1' instead of `boot = /dev/hda' (This can be really annoying
  732.   at first, but once you have a working config file, you shouldn't need
  733.   to change it.).
  734.  
  735.   7.5.  You forgot to run LILO, or system doesn't boot at all
  736.  
  737.   Ooops! The best thing you can do here is to boot off of a floppy disk
  738.   and prepare another bootable floppy (such as `make zdisk' would do).
  739.   You need to know where your root (/) filesystem is and what type it is
  740.   (e.g. second extended, minix). In the example below, you also need to
  741.   know what filesystem your /usr/src/linux source tree is on, its type,
  742.   and where it is normally mounted.
  743.  
  744.   In the following example, / is /dev/hda1, and the filesystem which
  745.   holds /usr/src/linux is /dev/hda3, normally mounted at /usr. Both are
  746.   second extended filesystems. The working kernel image in
  747.   /usr/src/linux/arch/i386/boot is called zImage.
  748.  
  749.   The idea is that if there is a functioning zImage, it is possible to
  750.   use that for the new floppy. Another alternative, which may or may not
  751.   work better (it depends on the particular method in which you messed
  752.   up your system) is discussed after the example.
  753.  
  754.   First, boot from a boot/root disk combo or rescue disk, and mount the
  755.   filesystem which contains the working kernel image:
  756.  
  757.       mkdir /mnt
  758.       mount -t ext2 /dev/hda3 /mnt
  759.  
  760.   If mkdir tells you that the directory already exists, just ignore it.
  761.   Now, cd to the place where the working kernel image was. Note that
  762.  
  763.   /mnt + /usr/src/linux/arch/i386/boot - /usr = /mnt/src/linux/arch/i386/boot
  764.  
  765.   Place a formatted disk in drive ``A:'' (not your boot or root disk!),
  766.   dump the image to the disk, and configure it for your root filesystem:
  767.  
  768.       cd /mnt/src/linux/arch/i386/boot
  769.       dd if=zImage of=/dev/fd0
  770.       rdev /dev/fd0 /dev/hda1
  771.  
  772.   cd to / and unmount the normal /usr filesystem:
  773.  
  774.       cd /
  775.       umount /mnt
  776.  
  777.   You should now be able to reboot your system as normal from this
  778.   floppy.  Don't forget to run lilo (or whatever it was that you did
  779.   wrong) after the reboot!
  780.  
  781.   As mentioned above, there is another common alternative. If you
  782.   happened to have a working kernel image in / (/vmlinuz for example),
  783.   you can use that for a boot disk. Supposing all of the above
  784.   conditions, and that my kernel image is /vmlinuz, just make these
  785.   alterations to the example above: change /dev/hda3 to /dev/hda1 (the /
  786.   filesystem), /mnt/src/linux to /mnt, and if=zImage to if=vmlinuz. The
  787.   note explaining how to derive /mnt/src/linux may be ignored.
  788.  
  789.   Using LILO with big drives (more than 1024 cylinders) can cause
  790.   problems.  See the LILO mini-HOWTO or documentation for help on that.
  791.  
  792.   7.6.  It says `warning: bdflush not running'
  793.  
  794.   This can be a severe problem. Starting with a kernel release after 1.0
  795.   (around 20 Apr 1994), a program called `update' which periodically
  796.   flushes out the filesystem buffers, was upgraded/replaced. Get the
  797.   sources to `bdflush' (you should find it where you got your kernel
  798.   source), and install it (you probably want to run your system under
  799.   the old kernel while doing this). It installs itself as `update' and
  800.   after a reboot, the new kernel should no longer complain.
  801.  
  802.   7.7.  It says stuff about undefined symbols and does not compile
  803.  
  804.   You probably have an ELF compiler (gcc 2.6.3 and up) and the 1.2.x (or
  805.   earlier) kernel source. The usual fix is to add these three lines to
  806.   the top of arch/i386/Makefile:
  807.  
  808.   AS=/usr/i486-linuxaout/bin/as
  809.   LD=/usr/i486-linuxaout/bin/ld -m i386linux
  810.   CC=gcc -b i486-linuxaout -D__KERNEL__ -I$(TOPDIR)/include
  811.  
  812.   This will compile a 1.2.x kernel with the a.out libraries.
  813.  
  814.   7.8.  I can't get my IDE/ATAPI CD-ROM drive to work
  815.  
  816.   Strangely enough, lots of people cannot get their ATAPI drives
  817.   working, probably because there are a number of things that can go
  818.   wrong.
  819.  
  820.   If your CD-ROM drive is the only device on a particular IDE interface,
  821.   it must be jumpered as ``master'' or ``single.'' Supposedly, this is
  822.   the most common error.
  823.  
  824.   Creative Labs (for one) has put IDE interfaces on their sound cards
  825.   now.  However, this leads to the interesting problem that while some
  826.   people only have one interface to being with, many have two IDE
  827.   interfaces built-in to their motherboards (at IRQ15, usually), so a
  828.   common practice is to make the soundblaster interface a third IDE port
  829.   (IRQ11, or so I'm told).
  830.  
  831.   This causes problems with linux in that versions 1.2.x don't support a
  832.   third IDE interface (there is support in starting somewhere in the
  833.   1.3.x series but that's development, remember, and it doesn't auto-
  834.   probe). To get around this, you have a few choices.
  835.  
  836.   If you have a second IDE port already, chances are that you are not
  837.   using it or it doesn't already have two devices on it. Take the ATAPI
  838.   drive off the sound card and put it on the second interface. You can
  839.   then disable the sound card's interface, which saves an IRQ anyway.
  840.  
  841.   If you don't have a second interface, jumper the sound card's
  842.   interface (not the sound card's sound part) as IRQ15, the second
  843.   interface. It should work.
  844.  
  845.   If for some reason it absolutely has to be on a so-called ``third''
  846.   interface, or there are other problems, get a 1.3.x kernel (1.3.57 has
  847.   it, for example), and read over drivers/block/README.ide. There is
  848.   much more information here.
  849.  
  850.   7.9.  It says weird things about obsolete routing requests
  851.  
  852.   Get new versions of the route program and any other programs which do
  853.   route manipulation.  /usr/include/linux/route.h  (which is actually a
  854.   file in /usr/src/linux) has changed.
  855.  
  856.   7.10.  Firewalling not working in 1.2.0
  857.  
  858.   Upgrade to at least version 1.2.1.
  859.  
  860.   7.11.  ``Not a compressed kernel Image file''
  861.  
  862.   Don't use the vmlinux file created in /usr/src/linux as your boot
  863.   image; [..]/arch/i386/boot/zImage is the right one.
  864.  
  865.   7.12.  Problems with console terminal after upgrade to 1.3.x
  866.  
  867.   Change the word dumb to linux in the console termcap entry in
  868.   /etc/termcap. You may also have to make a terminfo entry.
  869.  
  870.   7.13.  Can't seem to compile things after kernel upgrade
  871.  
  872.   The linux kernel source includes a number of include files (the things
  873.   that end with .h) which are referenced by the standard ones in
  874.   /usr/include. They are typically referenced like this (where xyzzy.h
  875.   would be something in /usr/include/linux):
  876.       #include <linux/xyzzy.h>
  877.  
  878.   Normally, there is a link called linux in /usr/include to the
  879.   include/linux directory of your kernel source
  880.   (/usr/src/linux/include/linux in the typical system). If this link is
  881.   not there, or points to the wrong place, most things will not compile
  882.   at all. If you decided that the kernel source was taking too much room
  883.   on the disk and deleted it, this will obviously be a problem. Another
  884.   way it might go wrong is with file permissions; if your root has a
  885.   umask which doesn't allow other users to see its files by default, and
  886.   you extracted the kernel source without the p (preserve filemodes)
  887.   option, those users also won't be able to use the C compiler. Although
  888.   you could use the chmod command to fix this, it is probably easier to
  889.   re-extract the include files. You can do this the same way you did the
  890.   whole source at the beginning, only with an additional argument:
  891.  
  892.       blah# tar zxvpf linux.x.y.z.tar.gz linux/include
  893.  
  894.   Note: ``make config'' will recreate the /usr/src/linux link if it
  895.   isn't there.
  896.  
  897.   8.  Modules
  898.  
  899.   Loadable kernel modules can save memory and ease configuration. The
  900.   scope of modules has grown to include filesystems, ethernet card
  901.   drivers, tape drivers, printer drivers, and more.
  902.  
  903.   8.1.  Installing the module utilities
  904.  
  905.   The module utilities are available from wherever you got your kernel
  906.   source as modules-x.y.z.tar.gz; choose the highest patchlevel x.y.z
  907.   that is equal to or below that of your current kernel. Unpack it with
  908.   `tar zxvf modules-x.y.z.tar.gz', cd to the directory it creates
  909.   (modules-x.y.z), look over the README, and carry out its installation
  910.   instructions (which is usually something simple, such as make
  911.   install). You should now have the programs insmod, rmmod, ksyms,
  912.   lsmod, genksyms, modprobe, and depmod in /sbin. If you wish, test out
  913.   the utilities with the ``hw'' example driver in insmod; look over the
  914.   INSTALL file in that subdirectory for details.
  915.  
  916.   insmod inserts a module into the running kernel. Modules usually have
  917.   a .o extension; the example driver mentioned above is called
  918.   drv_hello.o, so to insert this, one would say `insmod drv_hello.o'. To
  919.   see the modules that the kernel is currently using, use lsmod. The
  920.   output looks like this:
  921.  
  922.       blah# lsmod
  923.       Module:        #pages:  Used by:
  924.       drv_hello          1
  925.  
  926.   `drv_hello' is the name of the module, it uses one page (4k) of mem¡
  927.   ory, and no other kernel modules depend on it at the moment. To remove
  928.   this module, use `rmmod drv_hello'. Note that rmmod wants a module
  929.   name, not a filename; you get this from lsmod's listing. The other
  930.   module utilities' purposes are documented in their manual pages.
  931.  
  932.   8.2.  Modules distributed with the kernel
  933.  
  934.   As of version 1.2.2, many filesystems, a few SCSI drivers, several
  935.   ethernet adapter drivers, and other odds and ends are loadable as
  936.   modules. To use them, first make sure that you don't configure them
  937.   into the regular kernel; that is, don't say y to it during `make
  938.   config'.  Compile a new kernel and reboot with it. Then, cd to
  939.   /usr/src/linux again, and do a `make modules'. This compiles all of
  940.   the modules which you did not specify in the kernel configuration, and
  941.   places links to them in /usr/src/linux/modules.  You can use them
  942.   straight from that directory or execute `make modules_install', which
  943.   installs them in /lib/modules/x.y.z, where x.y.z is the kernel
  944.   release.
  945.  
  946.   This can be especially handy with filesystems. You may not use the
  947.   minix or msdos filesystems frequently. For example, if I encountered
  948.   an msdos (shudder) floppy, I would insmod
  949.   /usr/src/linux/modules/msdos.o, and then rmmod msdos when finished.
  950.   This procedure saves about 50k of RAM in the kernel during normal
  951.   operation. A small note is in order for the minix filesystem: you
  952.   should always configure it directly into the kernel for use in
  953.   ``rescue'' disks.
  954.  
  955.   9.  Other configuration options
  956.  
  957.   This section contains descriptions of selected kernel configuration
  958.   options (in make config) which are not listed in the configuration
  959.   section.  Most device drivers are not listed here.
  960.  
  961.   9.1.  General setup
  962.  
  963.   Normal floppy disk support - is exactly that. You may wish to read
  964.   over the file drivers/block/README.fd; this is especially important
  965.   for IBM Thinkpad users.
  966.  
  967.   XT harddisk support - if you want to use that 8 bit XT controller
  968.   collecting dust in the corner.
  969.  
  970.   PCI bios support - if you have PCI, you may want to give this a shot;
  971.   be careful, though, as some old PCI motherboards could crash with this
  972.   option. More information about the PCI bus under linux is found in the
  973.   PCI-HOWTO.
  974.  
  975.   Kernel support for ELF binaries - ELF is an effort to allow binaries
  976.   to span architectures and operating systems; linux seems is headed in
  977.   that direction and so you most likely want this.
  978.  
  979.   Set version information on all symbols for modules - in the past,
  980.   kernel modules were recompiled along with every new kernel. If you say
  981.   y, it will be possible to use modules compiled under a different
  982.   patchlevel. Read README.modules for more details.
  983.  
  984.   9.2.  Networking options
  985.  
  986.   Networking options are described in the NET-2-HOWTO.
  987.  
  988.   10.  Tips and tricks
  989.  
  990.   10.1.  Redirecting output of the make or patch commands
  991.  
  992.   If you would like logs of what those `make' or `patch' commands did,
  993.   you can redirect output to a file. First, find out what shell you're
  994.   running: `grep root /etc/passwd' and look for something like
  995.   `/bin/csh'.
  996.  
  997.   If you use sh or bash,
  998.  
  999.       (command) 2>&1 | tee (output file)
  1000.  
  1001.   will place a copy of (command)'s output in the file `(output file)'.
  1002.  
  1003.   For csh or tcsh, use
  1004.  
  1005.       (command) |& tee (output file)
  1006.  
  1007.   For rc (Note: you probably do not use rc) it's
  1008.  
  1009.       (command) >[2=1] | tee (output file)
  1010.  
  1011.   10.2.  Conditional kernel install
  1012.  
  1013.   Other than using floppy disks, there are several methods of testing
  1014.   out a new kernel without touching the old one. Unlike many other Unix
  1015.   flavors, LILO has the ability to boot a kernel from anywhere on the
  1016.   disk (if you have a large (500 MB or above) disk, please read over the
  1017.   LILO documentation on how this may cause problems). So, if you add
  1018.   something similar to
  1019.  
  1020.       image = /usr/src/linux/arch/i386/zImage
  1021.           label = new_kernel
  1022.  
  1023.   to the end of your LILO configuration file, you can choose to run a
  1024.   newly compiled kernel without touching your old /vmlinuz (after run¡
  1025.   ning lilo, of course). The easiest way to tell LILO to boot a new ker¡
  1026.   nel is to press the shift key at bootup time (when it says LILO on the
  1027.   screen, and nothing else), which gives you a prompt.  At this point,
  1028.   you can enter `new_kernel' to boot the new kernel.
  1029.  
  1030.   If you wish to keep several different kernel source trees on your
  1031.   system at the same time (this can take up a lot of disk space; be
  1032.   careful), the most common way is to name them /usr/src/linux-x.y.z,
  1033.   where x.y.z is the kernel version. You can then ``select'' a source
  1034.   tree with a symbolic link; for example, `ln -sf linux-1.2.2
  1035.   /usr/src/linux' would make the 1.2.2 tree current. Before creating a
  1036.   symbolic link like this, make certain that the last argument to ln is
  1037.   not a real directory (old symbolic links are fine); the result will
  1038.   not be what you expect.
  1039.  
  1040.   10.3.  Kernel updates
  1041.  
  1042.   Russell Nelson (nelson@crynwr.com) summarizes the changes in new
  1043.   kernel releases. These are short, and you might like to look at them
  1044.   before an upgrade. They are available with anonymous ftp from
  1045.   ftp.emlist.com in pub/kchanges or through the URL
  1046.  
  1047.       http://www.crynwr.com/kchanges
  1048.  
  1049.   11.  Other relevant HOWTOs that might be useful
  1050.  
  1051.   ╖  Sound-HOWTO: sound cards and utilities
  1052.  
  1053.   ╖  SCSI-HOWTO: all about SCSI controllers and devices
  1054.  
  1055.   ╖  NET-2-HOWTO: networking
  1056.  
  1057.   ╖  PPP-HOWTO: PPP networking in particular
  1058.  
  1059.   ╖  PCMCIA-HOWTO: about the drivers for your notebook
  1060.  
  1061.   ╖  ELF-HOWTO: ELF: what it is, converting..
  1062.  
  1063.   ╖  Hardware-HOWTO: overview of supported hardware
  1064.  
  1065.   12.  Misc
  1066.  
  1067.   12.1.  Author
  1068.  
  1069.   The author and maintainer of the Linux Kernel-HOWTO is Brian Ward
  1070.   (bri@blah.math.tu-graz.ac.at). Please send me any comments, additions,
  1071.   corrections (Corrections are, in particular, the most important to
  1072.   me.).  Grovel time: If you feel that you really have gotten some
  1073.   benefit out of this and you're feeling especially froody so that you'd
  1074.   just love to help the author (and future documents) out, you could,
  1075.   er, um, send me some unused computer parts that might be lying around,
  1076.   LEGO (R) bricks that you don't need.. useless CD-ROMs.. or maybe just
  1077.   a nice postcard..
  1078.  
  1079.   You can take a look at my `home page' at one of these URLs:
  1080.  
  1081.       http://www.math.psu.edu/ward/
  1082.       http://blah.math.tu-graz.ac.at/~bri/
  1083.  
  1084.   Even though I try to be attentive as possible with mail, please
  1085.   remember that I get a lot of it every day, so it may take a little
  1086.   time to get back to you. Especially when emailing me with a question,
  1087.   please try extra hard to be clear and detailed in your message. If
  1088.   you're writing about non-working hardware (or something like that), I
  1089.   need to know what your hardware configureation is. If you report an
  1090.   error, don't just say ``I tried this but it gave an error;'' I need to
  1091.   know what the error was.  I don't care if you ask simple questions;
  1092.   remember, if you don't ask, you may never get an answer! I'd like to
  1093.   thank everyone who has given me feedback.
  1094.  
  1095.   If you mailed me and did not get an answer within a resonable amount
  1096.   of time (three weeks or more), then chances are that I accidentally
  1097.   deleted your message or something (sorry). Please try again.
  1098.  
  1099.   I get a lot of mail about thing which are actually hardware problems
  1100.   or issues. That's OK, but please try to keep in mind that I'm not
  1101.   familiar with all of the hardware in the world and I don't know how
  1102.   helpful I can be; I personally use machines with IDE and SCSI disks,
  1103.   SCSI CD-ROMs, 3Com and WD ethernet cards, serial mice, motherboards
  1104.   with PCI, NCR 810 SCSI controllers, AMD 386DX40 w/Cyrix copr., AMD
  1105.   5x86, AMD 486DX4, and Intel 486DX4 processors (This is an overview of
  1106.   what I use and am familiar with, certainly not a recommendation, but
  1107.   if you want that, you're more than welcome to ask :-) ).
  1108.  
  1109.   Version -0.1 was written on October 3, 1994; this document is
  1110.   available in SGML, PostScript, TeX, roff, and plain-text formats.
  1111.  
  1112.   12.2.  To do
  1113.  
  1114.   The ``Tips and tricks'' section is a little small. I hope to expand on
  1115.   it with suggestions from others.
  1116.  
  1117.   So is ``Additional packages.''
  1118.  
  1119.   More debugging/crash recovery info needed.
  1120.  
  1121.   12.3.  Contributions
  1122.  
  1123.   A small part of Linus' README (kernel hacking options) is inclusive.
  1124.   (Thanks, Linus!)
  1125.  
  1126.   uc@brian.lunetix.de (Ulrich Callmeier): patch -s and xargs.
  1127.  
  1128.   quinlan@yggdrasil.com (Daniel Quinlan): corrections and additions in
  1129.   many sections.
  1130.  
  1131.   nat@nataa.frmug.fr.net (Nat Makarevitch): mrproper, tar -p
  1132.  
  1133.   boldt@math.ucsb.edu (Axel Boldt): collected descriptions of kernel
  1134.   configuration options on the net; then provided me with the list
  1135.  
  1136.   lembark@wrkhors.psyber.com (Steve Lembark): multiple boot suggestion
  1137.  
  1138.   kbriggs@earwax.pd.uwa.edu.au (Keith Briggs): some corrections and
  1139.   suggestions
  1140.  
  1141.   dumas@excalibur.ibp.fr (Eric Dumas): French translation
  1142.  
  1143.   simazaki@yu-gate.yamanashi.ac.jp (Yasutada Shimazaki): Japanese
  1144.   translation
  1145.   jjamor@lml.ls.fi.upm.es (Juan Jose Amor Iglesias): Spanish translation
  1146.  
  1147.   donahue@tiber.nist.gov (Michael J Donahue): typos, winner of the
  1148.   ``sliced bread competition''
  1149.  
  1150.   rms@gnu.ai.mit.edu (Richard Stallman): ``free'' documentation
  1151.   concept/distribution notice
  1152.  
  1153.   dak@Pool.Informatik.RWTH-Aachen.DE (David Kastrup): NFS thing
  1154.  
  1155.   The people who have sent me mail with questions and problems have also
  1156.   been quite helpful.
  1157.  
  1158.   12.4.  Copyright notice, License, and all that stuff
  1159.  
  1160.   Copyright ⌐ Brian Ward, 1994-1996.
  1161.  
  1162.   Permission is granted to make and distribute copies of this manual
  1163.   provided the copyright notice and this permission notice are preserved
  1164.   on all copies.
  1165.  
  1166.   Permission is granted to copy and distribute modified versions of this
  1167.   manual under the conditions for verbatim copying, provided that the
  1168.   derived work is distributed under the terms of a permission notice
  1169.   identical to this one. Translations fall under the catagory of
  1170.   ``modified versions.''
  1171.  
  1172.   Warranty: None.
  1173.  
  1174.   Recommendations: Commercial redistribution is allowed and encouraged;
  1175.   however, it is strongly recommended that the redistributor contact the
  1176.   author before the redistribution, in the interest of keeping things
  1177.   up-to-date (you could send me a copy of the thing you're making while
  1178.   you're at it). Translators are also advised to contact the author
  1179.   before translating. The printed version looks nicer. Recycle.
  1180.  
  1181.