]> git.baikalelectronics.ru Git - uboot.git/commit
efi_selftest: check for RISC-V boot-hartid in FDT
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 17 Sep 2020 05:33:29 +0000 (07:33 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 18 Sep 2020 20:23:58 +0000 (22:23 +0200)
commit03bdcff9f5e4f4ce0ea5d7f071d3163d3def424e
treee7ef6e75c4ffcbb5dbef9d6ddc164f1afb93453f
parentae0b9e61fa5a67b088f770e39b25a0cc1998142e
efi_selftest: check for RISC-V boot-hartid in FDT

On RISC-V check that the /chosen node has a boot-hartid property.

To run the test configure with CONFIG_CMD_BOOTEFI_SELFTEST=y and issue

    setenv efi_selftest device tree
    setenv serial# myserial
    bootefi selftest

If the test succeeds, it reports the boot-hartid, e.g.

    boot-hartid: 1

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_selftest_fdt.c