]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man7/bootparam.7
stdarg.3: Describe va_copy()
[thirdparty/man-pages.git] / man7 / bootparam.7
CommitLineData
fea681da
MK
1.\" Copyright (c) 1995,1997 Paul Gortmaker and Andries Brouwer
2.\"
1dd72f9c 3.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
fea681da
MK
4.\" This is free documentation; you can redistribute it and/or
5.\" modify it under the terms of the GNU General Public License as
6.\" published by the Free Software Foundation; either version 2 of
7.\" the License, or (at your option) any later version.
8.\"
9.\" The GNU General Public License's references to "object code"
10.\" and "executables" are to be interpreted as the output of any
11.\" document formatting or typesetting system, including
12.\" intermediate and printed output.
13.\"
14.\" This manual is distributed in the hope that it will be useful,
15.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17.\" GNU General Public License for more details.
18.\"
19.\" You should have received a copy of the GNU General Public
c715f741
MK
20.\" License along with this manual; if not, see
21.\" <http://www.gnu.org/licenses/>.
6a8d8745 22.\" %%%LICENSE_END
fea681da
MK
23.\"
24.\" This man page written 950814 by aeb, based on Paul Gortmaker's HOWTO
25.\" (dated v1.0.1, 15/08/95).
26.\" Major update, aeb, 970114.
8062a091
MK
27.\" FIXME ? The use of quotes on this page is inconsistent with the
28.\" rest of man-pages.
fea681da 29.\"
40dedbfe 30.TH BOOTPARAM 7 2007-12-16 "Linux" "Linux Programmer's Manual"
fea681da 31.SH NAME
f68512e9 32bootparam \- introduction to boot time parameters of the Linux kernel
fea681da 33.SH DESCRIPTION
76c44d83 34The Linux kernel accepts certain 'command-line options' or 'boot time
c13182ef
MK
35parameters' at the moment it is started.
36In general this is used to
fea681da
MK
37supply the kernel with information about hardware parameters that
38the kernel would not be able to determine on its own, or to avoid/override
39the values that the kernel would otherwise detect.
40
41When the kernel is booted directly by the BIOS (say from a floppy to
40dedbfe 42which you copied a kernel using 'cp zImage /dev/fd0'),
fea681da
MK
43you have no opportunity to specify any parameters.
44So, in order to take advantage of this possibility you have to
45use software that is able to pass parameters, like LILO or loadlin.
46For a few parameters one can also modify the kernel image itself,
47using rdev, see
48.BR rdev (8)
49for further details.
50
51The LILO program (LInux LOader) written by Werner Almesberger is the
c13182ef
MK
52most commonly used.
53It has the ability to boot various kernels, and
54stores the configuration information in a plain text file.
55(See
fea681da
MK
56.BR lilo (8)
57and
58.BR lilo.conf (5).)
59LILO can boot DOS, OS/2, Linux, FreeBSD, UnixWare, etc., and is quite flexible.
60
40dedbfe 61The other commonly used Linux loader is 'LoadLin' which is a DOS
fea681da
MK
62program that has the capability to launch a Linux kernel from the DOS
63prompt (with boot-args) assuming that certain resources are available.
64This is good for people that want to launch Linux from DOS.
65
66It is also very useful if you have certain hardware which relies on
c13182ef 67the supplied DOS driver to put the hardware into a known state.
40dedbfe 68A common example is 'SoundBlaster Compatible' sound cards that require
fea681da 69the DOS driver to twiddle a few mystical registers to put the card
c13182ef
MK
70into a SB compatible mode.
71Booting DOS with the supplied driver, and
fea681da
MK
72then loading Linux from the DOS prompt with loadlin avoids the reset
73of the card that happens if one rebooted instead.
73d8cece 74.SS The argument list
fea681da 75The kernel command line is parsed into a list of strings
c13182ef
MK
76(boot arguments) separated by spaces.
77Most of the boot args take the form of:
fea681da
MK
78.IP
79name[=value_1][,value_2]...[,value_10]
80.LP
40dedbfe 81where 'name' is a unique keyword that is used to identify what part of
fea681da
MK
82the kernel the associated values (if any) are to be given to.
83Note the limit of 10 is real, as the present code only handles 10 comma
c13182ef 84separated parameters per keyword.
3b777aff 85(However, you can reuse the same
fea681da
MK
86keyword with up to an additional 10 parameters in unusually
87complicated situations, assuming the setup function supports it.)
88
c13182ef
MK
89Most of the sorting goes on in linux/init/main.c.
90First, the kernel
40dedbfe 91checks to see if the argument is any of the special arguments 'root=',
25715c96 92\&'nfsroot=', 'nfsaddrs=', 'ro', 'rw', 'debug' or 'init'.
c13182ef 93The meaning of these special arguments is described below.
fea681da
MK
94
95Then it walks a list of setup functions (contained in the bootsetups
40dedbfe
MK
96array) to see if the specified argument string (such as 'foo') has
97been associated with a setup function ('foo_setup()') for a particular
c13182ef
MK
98device or part of the kernel.
99If you passed the kernel the line
fea681da 100foo=3,4,5,6 then the kernel would search the bootsetups array to see
40dedbfe 101if 'foo' was registered.
c13182ef 102If it was, then it would call the setup
40dedbfe 103function associated with 'foo' (foo_setup()) and hand it the arguments
fea681da
MK
1043, 4, 5 and 6 as given on the kernel command line.
105
40dedbfe 106Anything of the form 'foo=bar' that is not accepted as a setup function
fea681da 107as described above is then interpreted as an environment variable to
c13182ef 108be set.
40dedbfe 109A (useless?) example would be to use 'TERM=vt100' as a boot
fea681da
MK
110argument.
111
112Any remaining arguments that were not picked up by the kernel and were
113not interpreted as environment variables are then passed onto process
c13182ef
MK
114one, which is usually the init program.
115The most common argument that
40dedbfe 116is passed to the init process is the word 'single' which instructs init
fea681da 117to boot the computer in single user mode, and not launch all the usual
c13182ef
MK
118daemons.
119Check the manual page for the version of init installed on
fea681da 120your system to see what arguments it accepts.
73d8cece 121.SS General non-device specific boot arguments
bebbbd1f 122.TP
40dedbfe 123.B "'init=...'"
fea681da
MK
124This sets the initial command to be executed by the kernel.
125If this is not set, or cannot be found, the kernel will try
5ce89119
MK
126.IR /sbin/init ,
127then
fea681da
MK
128.IR /etc/init ,
129then
130.IR /bin/init ,
131then
0daa9e92 132.I /bin/sh
fea681da 133and panic if all of this fails.
bebbbd1f 134.TP
40dedbfe 135.B "'nfsaddrs=...'"
fea681da
MK
136This sets the nfs boot address to the given string.
137This boot address is used in case of a net boot.
bebbbd1f 138.TP
40dedbfe 139.B "'nfsroot=...'"
c13182ef
MK
140This sets the nfs root name to the given string.
141If this string
fea681da 142does not begin with '/' or ',' or a digit, then it is prefixed by
25715c96 143\&'/tftpboot/'.
c13182ef 144This root name is used in case of a net boot.
bebbbd1f 145.TP
40dedbfe
MK
146.B "'no387'"
147(Only when
148.B CONFIG_BUGi386
149is defined.)
fea681da 150Some i387 coprocessor chips have bugs that show up when used in 32 bit
c13182ef
MK
151protected mode.
152For example, some of the early ULSI-387 chips would
c45bd688 153cause solid lockups while performing floating-point calculations.
40dedbfe 154Using the 'no387' boot arg causes Linux to ignore the maths
c13182ef
MK
155coprocessor even if you have one.
156Of course you must then have your
fea681da 157kernel compiled with math emulation support!
bebbbd1f 158.TP
40dedbfe
MK
159.B "'no-hlt'"
160(Only when
161.B CONFIG_BUGi386
162is defined.)
163Some of the early i486DX-100 chips have a problem with the 'hlt'
fea681da 164instruction, in that they can't reliably return to operating mode
c13182ef 165after this instruction is used.
40dedbfe 166Using the 'no-hlt' instruction tells
fea681da 167Linux to just run an infinite loop when there is nothing else to do,
c13182ef
MK
168and to not halt the CPU.
169This allows people with these broken chips
fea681da 170to use Linux.
bebbbd1f 171.TP
40dedbfe 172.B "'root=...'"
fea681da 173This argument tells the kernel what device is to be used as the root
24d01c53 174file system while booting.
c13182ef 175The default of this setting is determined
fea681da 176at compile time, and usually is the value of the root device of the
c13182ef
MK
177system that the kernel was built on.
178To override this value, and
fea681da 179select the second floppy drive as the root device, one would
6387216b
MK
180use 'root=/dev/fd1'.
181(The root device can also be set using
fea681da
MK
182.BR rdev (8).)
183
184The root device can be specified symbolically or numerically.
185A symbolic specification has the form /dev/XXYN, where XX designates
40dedbfe 186the device type ('hd' for ST-506 compatible hard disk, with Y in
25715c96
MK
187\&'a'-'d'; 'sd' for SCSI compatible disk, with Y in 'a'-'e';
188\&'ad' for Atari ACSI disk, with Y in 'a'-'e',
189\&'ez' for a Syquest EZ135 parallel port removable drive, with Y='a',
190\&'xd' for XT compatible disk, with Y either 'a' or 'b'; 'fd' for
5503c85e 191floppy disk, with Y the floppy drive number\(emfd0 would be
40dedbfe 192the DOS 'A:' drive, and fd1 would be 'B:'), Y the driver letter or
fea681da 193number, and N the number (in decimal) of the partition on this device
c13182ef
MK
194(absent in the case of floppies).
195Recent kernels allow many other
fea681da
MK
196types, mostly for CD-ROMs: nfs, ram, scd, mcd, cdu535, aztcd, cm206cd,
197gscd, sbpcd, sonycd, bpcd.
198(The type nfs specifies a net boot; ram refers to a ram disk.)
199
200Note that this has nothing to do with the designation of these
c13182ef 201devices on your file system.
40dedbfe 202The '/dev/' part is purely conventional.
fea681da
MK
203
204The more awkward and less portable numeric specification of the above
c13182ef 205possible root devices in major/minor format is also accepted.
40dedbfe 206(E.g., /dev/sda3 is major 8, minor 3, so you could use 'root=0x803' as an
fea681da 207alternative.)
bebbbd1f 208.TP
40dedbfe 209.BR 'ro' " and " 'rw'
24d01c53 210The 'ro' option tells the kernel to mount the root file system
415d4dd0 211as 'read-only' so that file system consistency check programs (fsck)
c13182ef
MK
212can do their work on a quiescent file system.
213No processes can
24d01c53 214write to files on the file system in question until it is 'remounted'
40dedbfe 215as read/write capable, for example, by 'mount \-w \-n \-o remount /'.
fea681da
MK
216(See also
217.BR mount (8).)
218
24d01c53 219The 'rw' option tells the kernel to mount the root file system read/write.
fea681da
MK
220This is the default.
221
222The choice between read-only and read/write can also be set using
223.BR rdev (8).
bebbbd1f 224.TP
40dedbfe 225.B "'reserve=...'"
c13182ef
MK
226This is used to protect I/O port regions from probes.
227The form of the command is:
fea681da
MK
228.IP
229.BI reserve= iobase,extent[,iobase,extent]...
bebbbd1f 230.sp
fea681da 231In some machines it may be necessary to prevent device drivers from
c13182ef
MK
232checking for devices (auto-probing) in a specific region.
233This may be
fea681da
MK
234because of hardware that reacts badly to the probing, or hardware
235that would be mistakenly identified, or merely
236hardware you don't want the kernel to initialize.
237
238The reserve boot-time argument specifies an I/O port region that
c13182ef
MK
239shouldn't be probed.
240A device driver will not probe a reserved region,
fea681da
MK
241unless another boot argument explicitly specifies that it do so.
242
243For example, the boot line
244.IP
245reserve=0x300,32 blah=0x300
bebbbd1f 246.IP
40dedbfe 247keeps all device drivers except the driver for 'blah' from probing
94e9d9fe 2480x300\-0x31f.
bebbbd1f 249.TP
40dedbfe 250.B "'mem=...'"
fea681da
MK
251The BIOS call defined in the PC specification that returns
252the amount of installed memory was only designed to be able
c13182ef
MK
253to report up to 64MB.
254Linux uses this BIOS call at boot to
255determine how much memory is installed.
256If you have more than 64MB of
fea681da 257RAM installed, you can use this boot arg to tell Linux how much memory
c13182ef
MK
258you have.
259The value is in decimal or hexadecimal (prefix 0x),
40dedbfe
MK
260and the suffixes 'k' (times 1024) or 'M' (times 1048576) can be used.
261Here is a quote from Linus on usage of the 'mem=' parameter.
fea681da 262
324633ae 263.in +0.5i
40dedbfe 264The kernel will accept any 'mem=xx' parameter you give it, and if it
fea681da
MK
265turns out that you lied to it, it will crash horribly sooner or later.
266The parameter indicates the highest addressable RAM address, so
40dedbfe
MK
267\&'mem=0x1000000' means you have 16MB of memory, for example.
268For a 96MB machine this would be 'mem=0x6000000'.
fea681da 269
192e4f2e
MK
270.BR NOTE :
271some machines might use the top of memory for BIOS
4f9d18f8 272caching or whatever, so you might not actually have up to the full
c13182ef
MK
27396MB addressable.
274The reverse is also true: some chipsets will map
fea681da
MK
275the physical memory that is covered by the BIOS area into the area
276just past the top of memory, so the top-of-mem might actually be 96MB
c13182ef
MK
277+ 384kB for example.
278If you tell linux that it has more memory than
fea681da 279it actually does have, bad things will happen: maybe not at once, but
324633ae
MK
280surely eventually.
281.in
fea681da 282
40dedbfe 283You can also use the boot argument 'mem=nopentium' to turn off 4 MB
eb1af896 284page tables on kernels configured for IA32 systems with a pentium or newer
441082ad 285CPU.
bebbbd1f 286.TP
40dedbfe 287.B "'panic=N'"
fea681da 288By default the kernel will not reboot after a panic, but this option
f7ceac86 289will cause a kernel reboot after N seconds (if N is greater than zero).
fea681da 290This panic timeout can also be set by "echo N > /proc/sys/kernel/panic".
bebbbd1f 291.TP
40dedbfe
MK
292.B "'reboot=[warm|cold][,[bios|hard]]'"
293(Only when
294.B CONFIG_BUGi386
295is defined.)
fea681da 296Since 2.0.22 a reboot is by default a cold reboot.
40dedbfe 297One asks for the old default with 'reboot=warm'.
fea681da
MK
298(A cold reboot may be required to reset certain hardware,
299but might destroy not yet written data in a disk cache.
300A warm reboot may be faster.)
301By default a reboot is hard, by asking the keyboard controller
302to pulse the reset line low, but there is at least one type
c13182ef 303of motherboard where that doesn't work.
40dedbfe 304The option 'reboot=bios' will
fea681da 305instead jump through the BIOS.
bebbbd1f 306.TP
40dedbfe 307.BR 'nosmp' " and " 'maxcpus=N'
fea681da 308(Only when __SMP__ is defined.)
40dedbfe
MK
309A command-line option of 'nosmp' or 'maxcpus=0' will disable SMP
310activation entirely; an option 'maxcpus=N' limits the maximum number
fea681da 311of CPUs activated in SMP mode to N.
73d8cece 312.SS Boot arguments for use by kernel developers
bebbbd1f 313.TP
40dedbfe 314.B "'debug'"
fea681da 315Kernel messages are handed off to the kernel log daemon klogd so that they
c13182ef
MK
316may be logged to disk.
317Messages with a priority above
fea681da 318.I console_loglevel
c13182ef 319are also printed on the console.
c84371c6 320(For these levels, see \fI<linux/kernel.h>\fP.)
fea681da 321By default this variable is set to log anything more important than
c13182ef
MK
322debug messages.
323This boot argument will cause the kernel to also
fea681da
MK
324print the messages of DEBUG priority.
325The console loglevel can also be set at run time via an option
c13182ef
MK
326to klogd.
327See
fea681da 328.BR klogd (8).
bebbbd1f 329.TP
40dedbfe 330.B "'profile=N'"
fea681da
MK
331It is possible to enable a kernel profiling function,
332if one wishes to find out where the kernel is spending its CPU cycles.
333Profiling is enabled by setting the variable
334.I prof_shift
c7094399 335to a nonzero value.
40dedbfe
MK
336This is done either by specifying
337.B CONFIG_PROFILE
338at compile time, or by giving the 'profile=' option.
fea681da
MK
339Now the value that
340.I prof_shift
40dedbfe
MK
341gets will be N, when given, or
342.BR CONFIG_PROFILE_SHIFT ,
343when that is given, or 2, the default.
c13182ef 344The significance of this variable is that it
fea681da
MK
345gives the granularity of the profiling: each clock tick, if the
346system was executing kernel code, a counter is incremented:
347.IP
348profile[address >> prof_shift]++;
bebbbd1f 349.sp
fea681da
MK
350The raw profiling information can be read from
351.IR /proc/profile .
352Probably you'll want to use a tool such as readprofile.c to digest it.
353Writing to
354.I /proc/profile
355will clear the counters.
bebbbd1f 356.TP
40dedbfe 357.B "'swap=N1,N2,N3,N4,N5,N6,N7,N8'"
fea681da
MK
358Set the eight parameters max_page_age, page_advance, page_decline,
359page_initial_age, age_cluster_fract, age_cluster_min, pageout_weight,
360bufferout_weight that control the kernel swap algorithm.
361For kernel tuners only.
bebbbd1f 362.TP
40dedbfe 363.B "'buff=N1,N2,N3,N4,N5,N6'"
fea681da
MK
364Set the six parameters max_buff_age, buff_advance, buff_decline,
365buff_initial_age, bufferout_weight, buffermem_grace that control
c13182ef
MK
366kernel buffer memory management.
367For kernel tuners only.
73d8cece 368.SS Boot arguments for ramdisk use
40dedbfe
MK
369(Only if the kernel was compiled with
370.BR CONFIG_BLK_DEV_RAM .)
5503c85e
MK
371In general it is a bad idea to use a ramdisk under Linux\(emthe
372system will use available memory more efficiently itself.
fea681da
MK
373But while booting (or while constructing boot floppies)
374it is often useful to load the floppy contents into a
c13182ef
MK
375ramdisk.
376One might also have a system in which first
24d01c53 377some modules (for file system or hardware) must be loaded
fea681da
MK
378before the main disk can be accessed.
379
380In Linux 1.3.48, ramdisk handling was changed drastically.
381Earlier, the memory was allocated statically, and there was
40dedbfe 382a 'ramdisk=N' parameter to tell its size.
c13182ef 383(This could also
fea681da
MK
384be set in the kernel image at compile time, or by use of
385.BR rdev (8).)
386These days ram disks use the buffer cache, and grow dynamically.
387For a lot of information (e.g., how to use
388.BR rdev (8)
389in conjunction with the new ramdisk setup), see
390.IR /usr/src/linux/Documentation/ramdisk.txt .
391
392There are four parameters, two boolean and two integral.
bebbbd1f 393.TP
40dedbfe 394.B "'load_ramdisk=N'"
c13182ef
MK
395If N=1, do load a ramdisk.
396If N=0, do not load a ramdisk.
fea681da 397(This is the default.)
bebbbd1f 398.TP
40dedbfe 399.B "'prompt_ramdisk=N'"
c13182ef
MK
400If N=1, do prompt for insertion of the floppy.
401(This is the default.)
402If N=0, do not prompt.
403(Thus, this parameter is never needed.)
bebbbd1f 404.TP
40dedbfe 405.BR 'ramdisk_size=N' " or (obsolete) " 'ramdisk=N'
c13182ef
MK
406Set the maximal size of the ramdisk(s) to N kB.
407The default is 4096 (4 MB).
bebbbd1f 408.TP
40dedbfe 409.B "'ramdisk_start=N'"
fea681da
MK
410Sets the starting block number (the offset on the floppy where
411the ramdisk starts) to N.
412This is needed in case the ramdisk follows a kernel image.
bebbbd1f 413.TP
40dedbfe
MK
414.B "'noinitrd'"
415(Only if the kernel was compiled with
416.B CONFIG_BLK_DEV_RAM
417and
418.BR CONFIG_BLK_DEV_INITRD .)
fea681da
MK
419These days it is possible to compile the kernel to use initrd.
420When this feature is enabled, the boot process will load the kernel
421and an initial ramdisk; then the kernel converts initrd into
422a "normal" ramdisk, which is mounted read-write as root device;
5fab2e7c 423then /linuxrc is executed; afterward the "real" root file system is mounted,
24d01c53 424and the initrd file system is moved over to /initrd; finally
75b94dc3 425the usual boot sequence (e.g., invocation of /sbin/init) is performed.
fea681da
MK
426
427For a detailed description of the initrd feature, see
428.IR /usr/src/linux/Documentation/initrd.txt .
429
40dedbfe 430The 'noinitrd' option tells the kernel that although it was compiled for
fea681da
MK
431operation with initrd, it should not go through the above steps, but
432leave the initrd data under
433.IR /dev/initrd .
4d9b6984 434(This device can be used only once: the data is freed as soon as
fea681da
MK
435the last process that used it has closed
436.IR /dev/initrd .)
73d8cece 437.SS Boot arguments for SCSI devices
fea681da
MK
438General notation for this section:
439
440.I iobase
c13182ef
MK
441-- the first I/O port that the SCSI host occupies.
442These are specified in hexadecimal notation,
443and usually lie in the range from 0x200 to 0x3ff.
fea681da
MK
444
445.I irq
446-- the hardware interrupt that the card is configured to use.
447Valid values will be dependent on the card in question, but will
c13182ef
MK
448usually be 5, 7, 9, 10, 11, 12, and 15.
449The other values are usually
fea681da 450used for common peripherals like IDE hard disks, floppies, serial
fb3969cd 451ports, and so on.
fea681da
MK
452
453.I scsi-id
454-- the ID that the host adapter uses to identify itself on the
c13182ef
MK
455SCSI bus.
456Only some host adapters allow you to change this value, as
457most have it permanently specified internally.
458The usual default value
fea681da
MK
459is 7, but the Seagate and Future Domain TMC-950 boards use 6.
460
461.I parity
462-- whether the SCSI host adapter expects the attached devices
c13182ef
MK
463to supply a parity value with all information exchanges.
464Specifying a one indicates parity checking is enabled,
465and a zero disables parity checking.
466Again, not all adapters will support selection of parity
d9bfdb9c 467behavior as a boot argument.
bebbbd1f 468.TP
40dedbfe 469.B "'max_scsi_luns=...'"
310672d6 470A SCSI device can have a number of 'subdevices' contained within
c13182ef
MK
471itself.
472The most common example is one of the new SCSI CD-ROMs that
473handle more than one disk at a time.
474Each CD is addressed as a
25715c96 475\&'Logical Unit Number' (LUN) of that particular device.
c13182ef 476But most
fea681da
MK
477devices, such as hard disks, tape drives and such are only one device,
478and will be assigned to LUN zero.
479
480Some poorly designed SCSI devices cannot handle being probed for
c13182ef 481LUNs not equal to zero.
29aceda4 482Therefore, if the compile-time flag
40dedbfe
MK
483.B CONFIG_SCSI_MULTI_LUN
484is not set, newer kernels will by default only probe LUN zero.
fea681da
MK
485
486To specify the number of probed LUNs at boot, one enters
25715c96 487\&'max_scsi_luns=n' as a boot arg, where n is a number between one and
c13182ef
MK
488eight.
489To avoid problems as described above, one would use n=1 to
fea681da 490avoid upsetting such broken devices.
bebbbd1f
MK
491.TP
492.B "SCSI tape configuration"
fea681da
MK
493Some boot time configuration of the SCSI tape driver can be achieved
494by using the following:
495.IP
496.BI st= buf_size[,write_threshold[,max_bufs]]
bebbbd1f 497.sp
c13182ef
MK
498The first two numbers are specified in units of kB.
499The default
fea681da
MK
500.I buf_size
501is 32kB, and the maximum size that can be specified is a
c13182ef
MK
502ridiculous 16384kB.
503The
fea681da
MK
504.I write_threshold
505is the value at which the buffer is committed to tape, with a
c13182ef
MK
506default value of 30kB.
507The maximum number of buffers varies
fea681da
MK
508with the number of drives detected, and has a default of two.
509An example usage would be:
510.IP
511st=32,30,2
bebbbd1f 512.IP
4568d084
MK
513Full details can be found in the file
514.I Documentation/scsi/st.txt
515(or
516.I drivers/scsi/README.st
66a9882e 517for older kernels) in the Linux kernel source.
bebbbd1f
MK
518.TP
519.B "Adaptec aha151x, aha152x, aic6260, aic6360, SB16-SCSI configuration"
fea681da
MK
520The aha numbers refer to cards and the aic numbers refer to the actual
521SCSI chip on these type of cards, including the Soundblaster-16 SCSI.
522
523The probe code for these SCSI hosts looks for an installed BIOS, and
c13182ef
MK
524if none is present, the probe will not find your card.
525Then you will
fea681da
MK
526have to use a boot arg of the form:
527.IP
528.BI aha152x= iobase[,irq[,scsi-id[,reconnect[,parity]]]]
bebbbd1f 529.IP
fea681da
MK
530If the driver was compiled with debugging enabled, a sixth
531value can be specified to set the debug level.
532
533All the parameters are as described at the top of this section, and the
534.I reconnect
c7094399 535value will allow device disconnect/reconnect if a nonzero value
c13182ef
MK
536is used.
537An example usage is as follows:
fea681da
MK
538.IP
539aha152x=0x340,11,7,1
bebbbd1f 540.IP
fea681da
MK
541Note that the parameters must be specified in order, meaning that if
542you want to specify a parity setting, then you will have to specify an
543iobase, irq, scsi-id and reconnect value as well.
bebbbd1f
MK
544.TP
545.B "Adaptec aha154x configuration"
fea681da 546The aha1542 series cards have an i82077 floppy controller onboard,
c13182ef
MK
547while the aha1540 series cards do not.
548These are busmastering cards,
324633ae 549and have parameters to set the "fairness" that is used to share
c13182ef
MK
550the bus with other devices.
551The boot arg looks like the following.
fea681da
MK
552.IP
553.BI aha1542= iobase[,buson,busoff[,dmaspeed]]
bebbbd1f 554.IP
fea681da 555Valid iobase values are usually one of: 0x130, 0x134, 0x230, 0x234,
c13182ef
MK
5560x330, 0x334.
557Clone cards may permit other values.
fea681da
MK
558
559The
560.IR buson ", " busoff
561values refer to the number of microseconds that the
c13182ef
MK
562card dominates the ISA bus.
563The defaults are 11us on, and 4us off, so
fea681da
MK
564that other cards (such as an ISA LANCE Ethernet card) have a chance to
565get access to the ISA bus.
566
567The
568.I dmaspeed
569value refers to the rate (in MB/s) at which the DMA
c13182ef
MK
570(Direct Memory Access) transfers proceed.
571The default is 5MB/s.
fea681da 572Newer revision cards allow you to select this value as part of the
c13182ef
MK
573soft-configuration, older cards use jumpers.
574You can use values up to
fea681da
MK
57510MB/s assuming that your motherboard is capable of handling it.
576Experiment with caution if using values over 5MB/s.
bebbbd1f
MK
577.TP
578.B "Adaptec aha274x, aha284x, aic7xxx configuration"
fea681da
MK
579These boards can accept an argument of the form:
580.IP
581.BI aic7xxx= extended,no_reset
bebbbd1f 582.IP
fea681da
MK
583The
584.I extended
c7094399 585value, if nonzero, indicates that extended translation for large
c13182ef
MK
586disks is enabled.
587The
fea681da 588.I no_reset
c7094399 589value, if nonzero, tells the driver not to reset the SCSI bus when
d89be9f3 590setting up the host adapter at boot.
bebbbd1f 591.TP
40dedbfe 592.B "AdvanSys SCSI Hosts configuration ('advansys=')"
fea681da 593The AdvanSys driver can accept up to four i/o addresses that will be
c13182ef
MK
594probed for an AdvanSys SCSI card.
595Note that these values (if used) do
596not effect EISA or PCI probing in any way.
597They are only used for
598probing ISA and VLB cards.
599In addition, if the driver has been
fea681da 600compiled with debugging enabled, the level of debugging output can be
c13182ef
MK
601set by adding an 0xdeb[0-f] parameter.
602The 0-f allows setting the
fea681da 603level of the debugging messages to any of 16 levels of verbosity.
bebbbd1f
MK
604.TP
605.B "AM53C974"
fea681da
MK
606.IP
607.BI AM53C974= host-scsi-id,target-scsi-id,max-rate,max-offset
bebbbd1f 608.TP
40dedbfe 609.B "BusLogic SCSI Hosts configuration ('BusLogic=')"
fea681da
MK
610.IP
611.BI BusLogic= N1,N2,N3,N4,N5,S1,S2,...
bebbbd1f 612.IP
fea681da
MK
613For an extensive discussion of the BusLogic command line parameters,
614see
0daa9e92 615.I /usr/src/linux/drivers/scsi/BusLogic.c
c13182ef
MK
616(lines 3149-3270 in the kernel version I am looking at).
617The text
fea681da
MK
618below is a very much abbreviated extract.
619
c13182ef
MK
620The parameters N1-N5 are integers.
621The parameters S1,... are strings.
fea681da
MK
622N1 is the I/O Address at which the Host Adapter is located.
623N2 is the Tagged Queue Depth to use for Target Devices that support
624Tagged Queuing.
c13182ef
MK
625N3 is the Bus Settle Time in seconds.
626This is the amount of time
fea681da
MK
627to wait between a Host Adapter Hard Reset which
628initiates a SCSI Bus Reset and issuing any SCSI Commands.
629N4 is the Local Options (for one Host Adapter).
630N5 is the Global Options (for all Host Adapters).
631
632The string options are used to provide control over Tagged Queuing
633(TQ:Default, TQ:Enable, TQ:Disable, TQ:<Per-Target-Spec>), over
634Error Recovery (ER:Default, ER:HardReset, ER:BusDeviceReset,
635ER:None, ER:<Per-Target-Spec>), and over Host Adapter Probing
636(NoProbe, NoProbeISA, NoSortPCI).
bebbbd1f
MK
637.TP
638.B "EATA/DMA configuration"
fea681da
MK
639The default list of i/o ports to be probed can be changed by
640.IP
40dedbfe 641.BI eata= iobase,iobase,...\fP.
bebbbd1f
MK
642.TP
643.B "Future Domain TMC-16x0 configuration"
fea681da
MK
644.IP
645.BI fdomain= iobase,irq[,adapter_id]
bebbbd1f
MK
646.TP
647.B "Great Valley Products (GVP) SCSI controller configuration"
fea681da
MK
648.IP
649.BI gvp11= dma_transfer_bitmask
bebbbd1f
MK
650.TP
651.B "Future Domain TMC-8xx, TMC-950 configuration"
fea681da
MK
652.IP
653.BI tmc8xx= mem_base,irq
bebbbd1f 654.IP
fea681da
MK
655The
656.I mem_base
657value is the value of the memory mapped I/O region that
c13182ef
MK
658the card uses.
659This will usually be one of the following values:
fea681da 6600xc8000, 0xca000, 0xcc000, 0xce000, 0xdc000, 0xde000.
bebbbd1f
MK
661.TP
662.B "IN2000 configuration"
fea681da
MK
663.IP
664.BI in2000= S
bebbbd1f 665.IP
fea681da
MK
666where S is a comma-separated string of items keyword[:value].
667Recognized keywords (possibly with value) are:
668ioport:addr, noreset, nosync:x, period:ns, disconnect:x,
c13182ef
MK
669debug:x, proc:x.
670For the function of these parameters, see
fea681da 671.IR /usr/src/linux/drivers/scsi/in2000.c .
bebbbd1f
MK
672.TP
673.B "NCR5380 and NCR53C400 configuration"
fea681da
MK
674The boot arg is of the form
675.IP
676.BI ncr5380= iobase,irq,dma
bebbbd1f 677.IP
fea681da
MK
678or
679.IP
680.BI ncr53c400= iobase,irq
bebbbd1f 681.IP
fea681da 682If the card doesn't use interrupts, then an IRQ value of 255 (0xff) will
c13182ef
MK
683disable interrupts.
684An IRQ value of 254 means to autoprobe.
4568d084
MK
685More details can be found in the file
686.I Documentation/scsi/g_NCR5380.txt
687(or
688.I drivers/scsi/README.g_NCR5380
66a9882e 689for older kernels) in the Linux kernel source.
bebbbd1f
MK
690.TP
691.B "NCR53C8xx configuration"
fea681da
MK
692.IP
693.BI ncr53c8xx= S
bebbbd1f 694.IP
fea681da
MK
695where S is a comma-separated string of items keyword:value.
696Recognized keywords are: mpar (master_parity), spar (scsi_parity),
697disc (disconnection), specf (special_features), ultra (ultra_scsi),
698fsn (force_sync_nego), tags (default_tags), sync (default_sync),
699verb (verbose), debug (debug), burst (burst_max).
700For the function of the assigned values, see
701.IR /usr/src/linux/drivers/scsi/ncr53c8xx.c .
bebbbd1f
MK
702.TP
703.B "NCR53c406a configuration"
fea681da
MK
704.IP
705.BI ncr53c406a= iobase[,irq[,fastpio]]
bebbbd1f 706.IP
24b74457 707Specify irq = 0 for noninterrupt driven mode.
fea681da 708Set fastpio = 1 for fast pio mode, 0 for slow mode.
bebbbd1f
MK
709.TP
710.B "Pro Audio Spectrum configuration"
fea681da 711The PAS16 uses a NC5380 SCSI chip, and newer models support
c13182ef
MK
712jumperless configuration.
713The boot arg is of the form:
fea681da
MK
714.IP
715.BI pas16= iobase,irq
bebbbd1f 716.IP
fea681da
MK
717The only difference is that you can specify an IRQ value of 255, which
718will tell the driver to work without using interrupts, albeit at a
c13182ef
MK
719performance loss.
720The iobase is usually 0x388.
bebbbd1f
MK
721.TP
722.B "Seagate ST-0x configuration"
fea681da
MK
723If your card is not detected at boot time,
724you will then have to use a boot arg of the form:
725.IP
726.BI st0x= mem_base,irq
bebbbd1f 727.IP
fea681da
MK
728The
729.I mem_base
730value is the value of the memory mapped I/O region that
c13182ef
MK
731the card uses.
732This will usually be one of the following values:
fea681da 7330xc8000, 0xca000, 0xcc000, 0xce000, 0xdc000, 0xde000.
bebbbd1f
MK
734.TP
735.B "Trantor T128 configuration"
fea681da
MK
736These cards are also based on the NCR5380 chip, and accept the
737following options:
738.IP
739.BI t128= mem_base,irq
bebbbd1f 740.IP
fea681da
MK
741The valid values for
742.I mem_base
743are as follows: 0xcc000, 0xc8000, 0xdc000, 0xd8000.
bebbbd1f
MK
744.TP
745.B "UltraStor 14F/34F configuration"
fea681da
MK
746The default list of i/o ports to be probed can be changed by
747.IP
748.BI eata= iobase,iobase,... .
bebbbd1f
MK
749.TP
750.B "WD7000 configuration"
fea681da
MK
751.IP
752.BI wd7000= irq,dma,iobase
bebbbd1f
MK
753.TP
754.B "Commodore Amiga A2091/590 SCSI controller configuration"
fea681da
MK
755.IP
756.BI wd33c93= S
bebbbd1f 757.IP
c13182ef
MK
758where S is a comma-separated string of options.
759Recognized options are
fea681da 760nosync:bitmask, nodma:x, period:ns, disconnect:x, debug:x,
c13182ef
MK
761clock:x, next.
762For details, see
fea681da 763.IR /usr/src/linux/drivers/scsi/wd33c93.c .
73d8cece 764.SS Hard disks
bebbbd1f
MK
765.TP
766.B "IDE Disk/CD-ROM Driver Parameters"
fea681da 767The IDE driver accepts a number of parameters, which range from disk
c13182ef 768geometry specifications, to support for broken controller chips.
e2badfdf 769Drive-specific options are specified by using 'hdX=' with X in 'a'-'h'.
fea681da 770
e2badfdf
MK
771Non-drive-specific options are specified with the prefix 'hd='.
772Note that using a drive-specific prefix for a non-drive-specific option
fea681da
MK
773will still work, and the option will just be applied as expected.
774
40dedbfe 775Also note that 'hd=' can be used to refer to the next unspecified
c13182ef
MK
776drive in the (a, ..., h) sequence.
777For the following discussions,
40dedbfe 778the 'hd=' option will be cited for brevity.
c13182ef 779See the file
4568d084
MK
780.I Documentation/ide.txt
781(or
782.I drivers/block/README.ide
66a9882e 783for older kernels) in the Linux kernel source for more details.
bebbbd1f 784.TP
40dedbfe 785.B "The 'hd=cyls,heads,sects[,wpcom[,irq]]' options"
fea681da 786These options are used to specify the physical geometry of the disk.
c13182ef
MK
787Only the first three values are required.
788The cylinder/head/sectors
789values will be those used by fdisk.
790The write precompensation value
791is ignored for IDE disks.
792The IRQ value specified will be the IRQ
fea681da 793used for the interface that the drive resides on, and is not really a
e2badfdf 794drive-specific parameter.
bebbbd1f 795.TP
40dedbfe 796.B "The 'hd=serialize' option"
fea681da
MK
797The dual IDE interface CMD-640 chip is broken as designed such that
798when drives on the secondary interface are used at the same time as
c13182ef
MK
799drives on the primary interface, it will corrupt your data.
800Using this
fea681da
MK
801option tells the driver to make sure that both interfaces are never
802used at the same time.
bebbbd1f 803.TP
40dedbfe 804.B "The 'hd=dtc2278' option"
fea681da 805This option tells the driver that you have a DTC-2278D IDE interface.
e2badfdf 806The driver then tries to do DTC-specific operations to enable the
fea681da 807second interface and to enable faster transfer modes.
bebbbd1f 808.TP
40dedbfe 809.B "The 'hd=noprobe' option"
c13182ef
MK
810Do not probe for this drive.
811For example,
fea681da
MK
812.IP
813hdb=noprobe hdb=1166,7,17
bebbbd1f 814.IP
fea681da
MK
815would disable the probe, but still specify the drive geometry so
816that it would be registered as a valid block device, and hence
817usable.
bebbbd1f 818.TP
40dedbfe
MK
819.B "The 'hd=nowerr' option"
820Some drives apparently have the
821.B WRERR_STAT
822bit stuck on permanently.
fea681da 823This enables a work-around for these broken devices.
bebbbd1f 824.TP
40dedbfe 825.B "The 'hd=cdrom' option"
fea681da 826This tells the IDE driver that there is an ATAPI compatible CD-ROM
c13182ef
MK
827attached in place of a normal IDE hard disk.
828In most cases the CD-ROM
fea681da 829is identified automatically, but if it isn't then this may help.
bebbbd1f 830.TP
40dedbfe 831.B "Standard ST-506 Disk Driver Options ('hd=')"
fea681da 832The standard disk driver can accept geometry arguments for the disks
c13182ef
MK
833similar to the IDE driver.
834Note however that it only expects three
835values (C/H/S); any more or any less and it will silently ignore you.
40dedbfe 836Also, it only accepts 'hd=' as an argument, that is, 'hda='
c13182ef
MK
837and so on are not valid here.
838The format is as follows:
fea681da
MK
839.IP
840hd=cyls,heads,sects
bebbbd1f 841.IP
fea681da
MK
842If there are two disks installed, the above is repeated with the
843geometry parameters of the second disk.
bebbbd1f 844.TP
40dedbfe 845.B "XT Disk Driver Options ('xd=')"
fea681da
MK
846If you are unfortunate enough to be using one of these old 8 bit cards
847that move data at a whopping 125kB/s then here is the scoop.
d9bfdb9c 848If the card is not recognized, you will have to use a boot arg of the form:
fea681da
MK
849.IP
850xd=type,irq,iobase,dma_chan
bebbbd1f 851.IP
fea681da 852The type value specifies the particular manufacturer of the card,
c13182ef
MK
853overriding autodetection.
854For the types to use, consult the
fea681da 855.I drivers/block/xd.c
c13182ef
MK
856source file of the kernel you are using.
857The type is an index in the list
fea681da
MK
858.I xd_sigs
859and in the course of time
860.\" 1.1.50, 1.3.81, 1.3.99, 2.0.34, 2.1.67, 2.1.78, 2.1.127
861types have been added to or deleted from the middle of the list,
c13182ef
MK
862changing all type numbers.
863Today (Linux 2.5.0) the types are
fea681da
MK
8640=generic; 1=DTC 5150cx; 2,3=DTC 5150x; 4,5=Western Digital;
8656,7,8=Seagate; 9=Omti; 10=XEBEC, and where here several types are
866given with the same designation, they are equivalent.
867
868The xd_setup() function does no checking on the values, and assumes
c13182ef
MK
869that you entered all four values.
870Don't disappoint it.
871Here is an
fea681da 872example usage for a WD1002 controller with the BIOS disabled/removed,
40dedbfe 873using the 'default' XT controller parameters:
fea681da
MK
874.IP
875xd=2,5,0x320,3
bebbbd1f
MK
876.TP
877.B "Syquest's EZ* removable disks"
fea681da
MK
878.IP
879.BI ez= iobase[,irq[,rep[,nybble]]]
73d8cece 880.SS IBM MCA bus devices
fea681da
MK
881See also
882.IR /usr/src/linux/Documentation/mca.txt .
bebbbd1f
MK
883.TP
884.B "PS/2 ESDI hard disks"
fea681da
MK
885It is possible to specify the desired geometry at boot time:
886.IP
887.BI ed= cyls,heads,sectors.
bebbbd1f 888.IP
fea681da
MK
889For a ThinkPad-720, add the option
890.IP
891.BR tp720=1 .
bebbbd1f
MK
892.TP
893.B "IBM Microchannel SCSI Subsystem configuration"
fea681da
MK
894.IP
895.BI ibmmcascsi= N
bebbbd1f 896.IP
fea681da 897where N is the \fIpun\fP (SCSI ID) of the subsystem.
bebbbd1f
MK
898.TP
899.B "The Aztech Interface"
fea681da
MK
900The syntax for this type of card is:
901.IP
902aztcd=iobase[,magic_number]
bebbbd1f 903.IP
fea681da 904If you set the magic_number to 0x79 then the driver will try and run
c13182ef
MK
905anyway in the event of an unknown firmware version.
906All other values
fea681da 907are ignored.
bebbbd1f
MK
908.TP
909.B "Parallel port CD-ROM drives"
fea681da
MK
910Syntax:
911.IP
912pcd.driveN=prt,pro,uni,mod,slv,dly
913.br
914pcd.nice=nice
bebbbd1f 915.IP
40dedbfe
MK
916where 'port' is the base address, 'pro' is the protocol number, 'uni'
917is the unit selector (for chained devices), 'mod' is the mode (or \-1
918to choose the best automatically), 'slv' is 1 if it should be a slave,
919and 'dly' is a small integer for slowing down port accesses.
920The 'nice' parameter controls the driver's use of idle CPU time, at the
fea681da 921expense of some speed.
bebbbd1f
MK
922.TP
923.B "The CDU-31A and CDU-33A Sony Interface"
fea681da 924This CD-ROM interface is found on some of the Pro Audio Spectrum sound
c13182ef
MK
925cards, and other Sony supplied interface cards.
926The syntax is as follows:
fea681da
MK
927.IP
928cdu31a=iobase,[irq[,is_pas_card]]
bebbbd1f 929.IP
fea681da 930Specifying an IRQ value of zero tells the driver that hardware
c13182ef
MK
931interrupts aren't supported (as on some PAS cards).
932If your card
fea681da
MK
933supports interrupts, you should use them as it cuts down on the CPU
934usage of the driver.
935
936The
937.I is_pas_card
40dedbfe 938should be entered as 'PAS' if using a Pro Audio Spectrum card,
fea681da 939and otherwise it should not be specified at all.
bebbbd1f
MK
940.TP
941.B "The CDU-535 Sony Interface"
fea681da
MK
942The syntax for this CD-ROM interface is:
943.IP
944sonycd535=iobase[,irq]
bebbbd1f 945.IP
40dedbfe 946A zero can be used for the I/O base as a 'placeholder' if one wishes
fea681da 947to specify an IRQ value.
bebbbd1f
MK
948.TP
949.B "The GoldStar Interface"
fea681da
MK
950The syntax for this CD-ROM interface is:
951.IP
952gscd=iobase
bebbbd1f
MK
953.TP
954.B "The ISP16 CD-ROM Interface"
fea681da
MK
955Syntax:
956.IP
957isp16=[iobase[,irq[,dma[,type]]]]
bebbbd1f 958.IP
c13182ef 959(three integers and a string).
40dedbfe 960If the type is given as 'noisp16',
c13182ef
MK
961the interface will not be configured.
962Other recognized types
40dedbfe 963are: 'Sanyo", 'Sony', 'Panasonic' and 'Mitsumi'.
bebbbd1f
MK
964.TP
965.B "The Mitsumi Standard Interface"
fea681da
MK
966The syntax for this CD-ROM interface is:
967.IP
968mcd=iobase,[irq[,wait_value]]
bebbbd1f 969.IP
fea681da
MK
970The
971.I wait_value
972is used as an internal timeout value for people who are
973having problems with their drive, and may or may not be implemented
29aceda4 974depending on a compile-time #define.
fea681da
MK
975The Mitsumi FX400 is an IDE/ATAPI CD-ROM player and does not use
976the mcd driver.
bebbbd1f
MK
977.TP
978.B "The Mitsumi XA/MultiSession Interface"
fea681da
MK
979This is for the same hardware as above, but the driver has extended features.
980Syntax:
981.IP
982mcdx=iobase[,irq]
bebbbd1f
MK
983.TP
984.B "The Optics Storage Interface"
fea681da
MK
985The syntax for this type of card is:
986.IP
987optcd=iobase
bebbbd1f
MK
988.TP
989.B "The Phillips CM206 Interface"
fea681da
MK
990The syntax for this type of card is:
991.IP
992cm206=[iobase][,irq]
bebbbd1f 993.IP
fea681da
MK
994The driver assumes numbers between 3 and 11 are IRQ values, and
995numbers between 0x300 and 0x370 are I/O ports, so you can specify one,
c13182ef 996or both numbers, in any order.
40dedbfe 997It also accepts 'cm206=auto' to enable
fea681da 998autoprobing.
bebbbd1f
MK
999.TP
1000.B "The Sanyo Interface"
fea681da
MK
1001The syntax for this type of card is:
1002.IP
1003sjcd=iobase[,irq[,dma_channel]]
bebbbd1f
MK
1004.TP
1005.B "The SoundBlaster Pro Interface"
fea681da
MK
1006The syntax for this type of card is:
1007.IP
1008sbpcd=iobase,type
bebbbd1f 1009.IP
fea681da 1010where type is one of the following (case sensitive) strings:
25715c96 1011\&'SoundBlaster', 'LaserMate', or 'SPEA'.
c13182ef 1012The I/O base is that of the
fea681da 1013CD-ROM interface, and not that of the sound portion of the card.
73d8cece 1014.SS Ethernet devices
fea681da 1015Different drivers make use of different parameters, but they all at
c13182ef
MK
1016least share having an IRQ, an I/O port base value, and a name.
1017In its most generic form, it looks something like this:
fea681da
MK
1018.IP
1019ether=irq,iobase[,param_1[,...param_8]],name
bebbbd1f 1020.IP
80c9146c 1021The first nonnumeric argument is taken as the name.
c13182ef
MK
1022The param_n values (if applicable) usually have different meanings for each
1023different card/driver.
1024Typical param_n values are used to specify
fea681da
MK
1025things like shared memory address, interface selection, DMA channel
1026and the like.
1027
1028The most common use of this parameter is to force probing for a second
c13182ef
MK
1029ethercard, as the default is to only probe for one.
1030This can be accomplished with a simple:
fea681da
MK
1031.IP
1032ether=0,0,eth1
bebbbd1f 1033.IP
fea681da
MK
1034Note that the values of zero for the IRQ and I/O base in the above
1035example tell the driver(s) to autoprobe.
1036
1037The Ethernet-HowTo has extensive documentation on using multiple
e2badfdf 1038cards and on the card/driver-specific implementation
c13182ef
MK
1039of the param_n values where used.
1040Interested readers should refer to
fea681da 1041the section in that document on their particular card.
73d8cece 1042.SS The floppy disk driver
fea681da 1043There are many floppy driver options, and they are all listed in
4568d084
MK
1044.I Documentation/floppy.txt
1045(or
1046.I drivers/block/README.fd
66a9882e 1047for older kernels) in the Linux kernel source.
c13182ef 1048This information is taken directly
fea681da 1049from that file.
bebbbd1f
MK
1050.TP
1051.B "floppy=mask,allowed_drive_mask"
10f5f294 1052Sets the bit mask of allowed drives to mask.
c13182ef
MK
1053By default, only units 0
1054and 1 of each floppy controller are allowed.
1055This is done because
c8f2dd47 1056certain nonstandard hardware (ASUS PCI motherboards) mess up the
c13182ef
MK
1057keyboard when accessing units 2 or 3.
1058This option is somewhat
fea681da 1059obsoleted by the cmos option.
bebbbd1f
MK
1060.TP
1061.B "floppy=all_drives"
10f5f294 1062Sets the bit mask of allowed drives to all drives.
c13182ef 1063Use this if you have
fea681da 1064more than two drives connected to a floppy controller.
bebbbd1f
MK
1065.TP
1066.B "floppy=asus_pci"
6387216b
MK
1067Sets the bit mask to allow only units 0 and 1.
1068(The default)
bebbbd1f
MK
1069.TP
1070.B "floppy=daring"
fea681da 1071Tells the floppy driver that you have a well behaved floppy
c13182ef
MK
1072controller.
1073This allows more efficient and smoother operation, but
1074may fail on certain controllers.
1075This may speed up certain operations.
bebbbd1f
MK
1076.TP
1077.B "floppy=0,daring"
fea681da
MK
1078Tells the floppy driver that your floppy controller should be used
1079with caution.
bebbbd1f
MK
1080.TP
1081.B "floppy=one_fdc"
fea681da 1082Tells the floppy driver that you have only floppy controller (default)
bebbbd1f 1083.TP
40dedbfe 1084.BR floppy=two_fdc " or " floppy=address,two_fdc
c13182ef
MK
1085Tells the floppy driver that you have two floppy controllers.
1086The second floppy controller is assumed to be at address.
1087If address is
fea681da 1088not given, 0x370 is assumed.
bebbbd1f
MK
1089.TP
1090.B "floppy=thinkpad"
c13182ef
MK
1091Tells the floppy driver that you have a Thinkpad.
1092Thinkpads use an
fea681da 1093inverted convention for the disk change line.
bebbbd1f
MK
1094.TP
1095.B "floppy=0,thinkpad"
fea681da 1096Tells the floppy driver that you don't have a Thinkpad.
bebbbd1f
MK
1097.TP
1098.B "floppy=drive,type,cmos"
c13182ef
MK
1099Sets the cmos type of drive to type.
1100Additionally, this drive is
10f5f294 1101allowed in the bit mask.
c13182ef 1102This is useful if you have more than two
fea681da 1103floppy drives (only two can be described in the physical cmos), or if
c8f2dd47 1104your BIOS uses nonstandard CMOS types.
c13182ef 1105Setting the CMOS to 0 for the
fea681da
MK
1106first two drives (default) makes the floppy driver read the physical
1107cmos for those drives.
bebbbd1f
MK
1108.TP
1109.B "floppy=unexpected_interrupts"
fea681da 1110Print a warning message when an unexpected interrupt is received
d9bfdb9c 1111(default behavior)
bebbbd1f 1112.TP
40dedbfe 1113.BR floppy=no_unexpected_interrupts " or " floppy=L40SX
c13182ef
MK
1114Don't print a message when an unexpected interrupt is received.
1115This is needed on IBM L40SX laptops in certain video modes.
1116(There seems to
1117be an interaction between video and floppy.
1118The unexpected interrupts
fea681da 1119only affect performance, and can safely be ignored.)
73d8cece 1120.SS The sound driver
fea681da 1121The sound driver can also accept boot args to override the compiled in
c13182ef
MK
1122values.
1123This is not recommended, as it is rather complex.
66a9882e 1124It is described in the Linux kernel source file
ef505ff0
MK
1125.IR Documentation/sound/oss/README.OSS
1126.RI ( drivers/sound/Readme.linux
1127in older kernel versions).
c13182ef 1128It accepts
fea681da
MK
1129a boot arg of the form:
1130.IP
1131sound=device1[,device2[,device3...[,device10]]]
bebbbd1f 1132.IP
fea681da
MK
1133where each deviceN value is of the following format 0xTaaaId and the
1134bytes are used as follows:
1135
4d9b6984 1136T \- device type: 1=FM, 2=SB, 3=PAS, 4=GUS, 5=MPU401, 6=SB16,
fea681da
MK
11377=SB16-MPU401
1138
4d9b6984 1139aaa \- I/O address in hex.
fea681da 1140
4d9b6984 1141I \- interrupt line in hex (i.e 10=a, 11=b, ...)
fea681da 1142
4d9b6984 1143d \- DMA channel.
fea681da
MK
1144
1145As you can see it gets pretty messy, and you are better off to compile
c13182ef
MK
1146in your own personal values as recommended.
1147Using a boot arg of
25715c96 1148\&'sound=0' will disable the sound driver entirely.
73d8cece 1149.SS ISDN drivers
bebbbd1f
MK
1150.TP
1151.B "The ICN ISDN driver"
fea681da
MK
1152Syntax:
1153.IP
1154icn=iobase,membase,icn_id1,icn_id2
bebbbd1f 1155.IP
fea681da
MK
1156where icn_id1,icn_id2 are two strings used to identify the
1157card in kernel messages.
bebbbd1f
MK
1158.TP
1159.B "The PCBIT ISDN driver"
fea681da
MK
1160Syntax:
1161.IP
1162pcbit=membase1,irq1[,membase2,irq2]
bebbbd1f 1163.IP
fea681da 1164where membaseN is the shared memory base of the N'th card, and irqN is
c13182ef
MK
1165the interrupt setting of the N'th card.
1166The default is IRQ 5 and
fea681da 1167membase 0xD0000.
bebbbd1f
MK
1168.TP
1169.B "The Teles ISDN driver"
fea681da
MK
1170Syntax:
1171.IP
1172teles=iobase,irq,membase,protocol,teles_id
bebbbd1f 1173.IP
fea681da
MK
1174where iobase is the i/o port address of the card, membase is the
1175shared memory base address of the card, irq is the interrupt channel
1176the card uses, and teles_id is the unique ASCII string identifier.
73d8cece 1177.SS Serial port drivers
bebbbd1f 1178.TP
40dedbfe 1179.B "The RISCom/8 Multiport Serial Driver ('riscom8=')"
fea681da
MK
1180Syntax:
1181.IP
1182riscom=iobase1[,iobase2[,iobase3[,iobase4]]]
bebbbd1f 1183.IP
fea681da
MK
1184More details can be found in
1185.IR /usr/src/linux/Documentation/riscom8.txt .
bebbbd1f 1186.TP
40dedbfe 1187.B "The DigiBoard Driver ('digi=')"
fea681da
MK
1188If this option is used, it should have precisely six parameters.
1189Syntax:
1190.IP
1191digi=status,type,altpin,numports,iobase,membase
bebbbd1f 1192.IP
fea681da
MK
1193The parameters maybe given as integers, or as strings.
1194If strings are used, then iobase and membase should be given
1195in hexadecimal.
1196The integer arguments (fewer may be given) are in order:
1197status (Enable(1) or Disable(0) this card),
1198type (PC/Xi(0), PC/Xe(1), PC/Xeve(2), PC/Xem(3)),
1199altpin (Enable(1) or Disable(0) alternate pin arrangement),
1200numports (number of ports on this card),
1201iobase (I/O Port where card is configured (in HEX)),
1202membase (base of memory window (in HEX)).
1203Thus, the following two boot prompt arguments are equivalent:
1204.IP
1205digi=E,PC/Xi,D,16,200,D0000
1206.br
1207digi=1,0,0,16,0x200,851968
bebbbd1f 1208.IP
fea681da
MK
1209More details can be found in
1210.IR /usr/src/linux/Documentation/digiboard.txt .
bebbbd1f
MK
1211.TP
1212.B "The Baycom Serial/Parallel Radio Modem"
fea681da
MK
1213Syntax:
1214.IP
1215baycom=iobase,irq,modem
bebbbd1f 1216.IP
fea681da 1217There are precisely 3 parameters; for several cards, give
40dedbfe 1218several 'baycom=' commands.
c13182ef 1219The modem parameter is a string
fea681da
MK
1220that can take one of the values ser12, ser12*, par96, par96*.
1221Here the * denotes that software DCD is to be used, and
1222ser12/par96 chooses between the supported modem types.
4568d084
MK
1223For more details, see the file
1224.I Documentation/networking/baycom.txt
1225(or
1226.I drivers/net/README.baycom
66a9882e 1227for older kernels) in the Linux kernel source.
bebbbd1f
MK
1228.TP
1229.B "Soundcard radio modem driver"
fea681da
MK
1230Syntax:
1231.IP
1232soundmodem=iobase,irq,dma[,dma2[,serio[,pario]]],0,mode
bebbbd1f 1233.IP
fea681da
MK
1234All parameters except the last are integers;
1235the dummy 0 is required because of a bug in the setup code.
1236The mode parameter is a string with syntax hw:modem,
1237where hw is one of sbc, wss, wssfdx and modem is one of
1238afsk1200, fsk9600.
73d8cece 1239.SS The line printer driver
bebbbd1f 1240.TP
40dedbfe 1241.B "'lp='"
fea681da
MK
1242Syntax:
1243.IP
1244lp=0
1245.br
1246lp=auto
1247.br
1248lp=reset
1249.br
1250lp=port[,port...]
bebbbd1f 1251.IP
fea681da 1252You can tell the printer driver what ports to use and what ports not
c13182ef
MK
1253to use.
1254The latter comes in handy if you don't want the printer driver
fea681da 1255to claim all available parallel ports, so that other drivers
75b94dc3 1256(e.g., PLIP, PPA) can use them instead.
fea681da 1257
c13182ef
MK
1258The format of the argument is multiple port names.
1259For example,
fea681da 1260lp=none,parport0 would use the first parallel port for lp1, and
c13182ef
MK
1261disable lp0.
1262To disable the printer driver entirely, one can use
fea681da 1263lp=0.
bebbbd1f
MK
1264.TP
1265.B "WDT500/501 driver"
fea681da
MK
1266Syntax:
1267.IP
1268wdt=io,irq
73d8cece 1269.SS Mouse drivers
bebbbd1f 1270.TP
40dedbfe 1271.B "'bmouse=irq'"
fea681da
MK
1272The busmouse driver only accepts one parameter, that being the
1273hardware IRQ value to be used.
bebbbd1f 1274.TP
40dedbfe 1275.B "'msmouse=irq'"
fea681da 1276And precisely the same is true for the msmouse driver.
bebbbd1f
MK
1277.TP
1278.B "ATARI mouse setup"
1279.IP
fea681da
MK
1280atamouse=threshold[,y-threshold]
1281.IP
1282If only one argument is given, it is used for both
c13182ef
MK
1283x-threshold and y-threshold.
1284Otherwise, the first argument
fea681da
MK
1285is the x-threshold, and the second the y-threshold.
1286These values must lie between 1 and 20 (inclusive); the default is 2.
73d8cece 1287.SS Video hardware
bebbbd1f 1288.TP
40dedbfe 1289.B "'no-scroll'"
fea681da
MK
1290This option tells the console driver not to use hardware scroll
1291(where a scroll is effected by moving the screen origin in video
c13182ef
MK
1292memory, instead of moving the data).
1293It is required by certain
fea681da 1294Braille machines.
fd7f0a7f
MK
1295.\" .SH AUTHORS
1296.\" Linus Torvalds (and many others)
47297adb 1297.SH SEE ALSO
fea681da
MK
1298.BR lilo.conf (5),
1299.BR klogd (8),
1300.BR lilo (8),
1301.BR mount (8),
1302.BR rdev (8)
1303
1304Large parts of this man page have been derived from the
1305Boot Parameter HOWTO (version 1.0.1) written by Paul Gortmaker.
1306More information may be found in this (or a more recent) HOWTO.
b9560046 1307An up-to-date source of information is
fea681da 1308.IR /usr/src/linux/Documentation/kernel-parameters.txt .