Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

13.1 Kernel Command-Line Parameters

As established in the section covering boot parameter analysis and command-line parameter merging, U-Boot supplies command-line parameters via the command_line variable, which encompasses both core kernel command-line parameters and miscellaneous environment parameters. When tokenizing these command-line arguments, the kernel exclusively parses parameters preceding the -- delimiter, while explicitly forwarding all arguments succeeding the -- marker directly to the init() process. Throughout this parsing procedure, if the kernel encounters an unrecognized parameter that does not contain a . symbol, it likewise hands that parameter over to the init() process. The init() process subsequently treats parameters containing the = symbol as its local environment variables, whereas parameters lacking the = symbol are handled as standard command-line variables for the init() process. All parameters placed after the -- marker are parsed as variables for the init() process.

Via these kernel command-line parameters, the system dynamically enables or disables specific capabilities. When a designated argument is present within the kernel command-line string, the system activates the operational functionality associated with that parameter. Common kernel parameters include AGP, ALSA, APM, DRM, and IPV6, which map respectively to Accelerated Graphics Port, Advanced Linux Sound Architecture, Advanced Power Management, Direct Rendering Manager, and Internet Protocol Version 6. A comprehensive register of available parameters can be reviewed within official Linux technical documentation.

Command-line kernel arguments can also be leveraged to assign variable values to specific modules. For example, configuring the following command-line argument:

"usbcore.blinkenlight=1"

assigns a value of 1 to the variable blinkenlight belonging to the usbcore module, thereby enabling the kernel to support USB LED blinking capabilities.

The formatting layout of the command-line parameters is structured as:

"log_buf_len=1M print-fatal-signals=1" "foo=bar,bar2 baz=fuz wiz"

or alternatively:

"log-buf-len=1M print_fatal_signals=1"

Each pair of double quotation marks encapsulates a distinct group of variables, and the quotation groups are separated from one another via whitespace characters. Hyphens (-) and underscores (_) are treated as functionally equivalent characters by the parser.

Copyright © 2026 Guangzhou eSmart Information Technology Co., Ltd. All Rights Reserved.
All content in this book is copyrighted by the author. For personal learning and exchange only. Commercial use without authorization is strictly prohibited. Email:

✉ 3348194517@qq.com | hai616878@gmail.com