diff mbox series

[6/6] doc: Update uefi documentation for initrd loading options

Message ID 20210305222303.2866284-6-ilias.apalodimas@linaro.org
State New
Headers show
Series [1/6] efi_selftest: Remove loadfile2 for initrd selftests | expand

Commit Message

Ilias Apalodimas March 5, 2021, 10:23 p.m. UTC
Document the command line options for efidebug and initrd loading

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>

---
 doc/uefi/uefi.rst | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.30.1

Comments

Heinrich Schuchardt March 11, 2021, 12:39 p.m. UTC | #1
On 05.03.21 23:23, Ilias Apalodimas wrote:
> Document the command line options for efidebug and initrd loading

>

> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>

> ---

>  doc/uefi/uefi.rst | 6 ++++++

>  1 file changed, 6 insertions(+)

>

> diff --git a/doc/uefi/uefi.rst b/doc/uefi/uefi.rst

> index b3494c22e073..b3330f8d7273 100644

> --- a/doc/uefi/uefi.rst

> +++ b/doc/uefi/uefi.rst

> @@ -180,6 +180,12 @@ Set up boot parameters on your board::

>

>      efidebug boot add -b 1 HELLO mmc 0:1 /helloworld.efi.signed ""

>

> +Since kernel 5.7 there's an alternative way of loading an initrd using

> +LoadFile2 protocol if CONFIG_EFI_LOAD_FILE2_INITRD is enabled.

> +The initrd path can be specified with::

> +

> +    efidebug boot add -b ABE0 'kernel' mmc 0:1 Image -i mmc 0:1 initrd

> +

>  Now your board can run the signed image via the boot manager (see below).

>  You can also try this sequence by running Pytest, test_efi_secboot,

>  on the sandbox

>


Please, add text to doc/uefi/uefi.rst describing how we use boot options
for initrds.

Best regards

Heinrich
diff mbox series

Patch

diff --git a/doc/uefi/uefi.rst b/doc/uefi/uefi.rst
index b3494c22e073..b3330f8d7273 100644
--- a/doc/uefi/uefi.rst
+++ b/doc/uefi/uefi.rst
@@ -180,6 +180,12 @@  Set up boot parameters on your board::
 
     efidebug boot add -b 1 HELLO mmc 0:1 /helloworld.efi.signed ""
 
+Since kernel 5.7 there's an alternative way of loading an initrd using
+LoadFile2 protocol if CONFIG_EFI_LOAD_FILE2_INITRD is enabled.
+The initrd path can be specified with::
+
+    efidebug boot add -b ABE0 'kernel' mmc 0:1 Image -i mmc 0:1 initrd
+
 Now your board can run the signed image via the boot manager (see below).
 You can also try this sequence by running Pytest, test_efi_secboot,
 on the sandbox