Documentation: bootconfig: Documentaiton updates
Subsystems (4)
Masami Hiramatsu
maintainerv2 cover Documentation: bootconfig: Documentaiton updates
Hi,
Here is the 2nd version of the documentation update. I decided to drop EBNF (extended Backus–Naur form) patch since the ISO/IEC 14977 EBNF seems not carefully defined and there are many variants which named EBNF. I'll postpone it until finding better solution.
Thank you,
---
Masami Hiramatsu (1):
Documentation: bootconfig: Update boot configuration documentation
Documentation/admin-guide/bootconfig.rst | 180 +++++++++++++++++++----------- Documentation/trace/boottime-trace.rst | 2 2 files changed, 116 insertions(+), 66 deletions(-)
--
Masami Hiramatsu (Linaro) <[email protected]>
Masami Hiramatsu
maintainerPATCH v2 1/1 Documentation: bootconfig: Update boot configuration documentation
Update boot configuration documentation.
- Not using "config" abbreviation but configuration or description.
- Rewrite descriptions of node and its maxinum number.
- Add a section of use cases of boot configuration.
- Move how to use bootconfig to earlier section.
- Fix some typos, indents and format mistakes.
---
Changes in v2:
- Fixes additional typos (Thanks Markus and Randy!)
- Change a section title to "Tree Structured Key".
--- Documentation/admin-guide/bootconfig.rst | 180 +++++++++++++++++++----------- Documentation/trace/boottime-trace.rst | 2 2 files changed, 116 insertions(+), 66 deletions(-)
Documentation/admin-guide/bootconfig.rst +114 -66
@@ -11,19 +11,98 @@ Boot Configuration Overview ======== -The boot configuration expands the current kernel command line to support -additional key-value data when booting the kernel in an efficient way. -This allows administrators to pass a structured-Key config file. +Boot configuration expands the current kernel command line to support +additional key-value data while booting the kernel in an efficient way. +This allows administrators to pass a structured key configuration file +as a way to supplement the kernel command line to pass system boot parameters. -Config File Syntax -================== +Compared with the kernel command line, the boot configuration can provide +scalability (up to 32 KiB configuration data), readability (structured +configuration with comments) and compact expression of option groups. + +When to Use the Boot Configuration? +----------------------------------- + +The boot configuration supports kernel command line options and init daemon +boot options. All sub-keys under "kernel" root key are passed as a part of +kernel command line [1]_, and ones under "init" root key are passed as a part +of init command line. For example, :: + + root=UUID=8cd79b08-bda0-4b9d-954c-5d5f34b98c82 ro quiet splash console=ttyS0,115200n8 console=tty0 + +This can be written as following boot configuration file.:: + + kernel { + root = "UUID=8cd79b08-bda0-4b9d-954c-5d5f34b98c82" # nvme0n1p3 + ro # mount rootfs as read only + quiet # No console log + splash # show splash image on boot screen + console = "ttyS0,115200n8" # 1st console to serial device + console += tty0 # add 2nd console + } + +If you think that kernel/init options becomes too long to write in boot-loader +configuration file or you want to comment on each option, the boot +configuration may be suitable. If unsure, you can still continue to use the +legacy kernel command line. + +Also, some subsystem may depend on the boot configuration, and it has own +root key. For example, ftrace boot-time tracer uses "ftrace" root key to +describe its options [2]_. In this case, you need to use the boot +configuration. + +.. [1] See :ref:`Documentation/admin-guide/kernel-parameters.rst <kernelparameters>` +.. [2] See :ref:`Documentation/trace/boottime-trace.rst <boottimetrace>` + + +How to Use the Boot Configuration? +---------------------------------- + +To enable the boot configuration support on your kernel, it must be built with +``CONFIG_BOOT_CONFIG=y`` and ``CONFIG_BLK_DEV_INITRD=y``. + +Next, you can write a boot configuration file and attach it to initrd image. + +The boot configuration file is attached to the end of the initrd (initramfs) +image file with size, checksum and 12-byte magic word as below. + +[initrd][bootconfig][size(u32)][checksum(u32)][#BOOTCONFIG\n] + +The Linux kernel decodes the last part of the initrd image in memory to +get the boot configuration data. +Because of this "piggyback" method, there is no need to change or +update the boot loader and the kernel image itself. + +To do this operation, Linux kernel provides "bootconfig" command under +tools/bootconfig, which allows admin to apply or delete the configuration +file to/from initrd image. You can build it by the following command:: + + # make -C tools/bootconfig + +To add your boot configuration file to initrd image, run bootconfig as below +(Old data is removed automatically if exists):: + + # tools/bootconfig/bootconfig -a your-config /boot/initrd.img-X.Y.Z -The boot config syntax is a simple structured key-value. Each key consists -of dot-connected-words, and key and value are connected by ``=``. The value -has to be terminated by semi-colon (``;``) or newline (``\n``). +To remove the configuration from the image, you can use -d option as below:: + + # tools/bootconfig/bootconfig -d /boot/initrd.img-X.Y.Z + +At last, add ``bootconfig`` on the normal kernel command line to tell the +kernel to look for the bootconfig at the end of the initrd file. For example:: + + GRUB_CMDLINE_LINUX="bootconfig" + + +Boot Configuration Syntax +========================= + +The boot configuration syntax is a simple structured key-value. Each key +consists of dot-connected-words, and key and value are connected by ``=``. +The value has to be terminated by semi-colon (``;``) or newline (``\n``). For array value, array entries are separated by comma (``,``). :: -KEY[.WORD[...]] = VALUE[, VALUE2[...]][;] + KEY[.WORD[...]] = VALUE[, VALUE2[...]][;] Unlike the kernel command line syntax, spaces are OK around the comma and ``=``.
@@ -39,11 +118,11 @@ you can not escape these quotes. There can be a key which doesn't have value or has an empty value. Those keys are used for checking if the key exists or not (like a boolean). -Key-Value Syntax ----------------- +Tree Structured Key +------------------- -The boot config file syntax allows user to merge partially same word keys -by brace. For example:: +The boot configuration syntax allows user to merge same parent key using +braces as tree structured key. For example:: foo.bar.baz = value1 foo.bar.qux.quux = value2
@@ -80,19 +159,17 @@ you can use ``+=`` operator. For example:: In this case, the key ``foo`` has ``bar``, ``baz`` and ``qux``. However, a sub-key and a value can not co-exist under a parent key. -For example, following config is NOT allowed.:: +For example, following configuration is NOT allowed.:: foo = value1 - foo.bar = value2 # !ERROR! subkey "bar" and value "value1" can NOT co-exist + foo.bar = value2 # !ERROR! sub-key "bar" and value "value1" can NOT co-exist Comments -------- -The config syntax accepts shell-script style comments. The comments starting -with hash ("#") until newline ("\n") will be ignored. - -:: +The boot configuration accepts shell-script style comments. The comments +starting with hash (``#``) until newline (``\n``), will be skipped.:: # comment line foo = value # value is set to foo.
@@ -100,74 +177,45 @@ with hash ("#") until newline ("\n") will be ignored. 2, # 2nd element 3 # 3rd element -This is parsed as below:: +This is parsed as below.:: foo = value bar = 1, 2, 3 Note that you can not put a comment between value and delimiter(``,`` or -``;``). This means following config has a syntax error :: +``;``). This means following description has a syntax error. :: - key = 1 # comment + key = 1 # !ERROR! comment is not allowed before delimiter ,2 /proc/bootconfig ================ -/proc/bootconfig is a user-space interface of the boot config. +The file /proc/bootconfig is a user-space interface to the configuration +of system boot parameters. Unlike /proc/cmdline, this file shows the key-value style list. Each key-value pair is shown in each line with following style:: KEY[.WORDS...] = "[VALUE]"[,"VALUE2"...] -Boot Kernel With a Boot Config -============================== - -Since the boot configuration file is loaded with initrd, it will be added -to the end of the initrd (initramfs) image file with size, checksum and -12-byte magic word as below. - -[initrd][bootconfig][size(u32)][checksum(u32)][#BOOTCONFIG\n] - -The Linux kernel decodes the last part of the initrd image in memory to -get the boot configuration data. -Because of this "piggyback" method, there is no need to change or -update the boot loader and the kernel image itself. - -To do this operation, Linux kernel provides "bootconfig" command under -tools/bootconfig, which allows admin to apply or delete the config file -to/from initrd image. You can build it by the following command:: - - # make -C tools/bootconfig - -To add your boot config file to initrd image, run bootconfig as below -(Old data is removed automatically if exists):: - - # tools/bootconfig/bootconfig -a your-config /boot/initrd.img-X.Y.Z - -To remove the config from the image, you can use -d option as below:: - - # tools/bootconfig/bootconfig -d /boot/initrd.img-X.Y.Z - -Then add "bootconfig" on the normal kernel command line to tell the -kernel to look for the bootconfig at the end of the initrd file. - Config File Limitation ====================== -Currently the maximum config size size is 32KB and the total key-words (not -key-value entries) must be under 1024 nodes. -Note: this is not the number of entries but nodes, an entry must consume -more than 2 nodes (a key-word and a value). So theoretically, it will be -up to 512 key-value pairs. If keys contains 3 words in average, it can -contain 256 key-value pairs. In most cases, the number of config items -will be under 100 entries and smaller than 8KB, so it would be enough. +Currently the maximum configuration size is 32 KiB and the total number +of key-words and values must be under 1024 nodes. +(Note: Each key consists of words separated by dot, and value also consists +of values separated by comma. Here, each word and each value is generally +called a "node".) +Theoretically, it will be up to 512 key-value pairs. If keys contains 3 +words in average, it can contain 256 key-value pairs. In most cases, +the number of configuration items will be under 100 entries and smaller +than 8 KiB, so it would be enough. If the node number exceeds 1024, parser returns an error even if the file -size is smaller than 32KB. -Anyway, since bootconfig command verifies it when appending a boot config -to initrd image, user can notice it before boot. +size is smaller than 32 KiB. +Anyway, since bootconfig command verifies it when appending a boot +configuration to initrd image, user need to fix it before boot. Bootconfig APIs
@@ -206,7 +254,7 @@ or get the named array under prefix as below:: This accesses a value of "key.prefix.option" and an array of "key.prefix.array-option". -Locking is not needed, since after initialization, the config becomes +Locking is not needed, since after initialization, the configuration becomes read-only. All data and keys must be copied if you need to modify it.
Documentation/trace/boottime-trace.rst +2 -0
@@ -1,5 +1,7 @@ .. SPDX-License-Identifier: GPL-2.0 +.. _boottimetrace: + ================= Boot-time tracing =================
Re: [PATCH v2] Documentation: bootconfig: Update boot configuration documentation
…
Quoted 1 line
+++
b/Documentation/admin-guide/bootconfig.rst
…
Review
Quoted 3 lines
+… All sub-keys under "kernel" root key are passed as a part of
(quoted diff) +2
-0+kernel command line [1]_, and ones under "init" root key are passed as a part +of init command line. …
Can an enumeration be clearer for this information?
Will the distinction become more interesting for well-known keys?
Regards,
Markus
Masami Hiramatsu
maintainerRe: [PATCH v2] Documentation: bootconfig: Update boot configuration documentation
Quoted 10 lines · On Fri, 28 Feb 2020 11:00:43 +0100 Markus Elfring <[email protected]> wrote:
…
Quoted 1 line
+++
b/Documentation/admin-guide/bootconfig.rst…
Review
Quoted 3 lines
+… All sub-keys under "kernel" root key are passed as a part of
(quoted diff) +2
-0+kernel command line [1]_, and ones under "init" root key are passed as a part +of init command line. …Can an enumeration be clearer for this information?
Will the distinction become more interesting for well-known keys?
Your question becomes more meaningless... If you have any such concern, you can write a patch on it for a contribution. Yes, you can!
Thank you,
Signature · 1 line
Masami Hiramatsu <[email protected]>
Re: [v2] Documentation: bootconfig: Update boot configuration documentation
In reply to Masami HiramatsuQuoted 1 line
However, a sub-key and a value can not co-exist under a parent key.
How does this description fit to the key context “kernel.ftrace”?
Regards,
Markus
Randy Dunlap
reviewerRe: [PATCH v2] Documentation: bootconfig: Update boot configuration documentation
In reply to Masami HiramatsuQuoted 29 lines · Masami Hiramatsu
Update boot configuration documentation.
- Not using "config" abbreviation but configuration or description.
- Rewrite descriptions of node and its maxinum number.
- Add a section of use cases of boot configuration.
- Move how to use bootconfig to earlier section.
- Fix some typos, indents and format mistakes.Signed-off-by Masami Hiramatsu <[email protected]>---
Changes in v2:
- Fixes additional typos (Thanks Markus and Randy!)
- Change a section title to "Tree Structured Key".--- Documentation/admin-guide/bootconfig.rst | 180 +++++++++++++++++++----------- Documentation/trace/boottime-trace.rst | 2 2 files changed, 116 insertions(+), 66 deletions(-)Documentation/admin-guide/bootconfig.rst +0
-3@@ -11,19 +11,98 @@ Boot Configuration Overview ======== -The boot configuration expands the current kernel command line to support -additional key-value data when booting the kernel in an efficient way. -This allows administrators to pass a structured-Key config file.
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 21
Quoted 10 lines
Documentation/admin-guide/bootconfig.rst +7
-2+Boot configuration expands the current kernel command line to support +additional key-value data while booting the kernel in an efficient way. +This allows administrators to pass a structured key configuration file +as a way to supplement the kernel command line to pass system boot parameters. -Config File Syntax -================== +Compared with the kernel command line, the boot configuration can provide +scalability (up to 32 KiB configuration data), readability (structured +configuration with comments) and compact expression of option groups.
Do the comments count in the 32 KiB of data? I.e., is the max bootconfig file size 32 KiB?
Quoted 21 lines
Documentation/admin-guide/bootconfig.rst +21
-0+ +When to Use the Boot Configuration? +----------------------------------- + +The boot configuration supports kernel command line options and init daemon +boot options. All sub-keys under "kernel" root key are passed as a part of +kernel command line [1]_, and ones under "init" root key are passed as a part +of init command line. For example, :: + + root=UUID=8cd79b08-bda0-4b9d-954c-5d5f34b98c82 ro quiet splash console=ttyS0,115200n8 console=tty0 + +This can be written as following boot configuration file.:: + + kernel { + root = "UUID=8cd79b08-bda0-4b9d-954c-5d5f34b98c82" # nvme0n1p3 + ro # mount rootfs as read only + quiet # No console log + splash # show splash image on boot screen + console = "ttyS0,115200n8" # 1st console to serial device + console += tty0 # add 2nd console + }
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 52
Quoted 10 lines
Documentation/admin-guide/bootconfig.rst +10
-0+ +If you think that kernel/init options becomes too long to write in boot-loader +configuration file or you want to comment on each option, the boot +configuration may be suitable. If unsure, you can still continue to use the +legacy kernel command line. + +Also, some subsystem may depend on the boot configuration, and it has own +root key. For example, ftrace boot-time tracer uses "ftrace" root key to +describe its options [2]_. In this case, you need to use the boot +configuration.
Does this say that "ftrace" requires use of bootconfig? It seems to say that.
Quoted 18 lines
Documentation/admin-guide/bootconfig.rst +18
-0+ +.. [1] See :ref:`Documentation/admin-guide/kernel-parameters.rst <kernelparameters>` +.. [2] See :ref:`Documentation/trace/boottime-trace.rst <boottimetrace>` + + +How to Use the Boot Configuration? +---------------------------------- + +To enable the boot configuration support on your kernel, it must be built with +``CONFIG_BOOT_CONFIG=y`` and ``CONFIG_BLK_DEV_INITRD=y``. + +Next, you can write a boot configuration file and attach it to initrd image. + +The boot configuration file is attached to the end of the initrd (initramfs) +image file with size, checksum and 12-byte magic word as below. + +[initrd][bootconfig][size(u32)][checksum(u32)][#BOOTCONFIG\n] +
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 80
Quoted 10 lines
Documentation/admin-guide/bootconfig.rst +10
-0+The Linux kernel decodes the last part of the initrd image in memory to +get the boot configuration data. +Because of this "piggyback" method, there is no need to change or +update the boot loader and the kernel image itself. + +To do this operation, Linux kernel provides "bootconfig" command under +tools/bootconfig, which allows admin to apply or delete the configuration +file to/from initrd image. You can build it by the following command:: + + # make -C tools/bootconfig
Please make that honor O=builddir instead of building in the kernel source tree and ignoring O=builddir.
Quoted 7 lines
Documentation/admin-guide/bootconfig.rst +5
-1+ +To add your boot configuration file to initrd image, run bootconfig as below +(Old data is removed automatically if exists):: + + # tools/bootconfig/bootconfig -a your-config /boot/initrd.img-X.Y.Z -The boot config syntax is a simple structured key-value. Each key consists
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 94
Quoted 10 lines
Documentation/admin-guide/bootconfig.rst +8
-2-of dot-connected-words, and key and value are connected by ``=``. The value -has to be terminated by semi-colon (``;``) or newline (``\n``). +To remove the configuration from the image, you can use -d option as below:: + + # tools/bootconfig/bootconfig -d /boot/initrd.img-X.Y.Z + +At last, add ``bootconfig`` on the normal kernel command line to tell the +kernel to look for the bootconfig at the end of the initrd file. For example:: + + GRUB_CMDLINE_LINUX="bootconfig"
thanks.
Signature · 1 line
~Randy
Masami Hiramatsu
maintainerRe: [PATCH v2] Documentation: bootconfig: Update boot configuration documentation
Quoted 35 lines · On Fri, 28 Feb 2020 21:59:45 -0800 Randy Dunlap <[email protected]> wrote:
Quoted 34 lines · Masami Hiramatsu
Update boot configuration documentation.
- Not using "config" abbreviation but configuration or description.
- Rewrite descriptions of node and its maxinum number.
- Add a section of use cases of boot configuration.
- Move how to use bootconfig to earlier section.
- Fix some typos, indents and format mistakes.Signed-off-by Masami Hiramatsu <[email protected]>---
Changes in v2:
- Fixes additional typos (Thanks Markus and Randy!)
- Change a section title to "Tree Structured Key".--- Documentation/admin-guide/bootconfig.rst | 180 +++++++++++++++++++----------- Documentation/trace/boottime-trace.rst | 2 2 files changed, 116 insertions(+), 66 deletions(-)Documentation/admin-guide/bootconfig.rst +4
-3@@ -11,19 +11,98 @@ Boot Configuration Overview ======== -The boot configuration expands the current kernel command line to support -additional key-value data when booting the kernel in an efficient way. -This allows administrators to pass a structured-Key config file. +Boot configuration expands the current kernel command line to support +additional key-value data while booting the kernel in an efficient way. +This allows administrators to pass a structured key configuration file +as a way to supplement the kernel command line to pass system boot parameters.
Quoted 8 lines
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 21
Quoted 5 lines
Documentation/admin-guide/bootconfig.rst +3
-2-Config File Syntax -================== +Compared with the kernel command line, the boot configuration can provide +scalability (up to 32 KiB configuration data), readability (structured +configuration with comments) and compact expression of option groups.Do the comments count in the 32 KiB of data? I.e., is the max bootconfig file size 32 KiB?
Yes, the max bootconfig file size is 32 KiB. This could be fixed by filtering out the comments by bootconfig tool.
Quoted 26 lines
Quoted 26 lines
Documentation/admin-guide/bootconfig.rst +26
-0+ +When to Use the Boot Configuration? +----------------------------------- + +The boot configuration supports kernel command line options and init daemon +boot options. All sub-keys under "kernel" root key are passed as a part of +kernel command line [1]_, and ones under "init" root key are passed as a part +of init command line. For example, :: + + root=UUID=8cd79b08-bda0-4b9d-954c-5d5f34b98c82 ro quiet splash console=ttyS0,115200n8 console=tty0 + +This can be written as following boot configuration file.:: + + kernel { + root = "UUID=8cd79b08-bda0-4b9d-954c-5d5f34b98c82" # nvme0n1p3 + ro # mount rootfs as read only + quiet # No console log + splash # show splash image on boot screen + console = "ttyS0,115200n8" # 1st console to serial device + console += tty0 # add 2nd console + } + +If you think that kernel/init options becomes too long to write in boot-loader +configuration file or you want to comment on each option, the boot +configuration may be suitable. If unsure, you can still continue to use the +legacy kernel command line.
Quoted 8 lines
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 52
Quoted 5 lines
Documentation/admin-guide/bootconfig.rst +5
-0+ +Also, some subsystem may depend on the boot configuration, and it has own +root key. For example, ftrace boot-time tracer uses "ftrace" root key to +describe its options [2]_. In this case, you need to use the boot +configuration.Does this say that "ftrace" requires use of bootconfig? It seems to say that.
Ah, I got it. The last sentence is confusing. How about below?
"If you want to use the boot-time tracer, you need to use the boot configuration."
Quoted 24 lines
Quoted 24 lines
Documentation/admin-guide/bootconfig.rst +23
-0+ +.. [1] See :ref:`Documentation/admin-guide/kernel-parameters.rst <kernelparameters>` +.. [2] See :ref:`Documentation/trace/boottime-trace.rst <boottimetrace>` + + +How to Use the Boot Configuration? +---------------------------------- + +To enable the boot configuration support on your kernel, it must be built with +``CONFIG_BOOT_CONFIG=y`` and ``CONFIG_BLK_DEV_INITRD=y``. + +Next, you can write a boot configuration file and attach it to initrd image. + +The boot configuration file is attached to the end of the initrd (initramfs) +image file with size, checksum and 12-byte magic word as below. + +[initrd][bootconfig][size(u32)][checksum(u32)][#BOOTCONFIG\n] + +The Linux kernel decodes the last part of the initrd image in memory to +get the boot configuration data. +Because of this "piggyback" method, there is no need to change or +update the boot loader and the kernel image itself. +
Quoted 8 lines
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 80
Quoted 5 lines
Documentation/admin-guide/bootconfig.rst +5
-0+To do this operation, Linux kernel provides "bootconfig" command under +tools/bootconfig, which allows admin to apply or delete the configuration +file to/from initrd image. You can build it by the following command:: + + # make -C tools/bootconfigPlease make that honor O=builddir instead of building in the kernel source tree and ignoring O=builddir.
OK.
Quoted 7 lines
Quoted 7 lines
Documentation/admin-guide/bootconfig.rst +5
-0+ +To add your boot configuration file to initrd image, run bootconfig as below +(Old data is removed automatically if exists):: + + # tools/bootconfig/bootconfig -a your-config /boot/initrd.img-X.Y.Z
Quoted 14 lines
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 94
Quoted 11 lines
Documentation/admin-guide/bootconfig.rst +8
-3-The boot config syntax is a simple structured key-value. Each key consists -of dot-connected-words, and key and value are connected by ``=``. The value -has to be terminated by semi-colon (``;``) or newline (``\n``). +To remove the configuration from the image, you can use -d option as below:: + + # tools/bootconfig/bootconfig -d /boot/initrd.img-X.Y.Z + +At last, add ``bootconfig`` on the normal kernel command line to tell the +kernel to look for the bootconfig at the end of the initrd file. For example:: + + GRUB_CMDLINE_LINUX="bootconfig"thanks.
Thanks for your review!
Quoted 3 lines
Signature · 1 line
~Randy
Signature · 1 line
Masami Hiramatsu <[email protected]>
Randy Dunlap
reviewerRe: [PATCH v2] Documentation: bootconfig: Update boot configuration documentation
Quoted 31 lines · Masami Hiramatsu
Quoted 20 lines · On Fri, 28 Feb 2020 21:59:45 -0800 Randy Dunlap <[email protected]> wrote:
Quoted 17 lines · Masami Hiramatsu
Update boot configuration documentation.
- Not using "config" abbreviation but configuration or description.
- Rewrite descriptions of node and its maxinum number.
- Add a section of use cases of boot configuration.
- Move how to use bootconfig to earlier section.
- Fix some typos, indents and format mistakes.Signed-off-by Masami Hiramatsu <[email protected]>---
Changes in v2:
- Fixes additional typos (Thanks Markus and Randy!)
- Change a section title to "Tree Structured Key".--- Documentation/admin-guide/bootconfig.rst | 180 +++++++++++++++++++----------- Documentation/trace/boottime-trace.rst | 2 2 files changed, 116 insertions(+), 66 deletions(-)Quoted 7 lines
Documentation/admin-guide/bootconfig.rst Boot Configuration · line 52
Quoted 4 lines
Documentation/admin-guide/bootconfig.rst +4
-0+Also, some subsystem may depend on the boot configuration, and it has own +root key. For example, ftrace boot-time tracer uses "ftrace" root key to +describe its options [2]_. In this case, you need to use the boot +configuration.Does this say that "ftrace" requires use of bootconfig? It seems to say that.
Quoted 3 lines
Ah, I got it. The last sentence is confusing. How about below?
"If you want to use the boot-time tracer, you need to use the boot configuration."
Yes, that is better. Thanks.
Signature · 1 line
~Randy
Re: [v2] Documentation: bootconfig: Update boot configuration documentation
In reply to Masami HiramatsuQuoted 3 lines
Ah, I got it. The last sentence is confusing. How about below?
"If you want to use the boot-time tracer, you need to use the boot configuration."
Can any tracing parameters be specified in the boot command line already?
How many settings will fit into the discussed places?
Regards,
Markus
Re: [v2 0/1] Documentation: bootconfig: Documentation updates
In reply to Masami HiramatsuQuoted 2 lines
I decided to drop EBNF (extended Backus–Naur form) patch since the ISO/IEC 14977 EBNF seems not carefully defined
Significant efforts happened also for this standard. Does its revision refer still to the year 1996?
Quoted 2 lines
and there are many variants which named EBNF.
I'll postpone it until finding better solution.
How will the corresponding clarification evolve?
I hope that typos will be avoided also in subjects of subsequent cover letters.
Regards,
Markus
Masami Hiramatsu
maintainerRe: [v2 0/1] Documentation: bootconfig: Documentation updates
Quoted 6 lines · On Fri, 28 Feb 2020 10:00:55 +0100 Markus Elfring <[email protected]> wrote:
Quoted 2 lines
I decided to drop EBNF (extended Backus–Naur form) patch since the ISO/IEC 14977 EBNF seems not carefully defined
Significant efforts happened also for this standard. Does its revision refer still to the year 1996?
Didn't you read the article I shared? I actually wrote up the EBNF (ISO/IEC 14977) that was a good pazzle, but just a toy. I found no one use it to define their data format, according to the article, including ISO itself (lol!) and there are many local extension, including W3C EBNF, and those say "I'm EBNF". Well, to say the least, I feel it is quite confused.
So, if you are interested in it, I don't stop you to write it up. I just keep away from it.
Thank you,
Signature · 1 line
Masami Hiramatsu <[email protected]>
Re: [v2 0/1] Documentation: bootconfig: Documentation updates
Quoted 1 line
Didn't you read the article I shared?
I read also the article “Don’t Use ISO/IEC 14977 Extended Backus-Naur Form (EBNF)” by David A. Wheeler.
Some possibilities were pointed out as desirable improvements.
Quoted 2 lines
I actually wrote up the EBNF (ISO/IEC 14977) that was a good pazzle, but just a toy.
I hope that this contribution can help to become more productive in the discussed application domain.
https://lkml.org/lkml/2020/2/27/72
https://lore.kernel.org/patchwork/patch/1200987/
https://lore.kernel.org/linux-doc/158278836196.14966.3881489301852781521.stgit@devnote2/
Quoted 3 lines
I found no one use it to define their data format, according to the article, including ISO itself (lol!) and there are many local extension, including W3C EBNF, and those say "I'm EBNF".
I suggest to reconsider the current situation.
Quoted 1 line
Well, to say the least, I feel it is quite confused.
Such a view is reasonable.
Quoted 1 line
So, if you are interested in it, I don't stop you to write it up.
Will the collaboration continue anyhow?
Quoted 1 line
I just keep away from it.
This is a pity.
Will the clarification become more constructive for remaining challenges?
Regards,
Markus
Masami Hiramatsu
maintainerRe: [v2 0/1] Documentation: bootconfig: Documentation updates
Quoted 3 lines · On Fri, 28 Feb 2020 15:05:42 +0100 Markus Elfring <[email protected]> wrote:
Quoted 1 line
So, if you are interested in it, I don't stop you to write it up.
Will the collaboration continue anyhow?
It's your turn. "ask not what your community can do for you - ask what you can do for your community." :) Collaboration is not just talking, but move things step forward.
Quoted 1 line
Will the clarification become more constructive for remaining challenges?
If you think so, you can send a patch for it.
Thank you,
Signature · 1 line
Masami Hiramatsu <[email protected]>