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

  1.   Linux BootPrompt-Howto
  2.   Paul Gortmaker, Editor.
  3.   v1.01, 18 August 1995
  4.  
  5.   This is the BootPrompt-Howto, which is a compilation of all the possiĀ”
  6.   ble boot time arguments that can be passed to the Linux kernel at boot
  7.   time. This includes all kernel and device parameters.  An overview of
  8.   some of the popular software used to boot Linux kernels is included.
  9.  
  10.   1.  Introduction
  11.  
  12.   The kernel has a limited capability to accept information at boot in
  13.   the form of a `command line', similar to an argument list you would
  14.   give to a program. In general this is used to supply the kernel with
  15.   information about hardware parameters that the kernel would not be
  16.   able to determine on its own, or to avoid/override the values that the
  17.   kernel would otherwise detect.
  18.  
  19.   However, if you just copy a kernel image directly to a floppy, (e.g.
  20.   cp zImage /dev/fd0) then you are not given a chance to specify any
  21.   arguments to that kernel. So most Linux users will use software like
  22.   LILO or loadlin that takes care of handing these arguments to the
  23.   kernel, and then booting it.
  24.  
  25.   This present revision covers distribution kernels up to and including
  26.   v1.2.13. Information pertaining to development kernels up to version
  27.   1.3.18 is also documented.
  28.  
  29.   The BootPrompt-Howto is edited and maintained by:
  30.  
  31.        Paul Gortmaker, Paul.Gortmaker@anu.edu.au
  32.  
  33.   1.1.  Disclaimer and Copyright
  34.  
  35.   This document is not gospel. However, it is probably the most up to
  36.   date info that you will be able to find. Nobody is responsible for
  37.   what happens to your hardware but yourself. If your hardware goes up
  38.   in smoke (...nearly impossible!)  I take no responsibility. ie. THE
  39.   AUTHOR IS NOT RESPONSIBLE FOR ANY DAMAGES INCURRED DUE TO ACTIONS
  40.   TAKEN BASED ON THE INFORMATION INCLUDED IN THIS DOCUMENT.
  41.  
  42.   This document is Copyright (c) 1995 by Paul Gortmaker. Permission is
  43.   granted to make and distribute verbatim copies of this manual provided
  44.   the copyright notice and this permission notice are preserved on all
  45.   copies.
  46.  
  47.   Permission is granted to copy and distribute modified versions of this
  48.   document under the conditions for verbatim copying, provided that this
  49.   copyright notice is included exactly as in the original, and that the
  50.   entire resulting derived work is distributed under the terms of a
  51.   permission notice identical to this one.
  52.  
  53.   Permission is granted to copy and distribute translations of this
  54.   document into another language, under the above conditions for
  55.   modified versions.
  56.  
  57.   If you are intending to incorporate this document into a published
  58.   work, please contact me, and I will make an effort to ensure that you
  59.   have the most up to date information available. In the past, out of
  60.   date versions of the Linux howto documents have been published, which
  61.   caused the developers undue grief from being plagued with questions
  62.   that were already answered in the up to date versions.
  63.  
  64.   1.2.  Related Documentation
  65.  
  66.   The most up-to-date documentation will always be the kernel source
  67.   itself. Hold on! Don't get scared. You don't need to know any
  68.   programming to read the comments in the source files.  For example, if
  69.   you were looking for what arguments could be passed to the AHA1542
  70.   SCSI driver, then you would go to the linux/drivers/scsi directory,
  71.   and look at the file aha1542.c -- and within the first 100 lines, you
  72.   would find a plain english description of the boot time arguments that
  73.   the 1542 driver accepts.
  74.  
  75.   If you have figured out what boot-args you intend to use, and now want
  76.   to know how to get that information to the kernel, then look at the
  77.   documentation that comes with the software that you use to boot the
  78.   kernel (e.g. LILO or loadlin).
  79.  
  80.   1.3.  The Linux Newsgroups
  81.  
  82.   If you have questions about passing boot arguments to the kernel,
  83.   please READ this document first. If this and the related documentation
  84.   mentioned above does not answer your question(s) then you can try the
  85.   Linux newsgroups.
  86.  
  87.   General questions on how to configure your system should be directed
  88.   to comp.os.linux.setup.  We ask that you please respect this general
  89.   guideline for content, and don't cross-post your request to other
  90.   groups.
  91.  
  92.   1.4.  New Versions of this Document
  93.  
  94.   New versions of this document can be retrieved via anonymous FTP from
  95.   sunsite.unc.edu, in /pub/Linux/docs/HOWTO/* and various Linux ftp
  96.   mirror sites. Updates will be made as new information / drivers
  97.   becomes available. If this copy that you are reading is more than 3
  98.   months old, it is either out of date, or it means that I have been
  99.   lazy and haven't updated it.  This document was produced by using the
  100.   SGML system that was specifically set up for the Linux Howto project,
  101.   and there are various output formats available, including, postscript,
  102.   dvi, ascii, html, and soon TeXinfo.
  103.  
  104.   I would recommend viewing it in the html (via a WWW browser) or the
  105.   Postscript/dvi format. Both of these contain cross-references that are
  106.   lost in the ascii translation.
  107.  
  108.   If you want to get the official copy off sunsite, here is URL.
  109.  
  110.   BootPrompt-HOWTO <http://sunsite.unc.edu/mdw/HOWTO/BootPrompt-
  111.   HOWTO.html>
  112.  
  113.   If minor additions and changes have been made, you can view the latest
  114.   working copy from this URL.
  115.  
  116.   Working Copy <http://rsphy1.anu.edu.au/~gpg109/BootPrompt-HOWTO.html>
  117.  
  118.   2.  Overview of Boot Prompt Arguments
  119.  
  120.   This section gives some examples of software that can be used to pass
  121.   kernel boot-time arguments to the kernel itself.  It also gives you an
  122.   idea of how the arguments are processed, what limitations there are on
  123.   the boot args, and how they filter down to each appropriate device
  124.   that they are intended for.
  125.  
  126.   2.1.  LILO (LInux LOader)
  127.  
  128.   The LILO program (LInux LOader) written by Werner Almesberger is the
  129.   most commonly used. It has the ability to boot various kernels, and
  130.   stores the configuration information in a plain text file. Most
  131.   distributions ship with LILO as the default boot-loader. LILO can boot
  132.   DOS, OS/2 Linux, FreeBSD, etc. without any difficulties, and is quite
  133.   flexible.
  134.  
  135.   LILO ships with excellent documentation, and for the purposes of boot
  136.   args discussed here, the LILO append= command is of significant
  137.   importance.
  138.  
  139.   2.2.  LoadLin
  140.  
  141.   The other commonly used Linux loader is `LoadLin' which is a DOS
  142.   program that has the capability to launch a Linux kernel from the DOS
  143.   prompt (with boot-args) assuming that certain resources are available.
  144.   This is good for people that use DOS and want to launch into Linux
  145.   from DOS.
  146.  
  147.   It is also very useful if you have certain hardware which relies on
  148.   the supplied DOS driver to put the hardware into a known state. A
  149.   common example is `SoundBlaster Compatible' sound cards that require
  150.   the DOS driver to twiddle a few mystical registers to put the card
  151.   into a SB compatible mode. Booting DOS with the supplied driver, and
  152.   then loading Linux from the DOS prompt with loadlin avoids the reset
  153.   of the card that happens if one rebooted instead. Thus the card is
  154.   left in a Sb compatible mode and hence is useable under Linux.
  155.  
  156.   There are also other programs that can be used to boot Linux.  For a
  157.   complete list, please look at the programs available on your local
  158.   Linux ftp mirror, under system/Linux-boot/.
  159.  
  160.   2.3.  The ``rdev'' utility
  161.  
  162.   There are a few of the kernel boot parameters that have their default
  163.   values stored in various bytes in the kernel image itself.  There is a
  164.   utility called rdev that is installed on most systems that knows where
  165.   these values are, and how to change them.  It can also change things
  166.   that have no kernel boot argument equivalent, such as the default
  167.   video mode used.
  168.  
  169.   The rdev utility is usually also aliased to swapdev, ramsize, vidmode
  170.   and rootflags. These are the five things that rdev can change, those
  171.   being the root device, the swap device, the RAM disk size, the default
  172.   video mode, and the readonly/readwrite setting of root device.
  173.  
  174.   More information on rdev can be found by typing rdev -h or by reading
  175.   the supplied man page.
  176.  
  177.   2.4.  How the Kernel Sorts the Arguments
  178.  
  179.   Most of the boot args take the form of:
  180.  
  181.   ______________________________________________________________________
  182.           name[=value_1][,value_2]...[,value_11]
  183.   ______________________________________________________________________
  184.  
  185.   where `name' is a unique keyword that is used to identify what part of
  186.   the kernel the associated values (if any) are to be given to. Multiple
  187.   boot args are just a space separated list of the above format. Note
  188.   the limit of 11 is real, as the present code only handles 11 comma
  189.   separated parameters per keyword. (However, you can re-use the same
  190.   keyword with up to an additional 11 parameters in unusually
  191.   complicated situations, assuming the setup function supports it.)
  192.  
  193.   Most of the sorting goes on in linux/init/main.c.  First, the kernel
  194.   ckecks to see if the argument is any of the special arguments `root=',
  195.   `ro', `rw', or `debug'.  The meaning of these special arguments is
  196.   described further on in the document.
  197.  
  198.   Then it walks a list of setup functions (contained in the bootsetups
  199.   array) to see if the specified argument string (such as `foo') has
  200.   been associated with a setup function (`foo_setup()') for a particular
  201.   device or part of the kernel. If you passed the kernel the line
  202.   foo=3,4,5,6 then the kernel would search the bootsetups array to see
  203.   if `foo' was registered. If it was, then it would call the setup
  204.   function associated with `foo' (foo_setup()) and hand it the arguments
  205.   3, 4, 5 and 6 as given on the kernel command line.
  206.  
  207.   2.5.  Setting Environment Variables.
  208.  
  209.   Anything of the form `foo=bar' that is not accepted as a setup funtion
  210.   as described above is then interpreted as an environment variable to
  211.   be set. A (useless?) example would be to use `TERM=vt100' as a boot
  212.   argument.
  213.  
  214.   2.6.  Passing Arguments to `init'
  215.  
  216.   Any remaining arguments that were not picked up by the kernel and were
  217.   not interpreted as environment variables are then passed onto process
  218.   one, which is usually the init program. The most common argument that
  219.   is passed to the init process is the word single which instructs init
  220.   to boot the computer in single user mode, and not launch all the usual
  221.   daemons. Check the manual page for the version of init installed on
  222.   your system to see what arguments it accepts.
  223.  
  224.   3.  General Non-Device Specific Boot Args
  225.  
  226.   These are the boot arguments that are not related to any specific
  227.   device or peripheral. They are instead related to certain internal
  228.   kernel parameters.
  229.  
  230.   3.1.  The `no387' Argument
  231.  
  232.   Some i387 coprocessor chips have bugs that show up when used in 32 bit
  233.   protected mode. For example, some of the early ULSI-387 chips would
  234.   cause solid lockups while performing floating point calculations.
  235.   Using the `no387' boot arg causes Linux to ignore the maths
  236.   coprocessor even if you have one. Of course you must then have your
  237.   kernel compiled with math emulation support!
  238.  
  239.   3.2.  The `no-hlt' Argument
  240.  
  241.   The i386 (and sucessors thereof) family of CPUs have a `hlt'
  242.   instruction which tells the CPU that nothing is going to happen until
  243.   an external device (keyboard, modem, disk, etc.) calls upon the CPU to
  244.   do a task. This allows the CPU to enter a `low-power' mode where it
  245.   sits like a zombie until an external device wakes it up (usually via
  246.   an interrupt).  Some of the early i486DX-100 chips had a problem  with
  247.   the `hlt' instruction, in that they couldn't reliably return to
  248.   operating mode after this instruction was used. Using the `no-hlt'
  249.   instruction tells Linux to just run an infinite loop when there is
  250.   nothing else to do, and to not halt your CPU when there is no
  251.   activity. This allows people with these broken chips to use Linux,
  252.   although they would be well advised to seek a replacement through a
  253.   warranty where possible.
  254.  
  255.   3.3.  The `root=' Argument
  256.  
  257.   This argument tells the kernel what device is to be used as the root
  258.   filesystem while booting. The default of this setting is the value of
  259.   the root device of the system that the kernel was built on.  For
  260.   example, if the kernel in question was built on a system that used
  261.   `/dev/hda1' as the root partition, then the default root device would
  262.   be `/dev/hda1'.  To override this default value, and select the second
  263.   floppy drive as the root device, one would use `root=/dev/fd1'.
  264.  
  265.   Valid root devices are partitions on any of the following disk
  266.   devices:
  267.  
  268.   (1) /dev/hdaN to /dev/hddN, which is partition N on ST-506 compatible
  269.   disk `a to d'.
  270.  
  271.   (2) /dev/sdaN to /dev/sdeN, which is partition N on SCSI compatible
  272.   disk `a to e'.
  273.  
  274.   (3) /dev/xdaN to /dev/xdbN, which is partition N on XT compatible disk
  275.   `a to b'.
  276.  
  277.   (4) /dev/fdN, which is floppy disk drive number N. Having N=0 would be
  278.   the DOS `A:' drive, and N=1 would be `B:'.
  279.  
  280.   The more awkward and less portable numeric specification of the above
  281.   possible root devices in major/minor format is also accepted. (e.g.
  282.   /dev/sda3 is major 8, minor 3, so you could use root=0x803 as an
  283.   alternative.)
  284.  
  285.   This is one of the few kernel boot arguments that has its default
  286.   stored in the kernel image, and which can thus be altered with the
  287.   rdev utility.
  288.  
  289.   3.4.  The `ro' Argument
  290.  
  291.   When the kernel boots, it needs a root filesystem to read basic things
  292.   off of. This is the root filesystem that is mounted at boot. However,
  293.   if the root filesystem is mounted with write access, you can not
  294.   reliably check the filesystem integrity with half-written files in
  295.   progress. The `ro' option tells the kernel to mount the root
  296.   filesystem as `readonly' so that any filesystem consistency check
  297.   programs (fsck) can safely assume that there are no half-written files
  298.   in progress while performing the check. No programs or processes can
  299.   write to files on the filesystem in question until it is `remounted'
  300.   as read/write capable.
  301.  
  302.   This is one of the few kernel boot arguments that has its default
  303.   stored in the kernel image, and which can thus be altered with the
  304.   rdev utility.
  305.  
  306.   3.5.  The `rw' Argument
  307.  
  308.   This is the exact opposite of the above, in that it tells the kernel
  309.   to mount the root filesytem as read/write. The default is to mount the
  310.   root filesystem as read/write anyways. Do not run any `fsck' type
  311.   programs on a filesystem that is mounted read/write.
  312.  
  313.   The same value stored in the image file mentioned above is also used
  314.   for this parameter, accesible via rdev.
  315.  
  316.   3.6.  The `debug' Argument
  317.  
  318.   The kernel communicates important (and not-so important) messages to
  319.   the operator via the printk() function.  If the message is considered
  320.   important, the printk() function will put a copy on the present
  321.   console as well as handing it off to the klogd() facility so that it
  322.   gets logged to disk. The reason for printing important messages to the
  323.   console as well as logging them to disk is because under unfortunate
  324.   circumstances (e.g. a disk failure) the message won't make it to disk
  325.   and will be lost.
  326.  
  327.   The threshold for what is and what isn't considered important is set
  328.   by the console_loglevel variable. The default is to log anything more
  329.   important than DEBUG (level 7) to the console. (These levels are
  330.   defined in the include file kernel.h) Specifying debug as a boot
  331.   argument will set the console loglevel to 10, so that all kernel
  332.   messages appear on the console.
  333.  
  334.   The console loglevel can usually also be set at run time via an option
  335.   to the klogd() program. Check the man page for the version installed
  336.   on your system to see how to do this.
  337.  
  338.   3.7.  The `reserve=' Argument
  339.  
  340.   This is used to protect I/O port regions from probes.  The form of the
  341.   command is:
  342.  
  343.        reserve=iobase,extent[,iobase,extent]...
  344.  
  345.   In some machines it may be necessary to prevent device drivers from
  346.   checking for devices (auto-probing) in a specific region. This may be
  347.   because of poorly designed hardware that causes the boot to freeze
  348.   (such as some ethercards), hardware that is mistakenly identified,
  349.   hardware whose state is changed by an earlier probe, or merely
  350.   hardware you don't want the kernel to initialize.
  351.  
  352.   The reserve boot-time argument addresses this problem by specifying an
  353.   I/O port region that shouldn't be probed. That region is reserved in
  354.   the kernel's port registration table as if a device has already been
  355.   found in that region. Note that this mechanism shouldn't be necessary
  356.   on most machines. Only when there is a problem or special case would
  357.   it be necessary to use this.
  358.  
  359.   The I/O ports in the specified region are protected against device
  360.   probes. This was put in to be used when some driver was hanging on a
  361.   NE2000, or misidentifying some other device as its own.  A correct
  362.   device driver shouldn't probe a reserved region, unless another boot
  363.   argument explicitly specifies that it do so.  This implies that
  364.   reserve will most often be used with some other boot argument. Hence
  365.   if you specify a reserve region to protect a specific device, you must
  366.   generally specify an explicit probe for that device. Most drivers
  367.   ignore the port registration table if they are given an explicit
  368.   address.
  369.  
  370.   For example, the boot line
  371.  
  372.   ______________________________________________________________________
  373.           reserve=0x300,32  blah=0x300
  374.   ______________________________________________________________________
  375.  
  376.   keeps all device drivers except the driver for `blah' from probing
  377.   0x300-0x31f.
  378.  
  379.   As usual with boot-time specifiers there is an 11 parameter limit,
  380.   thus you can only specify 5 reserved regions per reserve keyword.
  381.   Multiple reserve specifiers will work if you have an unusually
  382.   complicated request.
  383.  
  384.   3.8.  The `ramdisk=' Argument
  385.  
  386.   This specifies the size in kB of the optional RAM disk device.  For
  387.   example, if one wished to have a root filesystem on a 1.44MB floppy
  388.   loaded into the RAM disk device, they would use:
  389.  
  390.   ______________________________________________________________________
  391.           ramdisk=1440
  392.   ______________________________________________________________________
  393.  
  394.   This is one of the few kernel boot arguments that has its default
  395.   stored in the kernel image, and which can thus be altered with the
  396.   rdev utility.
  397.  
  398.   3.9.  The `mem=' Argument
  399.  
  400.   The original BIOS call defined in the PC specification  that returns
  401.   the amount of installed memory was only designed to be able to report
  402.   up to 64MB. (Yes, another lack of foresight, just like the 1024
  403.   cylinder disks... sigh.) Linux uses this BIOS call at boot to
  404.   determine how much memory is installed.  If you have more than 64MB of
  405.   RAM installed, you can use this boot arg to tell Linux how much memory
  406.   you have.  Here is a quote from Linus on usage of the `mem='
  407.   parameter.
  408.  
  409.   ``The kernel will accept any `mem=xx' parameter you give it, and if it
  410.   turns out that you lied to it, it will crash horribly sooner or later.
  411.   The parameter indicates the highest addressable RAM address, so
  412.   `mem=0x1000000' means you have 16MB of memory, for example.  For a
  413.   96MB machine this would be `mem=0x6000000'.
  414.  
  415.   NOTE NOTE NOTE: some machines might use the top of memory for BIOS
  416.   cacheing or whatever, so you might not actually have up to the full
  417.   96MB addressable.  The reverse is also true: some chipsets will map
  418.   the physical memory that is covered by the BIOS area into the area
  419.   just past the top of memory, so the top-of-mem might actually be 96MB
  420.   + 384kB for example.  If you tell linux that it has more memory than
  421.   it actually does have, bad things will happen: maybe not at once, but
  422.   surely eventually.''
  423.  
  424.   Note that the argument does not have to be in hex, and the suffixes
  425.   `k' and `M' (case insensitive) can be used to specify kilobytes and
  426.   Megabytes, respectively. (A `k' will cause a 10 bit shift on your
  427.   value, and a `M' will cause a 20 bit shift.)  The above warning still
  428.   holds, in that a 96MB machine may work with mem=97920k but fail with
  429.   either mem=98304k or mem=96M.
  430.  
  431.   4.  Boot Arguments for SCSI Peripherals.
  432.  
  433.   This section contains the descriptions of the boot args that are used
  434.   for passing information about the installed SCSI host adapters, and
  435.   SCSI devices.
  436.  
  437.   General notation for this section:
  438.  
  439.   iobase -- the first I/O port that the SCSI host occupies.  These are
  440.   specified in hexidecimal notation, and usually lie in the range from
  441.   0x200 to 0x3ff.
  442.  
  443.   irq -- the hardware interrupt that the card is configured to use.
  444.   Valid values will be dependant on the card in question, but will
  445.   usually be 5, 7, 9, 10, 11, 12, and 15. The other values are usually
  446.   used for common preipherals like IDE hard disks, floppies, serial
  447.   ports, etc.
  448.  
  449.   scsi-id -- the ID that the host adapter uses to identify itself on the
  450.   SCSI bus. Only some host adapters allow you to change this value, as
  451.   most have it permanently specified internally. The usual default value
  452.   is seven, but the Seagate and Future Domain TMC-950 boards use six.
  453.  
  454.   parity -- whether the SCSI host adapter expects the attached devices
  455.   to supply a parity value with all information exchanges.  Specifying a
  456.   one indicates parity checking is enabled, and a zero disables parity
  457.   checking. Again, not all adapters will support selection of parity
  458.   behaviour as a boot argument.
  459.  
  460.   4.1.  Maximum Probed LUNs (`max_scsi_luns=')
  461.  
  462.   Each SCSI device can have a number of `sub-devices' contained within
  463.   itself. The most common example is one of the new SCSI CD-ROMs that
  464.   handle more than one disk at a time.  Each CD is addressed as a
  465.   `Logical Unit Number' (LUN) of that particular device. But most
  466.   devices, such as hard disks, tape drives and such are only one device,
  467.   and will be assigned to LUN zero.
  468.  
  469.   The problem arises with single LUN devices with bad firmware.  Some
  470.   poorly designed SCSI devices (old and unfortunately new) can not
  471.   handle being probed for LUNs not equal to zero. They will respond by
  472.   locking up, and possibly taking the whole SCSI bus down with them.
  473.  
  474.   Newer kernels have the configuration option that allows you to set the
  475.   maximum number of probed LUNs. The default is to only probe LUN zero,
  476.   to avoid the problem described above.
  477.  
  478.   To specify the number of probed LUNs at boot, one enters
  479.   `max_scsi_luns=n' as a boot arg, where n is a number between one and
  480.   eight. To avoid problems as described above, one would use n=1 to
  481.   avoid upsetting such broken devices
  482.  
  483.   4.2.  Parameters for SCSI Tape drives (`st=')
  484.  
  485.   Some boot time configuration of the SCSI tape driver can be achieved
  486.   by using the following:
  487.  
  488.   ______________________________________________________________________
  489.           st=buf_size[,write_threshold[,max_bufs]]
  490.   ______________________________________________________________________
  491.  
  492.   The fisrt two numbers are specified in units of kB.  The default
  493.   buf_size is 32kB, and the maximum size that can be specified is a
  494.   ridiculous 16384kB.  The write_threshold is the value at which the
  495.   buffer is committed to tape, with a default value of 30kB.  The
  496.   maximum number of buffers varies with the number of drives detected,
  497.   and has a default of two. An example usage would be:
  498.  
  499.   ______________________________________________________________________
  500.           st=32,30,2
  501.   ______________________________________________________________________
  502.  
  503.   Full details can be found in the README.st file that is in the scsi
  504.   directory of the kernel source tree.
  505.  
  506.   4.3.  Adaptec aha151x, aha152x, aic6260, aic6360, SB16-SCSI
  507.   (`aha152x=')
  508.  
  509.   The aha numbers refer to cards and the aic numbers refer to the actual
  510.   SCSI chip on these type of cards, including the Soundblaster-16 SCSI.
  511.  
  512.   The probe code for these SCSI hosts looks for an installed BIOS, and
  513.   if none is present, the probe will not find your card. Then you will
  514.   have to use a boot arg of the form:
  515.  
  516.   ______________________________________________________________________
  517.            aha152x=iobase[,irq[,scsi-id[,reconnect[,parity]]]]
  518.   ______________________________________________________________________
  519.  
  520.   Note that if the driver was compiled with debugging enabled, a sixth
  521.   value can be specified to set the debug level.
  522.  
  523.   All the parameters are as described at the top of this section, and
  524.   the reconnect value will allow device disconnect/reconnect if a non-
  525.   zero value is used. An example usage is as follows:
  526.  
  527.   ______________________________________________________________________
  528.           aha152x=0x340,11,7,1
  529.   ______________________________________________________________________
  530.  
  531.   Note that the parameters must be specified in order, meaning that if
  532.   you want to specify a parity setting, then you will have to specify an
  533.   iobase, irq, scsi-id and reconnect value as well.
  534.  
  535.   4.4.  Adaptec aha154x (`aha1542=')
  536.  
  537.   These are the aha154x series cards. The aha1542 series cards have an
  538.   i82077 floppy controller onboard, while the aha1540 series cards do
  539.   not. These are busmastering cards, and have parameters to set the
  540.   ``fairness'' that is used to share the bus with other devices. The
  541.   boot arg looks like the following.
  542.  
  543.   ______________________________________________________________________
  544.           aha1542=iobase[,buson,busoff[,dmaspeed]]
  545.   ______________________________________________________________________
  546.  
  547.   Valid iobase values are usually one of: 0x130, 0x134, 0x230, 0x234,
  548.   0x330, 0x334.  Clone cards may permit other values.
  549.  
  550.   The buson, busoff values refer to the number of microseconds that the
  551.   card dominates the ISA bus. The defaults are 11us on, and 4us off, so
  552.   that other cards (such as an ISA LANCE Ethernet card) have a chance to
  553.   get access to the ISA bus.
  554.  
  555.   The dmaspeed value refers to the rate (in MB/s) at which the DMA
  556.   (Direct Memory Access) transfers proceed at. The default is 5MB/s.
  557.   Newer revision cards allow you to select this value as part of the
  558.   soft-configuration, older cards use jumpers. You can use values up to
  559.   10MB/s assuming that your motherboard is capable of handling it.
  560.   Experiment with caution if using values over 5MB/s.
  561.  
  562.   4.5.  Adaptec aha274x, aha284x, aic7xxx (`aic7xxx=')
  563.  
  564.   These boards can accept an argument of the form:
  565.  
  566.   ______________________________________________________________________
  567.           aic7xxx=extended,no_reset
  568.   ______________________________________________________________________
  569.  
  570.   The extended value, if non-zero, indicates that extended translation
  571.   for large disks is enabled. The no_reset value, if non-zero, tells the
  572.   driver not to reset the SCSI bus when setting up the host adaptor at
  573.   boot.
  574.  
  575.   4.6.  BusLogic SCSI Hosts (`buslogic=')
  576.  
  577.   At present, the buslogic driver accepts only one parameter, that being
  578.   the I/O base. It expects that to be one of the following valid values:
  579.   0x130, 0x134, 0x230, 0x234, 0x330, 0x334.
  580.  
  581.   4.7.  Future Domain TMC-8xx, TMC-950 (`tmc8xx=')
  582.  
  583.   The probe code for these SCSI hosts looks for an installed BIOS, and
  584.   if none is present, the probe will not find your card. Or, if the
  585.   signature string of your BIOS is not recognised then it will also not
  586.   be found. In either case, you will then have to use a boot arg of the
  587.   form:
  588.  
  589.   ______________________________________________________________________
  590.           tmc8xx=mem_base,irq
  591.   ______________________________________________________________________
  592.  
  593.   The mem_base value is the value of the memory mapped I/O region that
  594.   the card uses. This will usually be one of the following values:
  595.   0xc8000, 0xca000, 0xcc000, 0xce000, 0xdc000, 0xde000.
  596.  
  597.   4.8.  Pro Audio Spectrum (`pas16=')
  598.  
  599.   The PAS16 uses a NC5380 SCSI chip, and newer models support jumper-
  600.   less configuration. The boot arg is of the form:
  601.  
  602.   ______________________________________________________________________
  603.           pas16=iobase,irq
  604.   ______________________________________________________________________
  605.  
  606.   The only difference is that you can specify an IRQ value of 255, which
  607.   will tell the driver to work without using interrupts, albeit at a
  608.   performance loss. The iobase is usually 0x388.
  609.  
  610.   4.9.  Seagate ST-0x (`st0x=')
  611.  
  612.   The probe code for these SCSI hosts looks for an installed BIOS, and
  613.   if none is present, the probe will not find your card. Or, if the
  614.   signature string of your BIOS is not recognised then it will also not
  615.   be found. In either case, you will then have to use a boot arg of the
  616.   form:
  617.  
  618.   ______________________________________________________________________
  619.           st0x=mem_base,irq
  620.   ______________________________________________________________________
  621.  
  622.   The mem_base value is the value of the memory mapped I/O region that
  623.   the card uses. This will usually be one of the following values:
  624.   0xc8000, 0xca000, 0xcc000, 0xce000, 0xdc000, 0xde000.
  625.  
  626.   4.10.  Trantor T128 (`t128=')
  627.  
  628.   These cards are also based on the NCR5380 chip, and accept the
  629.   following options:
  630.  
  631.   ______________________________________________________________________
  632.           t128=mem_base,irq
  633.   ______________________________________________________________________
  634.  
  635.   The valid values for mem_base are as follows: 0xcc000, 0xc8000,
  636.   0xdc000, 0xd8000.
  637.  
  638.   4.11.  Cards that don't Accept Boot Args
  639.  
  640.   At present, the following SCSI cards do not make use of any boot-time
  641.   parameters. In some cases, you can hard-wire values by directly
  642.   editing the driver itself, if required.
  643.  
  644.   Always IN2000, Adaptec aha1740, EATA-DMA, EATA-PIO, Future Domain
  645.   16xx, NCR5380 (generic), NCR53c7xx to NCR53c8xx, Qlogic, Ultrastor
  646.   (incl. u?4f), Western Digital wd7000,
  647.  
  648.   5.  Hard Disks
  649.  
  650.   This section lists all the boot args associated with standard MFM/RLL,
  651.   ST-506, XT, and IDE disk drive devices.  Note that both the IDE and
  652.   the generic ST-506 HD driver both accept the `hd=' option.
  653.  
  654.   5.1.  IDE Disk/CD-ROM Driver Parameters
  655.  
  656.   The IDE driver accepts a number of parameters, which range from disk
  657.   geometry specifications, to support for broken controller chips. Drive
  658.   specific options are specified by using one of:
  659.  
  660.   `hda=', `hdb=', `hdc=', or `hdd='.
  661.  
  662.   Non-drive specific options are specified with the prefix `hd='. Note
  663.   that using a drive specific prefix for a non-drive specific option
  664.   will still work, and the option will just be applied as expected.
  665.  
  666.   Also note that `hd=' can be used to refer to the next unspecified
  667.   drive in the (a, b, c, d) sequence.  For the following discussions,
  668.   the `hd=' option will be cited for brevity. Please consult the file
  669.   README.ide in the linux/drivers/block directory if more information is
  670.   required.
  671.  
  672.   5.1.1.  The `hd=cyls,heads,sects[,wpcom[,irq]]' options
  673.  
  674.   These options are used to specify the physical geometry of the disk.
  675.   Only the first three values are required. The cylinder/head/sectors
  676.   values will be those used by fdisk.  The write precompensation value
  677.   is ignored for IDE disks.  The IRQ value specified will be the IRQ
  678.   used for the interface that the drive resides on, and is not really a
  679.   drive specific parameter.
  680.  
  681.   5.1.2.  The `hd=serialize' option
  682.  
  683.   The dual IDE interface CMD-640 chip is broken as designed such that
  684.   when drives on the secondary interface are used at the same time as
  685.   drives on the primary interface, it will corrupt your data. Using this
  686.   option tells the driver to make sure that both interfaces are never
  687.   used at the same time. If you only have up to two drives, both on the
  688.   primary interface, then you don't need to use this option.
  689.  
  690.   5.1.3.  The `hd=dtc2278' option
  691.  
  692.   This option tells the driver that you have a DTC-2278D IDE interface.
  693.   The driver then tries to do DTC specific operations to enable the
  694.   second interface and to enable faster transfer modes.
  695.  
  696.   5.1.4.  The `hd=noprobe' option
  697.  
  698.   If a particular drive (e.g. old IDE drive) has problems that are a
  699.   result of being probed, this option can be used to disable the probe.
  700.   An example usage could be:
  701.  
  702.   ______________________________________________________________________
  703.           hdb=noprobe hdb=1166,7,17
  704.   ______________________________________________________________________
  705.  
  706.   which would disable the probe, but still specify the drive geometry so
  707.   that it would be registered as a valid block device, and hence
  708.   useable.
  709.  
  710.   5.1.5.  The `hd=nowerr' option
  711.  
  712.   Some drives apparently have the WRERR_STAT bit stuck on permanently.
  713.   This enables a work-around for these broken devices.
  714.  
  715.   5.1.6.  The `hd=cdrom' option
  716.  
  717.   This tells the IDE driver that there is an ATAPI compatible CD-ROM
  718.   attached in place of a normal IDE hard disk. In most cases the CD-ROM
  719.   is identified automatically, but if it isn't then this may help.
  720.   5.2.  Standard ST-506 Disk Driver Options (`hd=')
  721.  
  722.   The standard disk driver can accept geometry arguments for the disks
  723.   similar to the IDE driver. Note however that it only expects three
  724.   values (C/H/S) -- any more or any less and it will silently ignore
  725.   you. Also, it only accepts `hd=' as an argument, i.e. `hda=', `hdb='
  726.   and so on are not valid here. The format is as follows:
  727.  
  728.   ______________________________________________________________________
  729.           hd=cyls,heads,sects
  730.   ______________________________________________________________________
  731.  
  732.   If there are two disks installed, the above is repeated with the
  733.   geometry parameters of the second disk.
  734.  
  735.   5.3.  XT Disk Driver Options (`xd=')
  736.  
  737.   If you are unfortunate enough to be using one of these old 8 bit cards
  738.   that move data at a whopping 125kB/s then here is the scoop.  The
  739.   probe code for these cards looks for an installed BIOS, and if none is
  740.   present, the probe will not find your card. Or, if the signature
  741.   string of your BIOS is not recognised then it will also not be found.
  742.   In either case, you will then have to use a boot arg of the form:
  743.  
  744.   ______________________________________________________________________
  745.           xd=type,irq,iobase,dma_chan
  746.   ______________________________________________________________________
  747.  
  748.   The type value specifies the particular manufacturer of the card, and
  749.   are as follows: 0=generic; 1=DTC; 2,3,4=Western Digital,
  750.   5,6,7=Seagate; 8=OMTI. The only difference between multiple types from
  751.   the same manufacturer is the BIOS string used for detection, which is
  752.   not used if the type is specified.
  753.  
  754.   The xd_setup() function does no checking on the values, and assumes
  755.   that you entered all four values. Don't disappoint it.  Here is an
  756.   example usage for a WD1002 controller with the BIOS disabled/removed,
  757.   using the `default' XT controller parameters:
  758.  
  759.   ______________________________________________________________________
  760.           xd=2,5,0x320,3
  761.   ______________________________________________________________________
  762.  
  763.   6.  CD-ROMs (Non-SCSI/ATAPI/IDE)
  764.  
  765.   This section lists all the possible boot args pertaining to CD-ROM
  766.   devices. Note that this does not include SCSI or IDE/ATAPI CD-ROMs.
  767.   See the appropriate section(s) for those types of CD-ROMs.
  768.  
  769.   6.1.  The Aztech Interface (`aztcd=')
  770.  
  771.   The syntax for this type of card is:
  772.  
  773.   ______________________________________________________________________
  774.           aztcd=iobase[,magic_number]
  775.   ______________________________________________________________________
  776.  
  777.   If you set the magic_number to 0x79 then the driver will try and run
  778.   anyway in the event of an unknown firmware version. All other values
  779.   are ignored.
  780.  
  781.   6.2.  The CDU-31A and CDU-33A Sony Interface (`cdu31a=')
  782.  
  783.   This CD-ROM interface is found on some of the Pro Audio Spectrum sound
  784.   cards, and other Sony supplied interface cards.  The syntax is as
  785.   follows:
  786.  
  787.   ______________________________________________________________________
  788.           cdu31a=iobase,[irq[,is_pas_card]]
  789.   ______________________________________________________________________
  790.  
  791.   Specifying an IRQ value of zero tells the driver that hardware
  792.   interrupts aren't supported (as on some PAS cards). If your card
  793.   supports interrupts, you should use them as it cuts down on the CPU
  794.   usage of the driver.
  795.  
  796.   The `is_pas_card' should be entered as `PAS' if using a Pro Audio
  797.   Spectrum card, and otherwise it should not be specified at all.
  798.  
  799.   6.3.  The CDU-535 Sony Interface (`sonycd535=')
  800.  
  801.   The syntax for this CD-ROM interface is:
  802.  
  803.   ______________________________________________________________________
  804.           sonycd535=iobase[,irq]
  805.   ______________________________________________________________________
  806.  
  807.   A zero can be used for the I/O base as a `placeholder' if one wishes
  808.   to specify an IRQ value.
  809.  
  810.   6.4.  The GoldStar Interface (`gscd=')
  811.  
  812.   The syntax for this CD-ROM interface is:
  813.  
  814.   ______________________________________________________________________
  815.           gscd=iobase
  816.   ______________________________________________________________________
  817.  
  818.   6.5.  The Mitsumi Standard Interface (`mcd=')
  819.  
  820.   The syntax for this CD-ROM interface is:
  821.  
  822.   ______________________________________________________________________
  823.           mcd=iobase,[irq[,wait_value]]
  824.   ______________________________________________________________________
  825.  
  826.   The wait_value is used as an internal timeout value for people who are
  827.   having problems with their drive, and may or may not be implemented
  828.   depending on a compile time DEFINE.
  829.  
  830.   6.6.  The Mitsumi XA/MultiSession Interface (`mcdx=')
  831.  
  832.   At present this `experimental' driver has a setup function, but no
  833.   parameters are implemented yet (as of 1.3.15).  This is for the same
  834.   hardware as above, but the driver has extended features.
  835.  
  836.   6.7.  The Optics Storage Interface (`optcd=')
  837.  
  838.   The syntax for this type of card is:
  839.  
  840.   ______________________________________________________________________
  841.           optcd=iobase
  842.   ______________________________________________________________________
  843.  
  844.   6.8.  The Phillips CM206 Interface (`cm206=')
  845.  
  846.   The syntax for this type of card is:
  847.  
  848.   ______________________________________________________________________
  849.           cm206=[iobase][,irq]
  850.   ______________________________________________________________________
  851.  
  852.   The driver assumes numbers between 3 and 11 are IRQ values, and
  853.   numbers between 0x300 and 0x370 are I/O ports, so you can specify one,
  854.   or both numbers, in any order.  It also accepts `cm206=auto' to enable
  855.   autoprobing.
  856.  
  857.   6.9.  The Sanyo Interface (`sjcd=')
  858.  
  859.   The syntax for this type of card is:
  860.  
  861.   ______________________________________________________________________
  862.           sjcd=iobase[,irq[,dma_channel]]
  863.   ______________________________________________________________________
  864.  
  865.   6.10.  The SoundBlaster Pro Interface (`sbpcd=')
  866.  
  867.   The syntax for this type of card is:
  868.  
  869.   ______________________________________________________________________
  870.           sbpcd=iobase,type
  871.   ______________________________________________________________________
  872.  
  873.   where type is one of the following (case sensitive) strings:
  874.   `SoundBlaster', `LaserMate', or `SPEA'.  The I/O base is that of the
  875.   CD-ROM interface, and not that of the sound portion of the card.
  876.  
  877.   7.  Other Hardware Devices
  878.  
  879.   Any other devices that didn't fit into any of the above categories got
  880.   lumped together here.
  881.  
  882.   7.1.  Ethernet Devices (`ether=')
  883.  
  884.   Different drivers make use of different parameters, but they all at
  885.   least share having an IRQ, an I/O port base value, and a name. In its
  886.   most generic form, it looks something like this:
  887.  
  888.   ______________________________________________________________________
  889.           ether=irq,iobase[,param_1[,param_2,...param_8]]],name
  890.   ______________________________________________________________________
  891.  
  892.   The first non-numeric argument is taken as the name.  The param_n
  893.   values (if applicable) usually have different meanings for each
  894.   different card/driver.  Typical param_n values are used to specify
  895.   things like shared memory address, interface selection, DMA channel
  896.   and the like.
  897.  
  898.   The most common use of this parameter is to force probing for a second
  899.   ethercard, as the default is to only probe for one. This can be
  900.   accomplished with a simple:
  901.  
  902.   ______________________________________________________________________
  903.           ether=0,0,eth1
  904.   ______________________________________________________________________
  905.  
  906.   Note that the values of zero for the IRQ and I/O base in the above
  907.   example tell the driver(s) to autoprobe.
  908.  
  909.   Note that the Ethernet-HowTo has complete and extensive documentation
  910.   on using multiple cards and on the card/driver specific implementation
  911.   of the param_n values where used. Interested readers should refer to
  912.   the section in that document on their particular card for more
  913.   complete information.
  914.  
  915.   7.2.  The Floppy Disk Driver (`floppy=')
  916.  
  917.   There are many floppy driver options, and they are all listed in
  918.   README.fd in linux/drivers/block. This information is taken directly
  919.   from that file.
  920.  
  921.   7.2.1.  floppy=mask,allowed_drive_mask
  922.  
  923.   Sets the bitmask of allowed drives to mask. By default, only units 0
  924.   and 1 of each floppy controller are allowed. This is done because
  925.   certain non-standard hardware (ASUS PCI motherboards) mess up the
  926.   keyboard when accessing units 2 or 3. This option is somewhat
  927.   obsoleted by the cmos option.
  928.  
  929.   7.2.2.  floppy=all_drives
  930.  
  931.   Sets the bitmask of allowed drives to all drives. Use this if you have
  932.   more than two drives connected to a floppy controller.
  933.  
  934.   7.2.3.  floppy=asus_pci
  935.  
  936.   Sets the bitmask to allow only units 0 and 1. (The default)
  937.  
  938.   7.2.4.  floppy=daring
  939.  
  940.   Tells the floppy driver that you have a well behaved floppy
  941.   controller.  This allows more efficient and smoother operation, but
  942.   may fail on certain controllers. This may speed up certain operations.
  943.  
  944.   7.2.5.  floppy=0,daring
  945.  
  946.   Tells the floppy driver that your floppy controller should be used
  947.   with caution.
  948.  
  949.   7.2.6.  floppy=one_fdc
  950.  
  951.   Tells the floppy driver that you have only floppy controller (default)
  952.  
  953.   7.2.7.  floppy=two_fdc or floppy=address,two_fdc
  954.  
  955.   Tells the floppy driver that you have two floppy controllers. The
  956.   second floppy controller is assumed to be at address. If address is
  957.   not given, 0x370 is assumed.
  958.  
  959.   7.2.8.  floppy=thinkpad
  960.  
  961.   Tells the floppy driver that you have a Thinkpad. Thinkpads use an
  962.   inverted convention for the disk change line.
  963.   7.2.9.  floppy=0,thinkpad
  964.  
  965.   Tells the floppy driver that you don't have a Thinkpad.
  966.  
  967.   7.2.10.  floppy=drive,type,cmos
  968.  
  969.   Sets the cmos type of drive to type.  Additionally, this drive is
  970.   allowed in the bitmask. This is useful if you have more than two
  971.   floppy drives (only two can be described in the physical cmos), or if
  972.   your BIOS uses non-standard CMOS types.  Setting the CMOS to 0 for the
  973.   first two drives (default) makes the floppy driver read the physical
  974.   cmos for those drives.
  975.  
  976.   7.2.11.  floppy=unexpected_interrupts
  977.  
  978.   Print a warning message when an unexpected interrupt is received
  979.   (default behaviour)
  980.  
  981.   7.2.12.  floppy=no_unexpected_interrupts or floppy=L40SX
  982.  
  983.   Don't print a message when an unexpected interrupt is received. This
  984.   is needed on IBM L40SX laptops in certain video modes. (There seems to
  985.   be an interaction between video and floppy. The unexpected interrupts
  986.   only affect performance, and can safely be ignored.)
  987.  
  988.   7.3.  The Sound Driver (`sound=')
  989.  
  990.   The sound driver can also accept boot args to override the compiled in
  991.   values. This is not recommended, as it is rather complex. It is
  992.   described in the Readme.Linux file, in linux/drivers/sound. It accepts
  993.   a boot arg of the form:
  994.  
  995.   ______________________________________________________________________
  996.           sound=device1[,device2[,device3...[,device11]]]
  997.   ______________________________________________________________________
  998.  
  999.   where each deviceN value is of the following format 0xTaaaId and the
  1000.   bytes are used as follows:
  1001.  
  1002.   T - device type: 1=FM, 2=SB, 3=PAS, 4=GUS, 5=MPU401, 6=SB16,
  1003.   7=SB16-MPU401
  1004.  
  1005.   aaa - I/O address in hex.
  1006.  
  1007.   I - interrupt line in hex (i.e 10=a, 11=b, ...)
  1008.  
  1009.   d - DMA channel.
  1010.  
  1011.   As you can see it gets pretty messy, and you are better off to compile
  1012.   in your own personal values as recommended. Using a boot arg of
  1013.   `sound=0' will disable the sound driver entirely.
  1014.  
  1015.   7.4.  The Bus Mouse Driver (`bmouse=')
  1016.  
  1017.   The busmouse driver only accepts one parameter, that being the
  1018.   hardware IRQ value to be used.
  1019.  
  1020.   8.  Closing
  1021.  
  1022.   If you have found any glaring typos, or outdated info in this
  1023.   document, please let me know. It is easy to overlook stuff.
  1024.  
  1025.   Thanks,
  1026.  
  1027.   Paul Gortmaker, Paul.Gortmaker@anu.edu.au
  1028.  
  1029.