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