[U-Boot] [PATCH v2 6/8] test: check u-boot properties in SPL device tree
Simon Glass
sjg at chromium.org
Mon May 20 15:35:43 UTC 2019
Hi Patrick,
On Mon, 20 May 2019 at 07:00, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> Add a test to check the management of the u-boot relocation properties
> (fdtgrep result) for platdata generation or device tree SPL generation:
> - 'dm-pre-proper' and 'dm-tpl' not included in SPL
> - 'dm-pre-reloc' and 'dm-spl' included in SPL
>
> This patch also executes the version test (test_000_version) to check
> the correct start of the U-Boot after SPL execution.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
> Changes in v2:
> - add some test for SPL with device tree
>
> arch/sandbox/dts/test.dts | 18 ++++++++++++++
> test/py/tests/test_ofplatdata.py | 53 ++++++++++++++++++++++++++++++++++++++++
> test/run | 5 ++++
> 3 files changed, 76 insertions(+)
I am starting to understand a bit now.
But I don't think we need to execute sandbox to check that fdtgrep is
doing the right thing. We can check the spl/u-boot-spl/tpl.dtb file
against what is expected, but running fdtdump over it, or by opening
the file with pylibfdt (see dtco//fdt.py) and looking for things we
expect.
Regards,
Simon
More information about the U-Boot
mailing list