blob: b516164999a801abf47eae22f90a28116f20eb2b [file] [log] [blame]
Jonathan Corbet7358bb22016-10-26 16:14:52 -06001The kernel's command-line parameters
2====================================
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
Rusty Russell5888bcc2014-05-14 10:33:45 +09304The following is a consolidated list of the kernel parameters as
5implemented by the __setup(), core_param() and module_param() macros
6and sorted into English Dictionary order (defined as ignoring all
7punctuation and sorting digits before letters in a case insensitive
8manner), and with descriptions where known.
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Rusty Russell5888bcc2014-05-14 10:33:45 +093010The kernel parses parameters from the kernel command line up to "--";
11if it doesn't recognize a parameter and it doesn't contain a '.', the
12parameter gets passed to init: parameters with '=' go into init's
13environment, others are passed as command line arguments to init.
14Everything after "--" is passed as an argument to init.
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Rusty Russell5888bcc2014-05-14 10:33:45 +093016Module parameters can be specified in two ways: via the kernel command
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -030017line with a module name prefix, or via modprobe, e.g.::
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Rusty Russell5888bcc2014-05-14 10:33:45 +093019 (kernel command line) usbcore.blinkenlights=1
20 (modprobe command line) modprobe usbcore blinkenlights=1
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
Rusty Russell5888bcc2014-05-14 10:33:45 +093022Parameters for modules which are built into the kernel need to be
23specified on the kernel command line. modprobe looks through the
24kernel command line (/proc/cmdline) and collects module parameters
25when it loads a module, so the kernel command line can be used for
26loadable modules too.
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -030028Hyphens (dashes) and underscores are equivalent in parameter names, so::
29
Randy Dunlapca1eda22009-05-06 16:02:58 -070030 log_buf_len=1M print-fatal-signals=1
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -030031
32can also be entered as::
33
Randy Dunlapca1eda22009-05-06 16:02:58 -070034 log-buf-len=1M print_fatal_signals=1
35
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -030036Double-quotes can be used to protect spaces in values, e.g.::
37
Rusty Russell5888bcc2014-05-14 10:33:45 +093038 param="spaces in here"
Randy Dunlapca1eda22009-05-06 16:02:58 -070039
Noam Camus2d13e6c2016-10-11 13:51:35 -070040cpu lists:
41----------
42
43Some kernel parameters take a list of CPUs as a value, e.g. isolcpus,
44nohz_full, irqaffinity, rcu_nocbs. The format of this list is:
45
46 <cpu number>,...,<cpu number>
47
48or
49
50 <cpu number>-<cpu number>
51 (must be a positive range in ascending order)
52
53or a mixture
54
55<cpu number>,...,<cpu number>-<cpu number>
56
57Note that for the special case of a range one can split the range into equal
58sized groups and for each group use some amount from the beginning of that
59group:
60
61 <cpu number>-cpu number>:<used size>/<group size>
62
63For example one can add to the command line following parameter:
64
65 isolcpus=1,2,10-20,100-2000:2/25
66
67where the final item represents CPUs 100,101,125,126,150,151,...
68
69
70
Stefan Richtera901ebb2006-04-01 01:43:18 +020071This document may not be entirely up to date and comprehensive. The command
72"modinfo -p ${modulename}" shows a current list of all parameters of a loadable
73module. Loadable modules, after being loaded into the running kernel, also
74reveal their parameters in /sys/module/${modulename}/parameters/. Some of these
75parameters may be changed at runtime by the command
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -030076``echo -n ${value} > /sys/module/${modulename}/parameters/${parm}``.
Stefan Richtera901ebb2006-04-01 01:43:18 +020077
Stefan Richter6585fa82006-04-01 01:44:30 +020078The parameters listed below are only valid if certain kernel build options were
79enabled and if respective hardware is present. The text in square brackets at
80the beginning of each description states the restrictions within which a
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -030081parameter is applicable::
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
83 ACPI ACPI support is enabled.
Chuck Ebbertc99c1082007-07-27 10:46:20 +100084 AGP AGP (Accelerated Graphics Port) is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -070085 ALSA ALSA sound support is enabled.
86 APIC APIC support is enabled.
87 APM Advanced Power Management support is enabled.
Randy Dunlap16290242011-08-13 12:34:52 -070088 ARM ARM architecture is enabled.
Haavard Skinnemoene7ba1762007-10-10 14:58:29 +020089 AVR32 AVR32 architecture is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -070090 AX25 Appropriate AX.25 support is enabled.
Robin Getz0ae53642007-10-09 17:24:49 +080091 BLACKFIN Blackfin architecture is enabled.
Olof Johansson1e435252013-04-27 14:10:18 -070092 CLK Common clock infrastructure is enabled.
Robert Tivy5c71d612013-03-28 18:41:46 -070093 CMA Contiguous Memory Area support is enabled.
Alan Cox9cfe2682011-01-25 14:18:38 +000094 DRM Direct Rendering Management support is enabled.
95 DYNAMIC_DEBUG Build in debug messages and enable them at runtime
Linus Torvalds1da177e2005-04-16 15:20:36 -070096 EDD BIOS Enhanced Disk Drive Services (EDD) is enabled
97 EFI EFI Partitioning (GPT) is enabled
98 EIDE EIDE/ATAPI support is enabled.
Mimi Zohar7102ebc2011-05-12 18:33:20 -040099 EVM Extended Verification Module
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100 FB The frame buffer device is enabled.
Randy Dunlap16290242011-08-13 12:34:52 -0700101 FTRACE Function tracing enabled.
Peter Oberparleiter2521f2c2009-06-17 16:28:08 -0700102 GCOV GCOV profiling is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103 HW Appropriate hardware is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104 IA-64 IA-64 architecture is enabled.
Mimi Zohar6146f0d2009-02-04 09:06:57 -0500105 IMA Integrity measurement architecture is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106 IOSCHED More than one I/O scheduler is enabled.
Adrian Bunk41e2e8b2005-07-12 13:58:33 -0700107 IP_PNP IP DHCP, BOOTP, or RARP is enabled.
Brian Haleyb0f83b22010-02-04 13:36:50 -0800108 IPV6 IPv6 support is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109 ISAPNP ISA PnP code is enabled.
110 ISDN Appropriate ISDN support is enabled.
111 JOY Appropriate joystick support is enabled.
Jason Wessel84c08fd2010-05-20 21:04:24 -0500112 KGDB Kernel debugger support is enabled.
Andre Przywarafef07aa2009-07-10 14:20:35 +0200113 KVM Kernel Virtual Machine support is enabled.
Kristen Carlson Accardi11ef6972006-09-28 11:29:01 -0700114 LIBATA Libata driver is enabled
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115 LP Printer support is enabled.
116 LOOP Loopback device support is enabled.
117 M68k M68k architecture is enabled.
118 These options have more detailed description inside of
119 Documentation/m68k/kernel-options.txt.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120 MDA MDA console support is enabled.
Randy Dunlap16290242011-08-13 12:34:52 -0700121 MIPS MIPS architecture is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 MOUSE Appropriate mouse support is enabled.
Matthew Wilcox309e57d2006-03-05 22:33:34 -0700123 MSI Message Signaled Interrupts (PCI).
Randy Dunlapc8facbb2007-07-31 00:37:40 -0700124 MTD MTD (Memory Technology Device) support is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125 NET Appropriate network support is enabled.
126 NUMA NUMA support is enabled.
127 NFS Appropriate NFS support is enabled.
128 OSS OSS sound support is enabled.
Randy Dunlapc8facbb2007-07-31 00:37:40 -0700129 PV_OPS A paravirtualized kernel is enabled.
130 PARIDE The ParIDE (parallel port IDE) subsystem is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131 PARISC The PA-RISC architecture is enabled.
132 PCI PCI bus support is enabled.
Randy Dunlap7f785762007-10-05 13:17:58 -0700133 PCIE PCI Express support is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134 PCMCIA The PCMCIA subsystem is enabled.
135 PNP Plug & Play support is enabled.
136 PPC PowerPC architecture is enabled.
137 PPT Parallel port support is enabled.
138 PS2 Appropriate PS/2 support is enabled.
139 RAM RAM disk support is enabled.
140 S390 S390 architecture is enabled.
141 SCSI Appropriate SCSI support is enabled.
Randy Dunlap163475f2010-08-14 12:36:14 -0700142 A lot of drivers have their options described inside
143 the Documentation/scsi/ sub-directory.
James Morris20510f22007-10-16 23:31:32 -0700144 SECURITY Different security models are enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700145 SELINUX SELinux support is enabled.
John Johansenc1c124e2010-07-29 14:48:09 -0700146 APPARMOR AppArmor support is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147 SERIAL Serial support is enabled.
Paul Mundte523d932007-02-28 18:30:01 +0900148 SH SuperH architecture is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149 SMP The kernel is an SMP kernel.
150 SPARC Sparc architecture is enabled.
David Brownell77437fd2008-07-23 21:28:33 -0700151 SWSUSP Software suspend (hibernation) is enabled.
152 SUSPEND System suspend states are enabled.
Rajiv Andrade225a9be2010-03-25 00:55:32 -0300153 TPM TPM drivers are enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154 TS Appropriate touchscreen support is enabled.
Alan Sternd4f373e2008-11-10 14:07:45 -0500155 UMS USB Mass Storage support is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156 USB USB support is enabled.
157 USBHID USB Human Interface Device support is enabled.
158 V4L Video For Linux support is enabled.
Pawel Moll81a054c2012-05-09 18:30:16 +0100159 VMMIO Driver for memory mapped virtio devices is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160 VGA The VGA console has been enabled.
161 VT Virtual terminal support is enabled.
162 WDT Watchdog support is enabled.
163 XT IBM PC/XT MFM hard disk support is enabled.
Alan Coxcd4f0ef2007-07-31 00:37:59 -0700164 X86-32 X86-32, aka i386 architecture is enabled.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165 X86-64 X86-64 architecture is enabled.
166 More X86-64 boot options can be found in
Uwe Hermann71cced62008-10-20 09:32:21 -0700167 Documentation/x86/x86_64/boot-options.txt .
Randy Dunlap16290242011-08-13 12:34:52 -0700168 X86 Either 32-bit or 64-bit x86 (same as X86-32+X86-64)
Alex Thorlton1c532e02016-03-31 14:18:29 -0500169 X86_UV SGI UV support is enabled.
Stefano Stabellinic1c54132010-05-14 12:44:30 +0100170 XEN Xen support is enabled
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -0300172In addition, the following text indicates that the option::
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173
174 BUGS= Relates to possible processor bugs on the said processor.
175 KNL Is a kernel start-up parameter.
176 BOOT Is a boot loader parameter.
177
178Parameters denoted with BOOT are actually interpreted by the boot
179loader, and have no meaning to the kernel directly.
180Do not modify the syntax of boot loader parameters without extreme
Kyle McMartin954a8b82009-02-19 16:48:14 -0500181need or coordination with <Documentation/x86/boot.txt>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182
Karsten Weiss55588702007-02-13 13:26:21 +0100183There are also arch-specific kernel-parameters not documented here.
Uwe Hermann71cced62008-10-20 09:32:21 -0700184See for example <Documentation/x86/x86_64/boot-options.txt>.
Karsten Weiss55588702007-02-13 13:26:21 +0100185
Linus Torvalds1da177e2005-04-16 15:20:36 -0700186Note that ALL kernel parameters listed below are CASE SENSITIVE, and that
187a trailing = on the name of any parameter states that that parameter will
188be entered as an environment variable, whereas its absence indicates that
189it will appear as a kernel argument readable via /proc/cmdline by programs
190running once the system is up.
191
jens m. noedler9c4751f2006-09-29 02:00:27 -0700192The number of kernel parameters is not limited, but the length of the
193complete command line (parameters including spaces etc.) is limited to
194a fixed number of characters. This limit depends on the architecture
195and is between 256 and 4096 characters. It is defined in the file
196./include/asm/setup.h as COMMAND_LINE_SIZE.
197
Ahmed S. Darwish7a19a232011-02-20 20:08:35 -0800198Finally, the [KMG] suffix is commonly described after a number of kernel
199parameter values. These 'K', 'M', and 'G' letters represent the _binary_
200multipliers 'Kilo', 'Mega', and 'Giga', equalling 2^10, 2^20, and 2^30
Jani Nikulae52347b2016-11-03 12:10:10 +0200201bytes respectively. Such letter suffixes can also be entirely omitted:
Ahmed S. Darwish7a19a232011-02-20 20:08:35 -0800202
Jani Nikulae52347b2016-11-03 12:10:10 +0200203.. include:: kernel-parameters.txt
204 :literal:
Linus Torvalds1da177e2005-04-16 15:20:36 -0700205
Mauro Carvalho Chehab684adc02016-09-21 09:48:55 -0300206Todo
207----
Linus Torvalds1da177e2005-04-16 15:20:36 -0700208
Linus Torvalds1da177e2005-04-16 15:20:36 -0700209 Add more DRM drivers.