All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sandbox: Fix VPL instructions
@ 2023-11-12 14:44 Simon Glass
  2023-11-13  0:18 ` Heinrich Schuchardt
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Glass @ 2023-11-12 14:44 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Simon Glass, Abdellatif El Khlifi, Corentin Guillevic

Fix the devicetree used with sandbox. This is needed because the
default (full) devicetree must be used by all phases of boot, with
sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 doc/arch/sandbox/sandbox.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/arch/sandbox/sandbox.rst b/doc/arch/sandbox/sandbox.rst
index 23902dee89e7..9c69dea81ed1 100644
--- a/doc/arch/sandbox/sandbox.rst
+++ b/doc/arch/sandbox/sandbox.rst
@@ -427,7 +427,7 @@ VPL (Verifying Program Loader)
 Sandbox provides an example build of vpl called `sandbox_vpl`. This can be run
 using::
 
-   /path/to/sandbox_vpl/tpl/u-boot-tpl -D
+   /path/to/sandbox_vpl/tpl/u-boot-tpl -d /tmp/b/sandbox_vpl/u-boot.dtb
 
 It starts up TPL (first-stage init), then VPL, then runs SPL and finally U-Boot
 proper, following the normal flow for a verified boot. At present, no
-- 
2.42.0.869.gea05f2083d-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sandbox: Fix VPL instructions
  2023-11-12 14:44 [PATCH] sandbox: Fix VPL instructions Simon Glass
@ 2023-11-13  0:18 ` Heinrich Schuchardt
  0 siblings, 0 replies; 2+ messages in thread
From: Heinrich Schuchardt @ 2023-11-13  0:18 UTC (permalink / raw)
  To: Simon Glass; +Cc: Abdellatif El Khlifi, Corentin Guillevic, U-Boot Mailing List

On 11/12/23 15:44, Simon Glass wrote:
> Fix the devicetree used with sandbox. This is needed because the
> default (full) devicetree must be used by all phases of boot, with
> sandbox.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>   doc/arch/sandbox/sandbox.rst | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/doc/arch/sandbox/sandbox.rst b/doc/arch/sandbox/sandbox.rst
> index 23902dee89e7..9c69dea81ed1 100644
> --- a/doc/arch/sandbox/sandbox.rst
> +++ b/doc/arch/sandbox/sandbox.rst
> @@ -427,7 +427,7 @@ VPL (Verifying Program Loader)
>   Sandbox provides an example build of vpl called `sandbox_vpl`. This can be run

This will be confusing to a rookie. Please refer to sandbox_vpl_defconfig.

>   using::

using:

.. code-block:: bash

>
> -   /path/to/sandbox_vpl/tpl/u-boot-tpl -D

Please provide the full instructions:

make sandbox_vpl_defconfig
make
tpl/u-boot-tpl -d u-boot.dtb

> +   /path/to/sandbox_vpl/tpl/u-boot-tpl -d /tmp/b/sandbox_vpl/u-boot.dtb

Do we really use /tmp? We should place all build artifacts in the build
directory instead.

I could not find any directory called sandbox_vpl in my /tmp directory.

I could not make the example work:

$ make sandbox_vpl_defconfig
$ make
$ tpl/u-boot-tpl -d u-boot.dtb

U-Boot TPL 2024.01-rc2-00002-g66024fa8d5 (Nov 13 2023 - 01:09:03 +0100)
Trying to boot from sandbox_image
Trying to boot from sandbox_file
(tpl/u-boot-vpl not found, error -2)
TPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

u-boot-vpl is not in tpl/ but in vpl/.
The VPL example seems to need rework.

>
>   It starts up TPL (first-stage init), then VPL, then runs SPL and finally U-Boot
>   proper, following the normal flow for a verified boot. At present, no

Best regards

Heinrich

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-13  0:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-12 14:44 [PATCH] sandbox: Fix VPL instructions Simon Glass
2023-11-13  0:18 ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.