Running qemu tests on RISC-V
Simon Glass
sjg at chromium.org
Wed Feb 9 03:39:33 CET 2022
Hi Heinrich,
On Tue, 8 Feb 2022 at 17:58, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
>
>
> Am 8. Februar 2022 22:55:38 MEZ schrieb Simon Glass <sjg at chromium.org>:
> >Hi Alper,
> >
> >On Tue, 8 Feb 2022 at 14:36, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
> >>
> >> On 08/02/2022 23:43, Simon Glass wrote:
> >> > Thanks for testing it. I don't see this on
> >> >
> >> > 8b139f4e1c0 (HEAD, us/master) Merge tag 'u-boot-imx-20220207' of
> >> > https://gitlab.denx.de/u-boot/custodians/u-boot-imx
> >> >
> >> > :
> >> >
> >> > tools/binman/binman --toolpath ./tools build -u -d u-boot.dtb -O .
> >> > -m --allow-missing --fake-ext-blobs -I . -I
> >> > /scratch/sglass/cosarm/src/third_party/u-boot/files -I
> >> > /scratch/sglass/cosarm/src/third_party/u-boot/files/board/emulation/qemu-riscv
> >> > -I arch/riscv/dts -a of-list="qemu-virt32" -a atf-bl31-path= -a
> >> > opensbi-path= -a default-dt="qemu-virt32" -a scp-path= -a
> >> > spl-bss-pad=1 -a tpl-bss-pad=1 -a spl-dtb=y -a tpl-dtb=
> >>
> >> This command does print the warning for me at that commit (and I see it
> >> with `make` before that).
> >>
> >> If I run `touch fw_dynamic.bin` it no longer does, maybe check if such a
> >> file exists in your include paths.
> >
> >OK that is it, thanks.
> >
> >I think binman should remove the fake files before exiting. What do you think?
>
> What do you mean by fake file? Does your build fail if you put the correct file there?
U-Boot writes fake files if needed to make the build works, e.g. for
mkimage which needs a real file to actually run.
Not yet but I'm sure it's just a case of finding the right binary
blob. For a brand-new platform too. So sad.
CROSS_COMPILE=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv32-linux/bin/riscv32-linux-
make PLATFORM=generic -j30
$ do-qemu-riscv_spl.sh help
+ test=help
+ OPENSBI=opensbi/build/platform/generic/firmware/fw_dynamic.bin
crosfw qemu-riscv32_spl
+ PATH=/home/sglass/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sglass/bin:/sbin:/scratch/sglass/cosarm/depot_tools:/home/sglass/cosarm/chromite/bin:/home/sglass/.local/bin:/home/sglass/bin:/vid/software/devel/ubtest/u-boot-test-hooks/bin:/vid/software/devel/ubtest/u-boot-test-hooks/
test/py/test.py -B qemu-riscv32_spl --id na --build-dir
/tmp/b/qemu-riscv32_spl -k help
+u-boot-test-flash qemu-riscv32_spl na
===================================================== test session
starts =====================================================
platform linux -- Python 3.8.10, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
hypothesis profile 'default' ->
database=DirectoryBasedExampleDatabase('/scratch/sglass/cosarm/src/third_party/u-boot/files/.hypothesis/examples')
rootdir: /scratch/sglass/cosarm/src/third_party/u-boot/files/test/py,
inifile: pytest.ini
plugins: forked-1.1.3, hypothesis-4.36.2, xdist-1.31.0
collected 344 items / 342 deselected / 2 selected
test/py/tests/test_fpga.py s
[ 50%]
test/py/tests/test_help.py E
[100%]
=========================================================== ERRORS
============================================================
_________________________________________________ ERROR at setup of
test_help _________________________________________________
test/py/conftest.py:367: in u_boot_console
console.ensure_spawned()
test/py/u_boot_console_base.py:372: in ensure_spawned
m = self.p.expect([pattern_u_boot_main_signon] + self.bad_patterns)
test/py/u_boot_spawn.py:193: in expect
raise Timeout()
E u_boot_spawn.Timeout
---------------------------------------------------- Captured stdout
setup ----------------------------------------------------
+u-boot-test-reset qemu-riscv32_spl na
U-Boot SPL 2022.04-rc1-00001-gbddd3967b6f (Feb 08 2022 - 19:36:55 -0700)
Trying to boot from RAM
===================================== 1 skipped, 342 deselected, 1
error in 31.47 seconds =====================================
Regards,
Simon
More information about the U-Boot
mailing list