All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alper Nebi Yasak <alpernebiyasak@gmail.com>
To: Simon Glass <sjg@chromium.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Sean Anderson <sean.anderson@seco.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	Tom Rini <trini@konsulko.com>
Subject: Re: Running qemu tests on RISC-V
Date: Tue, 8 Feb 2022 21:19:57 +0300	[thread overview]
Message-ID: <0f998b51-b2cc-4500-3db9-291ee20fe434@gmail.com> (raw)
In-Reply-To: <CAPnjgZ33xQWiDV9fRoPTW65jTw7x_SuH5f3A4jXUTz5Ni-ZVkg@mail.gmail.com>

On 08/02/2022 20:13, Simon Glass wrote:
> Hi Heinrich,
> 
> On Tue, 8 Feb 2022 at 08:34, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>>
>> On 2/8/22 15:52, Simon Glass wrote:
>>> Hi Heinrich,
>>>
>>> On Tue, 8 Feb 2022 at 01:21, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>>>> Hello Simon,
>>>>
>>>> The qemu-riscv32_spl_defconfig image built inside Docker with
>>>>
>>>> wget -O -
>>>> https://github.com/riscv/opensbi/releases/download/v0.9/opensbi-0.9-rv-bin.tar.xz
>>>> export
>>>> OPENSBI=/tmp/opensbi-0.9-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin
>>>> tools/buildman/buildman -o build -w -E -W -e --board qemu-riscv32_spl
>>>>
>>>> runs flawlessly on Ubuntu Jammy with:
>>>>
>>>> qemu-system-riscv32 -nographic -machine virt -bios spl/u-boot-spl \
>>>>       -device loader,file=u-boot.itb,addr=0x80200000 -smp cpus=4
>>>>
>>>> This is a QEMU 6.0
>>>>
>>>> Please, provide a reproducible instruction for your problem.
>>>
>>> I wonder if the problem is the OPENSBI thing. I am not providing that,
>>> nor am I seeing a warning about it.
>>
>> OpenSBI is needed to emulate unaligned access, access to CSR registers
>> and so forth. I assume you cannot run qemu-riscv32_spl_defconfig.
>>
>> A build warning if CONFIG_SPL_OPENSBI=y and OPENSBI is not defined might
>> make sense.
> 
> OK, it seems we need a binman test that we warn on external blobs that
> are embedded in a FIT.

I tried building qemu-riscv32_spl with buildman on current master from
Debian unstable (outside the container). I am getting the "missing
external blobs" binman warning when I don't pass OPENSBI as a make flag.

The qemu-system-riscv32 command above works fine with that OPENSBI
binary, but not without it. I get garbled output and errors including:
Illegal instruction, Unhandled exception, Please RESET the board...

  reply	other threads:[~2022-02-08 18:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-07 15:38 Running qemu tests on RISC-V Simon Glass
2022-02-07 15:53 ` Heinrich Schuchardt
2022-02-07 16:34   ` Sean Anderson
2022-02-07 16:49     ` Tom Rini
2022-02-07 18:19       ` Simon Glass
2022-02-08  8:21         ` Heinrich Schuchardt
2022-02-08 14:52           ` Simon Glass
2022-02-08 15:34             ` Heinrich Schuchardt
2022-02-08 17:13               ` Simon Glass
2022-02-08 18:19                 ` Alper Nebi Yasak [this message]
2022-02-08 20:43                   ` Simon Glass
2022-02-08 21:35                     ` Alper Nebi Yasak
2022-02-08 21:55                       ` Simon Glass
2022-02-09  0:58                         ` Heinrich Schuchardt
2022-02-09  2:39                           ` Simon Glass
2022-02-09 20:46                         ` Alper Nebi Yasak
2022-02-09 20:20       ` Alper Nebi Yasak
2022-02-09 21:20         ` Tom Rini
2022-02-07 15:54 ` Michael Lawnick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0f998b51-b2cc-4500-3db9-291ee20fe434@gmail.com \
    --to=alpernebiyasak@gmail.com \
    --cc=sean.anderson@seco.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.