Skip to content

Commit 248258c

Browse files
xypronsjg20
authored andcommitted
chapter2: add optional cmdline property to configuration
The Linux kernel needs a command line to indicate the root file system. Further parameters may be passed on the command line [1]. Add an optional cmdline property to configuration nodes. The UEFI specification uses UCS-2 encoded strings. UCS-2 is a deprecated encoding of the Unicode Basic Multilingual Plane. Using UTF-8 for encoding the cmdline property allows to represent all UCS-2 characters when passing the string to an EFI binary via the EFI Loaded Image Protocol as a load option. [1] The kernel’s command-line parameters https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html Signed-off-by: Heinrich Schuchardt <[email protected]>
1 parent b7e0544 commit 248258c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/chapter2-source-file-format.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ Each configuration has the following structure::
560560
o config-1
561561
|- description = "configuration description";
562562
|- kernel = "kernel sub-node unit name";
563+
|- cmdline = "command line for next boot stage";
563564
|- fdt = "fdt sub-node unit-name" [, "fdt overlay sub-node unit-name", ...];
564565
|- ramdisk = "ramdisk sub-node unit-name";
565566
|- loadables = "loadables sub-node unit-name" [, ...];
@@ -581,6 +582,10 @@ kernel or firmware
581582
Optional properties
582583
~~~~~~~~~~~~~~~~~~~
583584

585+
cmdline
586+
Command line passed to the next boot stage, e.g. the operating system
587+
kernel. The value is an UTF-8 encoded string.
588+
584589
fdt
585590
Unit name of the corresponding fdt blob (component image node of a
586591
"fdt type"). Additional fdt overlay nodes can be supplied which signify

0 commit comments

Comments
 (0)