Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2019 16:58:41 +0600
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        Li-Wen Hsu <lwhsu@freebsd.org>
Cc:        Mitchell Horne <mhorne@freebsd.org>, freebsd-riscv <freebsd-riscv@freebsd.org>
Subject:   Re: QEMU 4.1 and RISC-V
Message-ID:  <EA9FB612-DE51-4924-8761-C2147206B87A@FreeBSD.org>
In-Reply-To: <CAKBkRUw4Ebawyt5GtGdM6wKCxLuX54f8cR_cQK13LKx1_CpHYw@mail.gmail.com>
References:  <CAKBkRUw%2BgGKOzU1_JWv_FUx5A9jBnuq0MvQh15Yy9NZ0PKYR9A@mail.gmail.com> <CADeAsy30gdZJa9S7easL6tTry4RrYzDBazx2u2cLtF8TrE9qMw@mail.gmail.com> <CAKBkRUz_V4Cz%2BHSxsazWJ-i4-J6%2B2qxfHZUgUcJi-bfoEhsSxg@mail.gmail.com> <CADeAsy0uiLr7=8f9eSBJn-wCSTiZfXr6Ua37Ch7ffTwkSvegqw@mail.gmail.com> <CAKBkRUxRW5v=FfuziXrrEHrz_ui4MjXrOOf32376HxVTH0bYDQ@mail.gmail.com> <CAKBkRUw4Ebawyt5GtGdM6wKCxLuX54f8cR_cQK13LKx1_CpHYw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Li-Wen,
Should we add this to pkg-message for 4.1.X?
Kind Regards,
@bofh

> On 30 Sep, 2019, at 08:54, Li-Wen Hsu <lwhsu@freebsd.org> wrote:
>=20
> On Mon, Sep 30, 2019 at 4:28 AM Li-Wen Hsu <lwhsu@freebsd.org> wrote:
>>=20
>> On Mon, Sep 30, 2019 at 4:12 AM Mitchell Horne <mhorne@freebsd.org> =
wrote:
>>>=20
>>> On Sun, Sep 29, 2019 at 4:56 PM Li-Wen Hsu <lwhsu@freebsd.org> =
wrote:
>>>>=20
>>>> On Sun, Sep 29, 2019 at 10:48 PM Mitchell Horne =
<mhorne@freebsd.org> wrote:
>>>>>=20
>>>>>=20
>>>>> On Sun, Sep 29, 2019, 15:17 Li-Wen Hsu <lwhsu@freebsd.org> wrote:
>>>>>>=20
>>>>>> I found that RISC-V test started failing recently:
>>>>>> https://ci.freebsd.org/job/FreeBSD-head-riscv64-test/
>>>>>>=20
>>>>>> After some checking, I found the issue is our bbl image cannot =
boot
>>>>>> with this command:
>>>>>>=20
>>>>>> qemu-system-riscv64 -nographic -m 2048M -kernel ./bbl
>>>>>>=20
>>>>>> in QEMU 4.1, while 3.1 and 4.0 are fine.  I've switched the QEMU
>>>>>> version used in that job to 4.0, but I think it would be best if =
we
>>>>>> can find the root cause is in FreeBSD or QEMU.
>>>>>>=20
>>>>>> Can anyone also help on this?
>>>>>=20
>>>>>=20
>>>>> Hi Li-Wen,
>>>>>=20
>>>>> I can take a look in the coming week if you're okay with the =
workaround for the time being. Locally
>>>>> I've had no issue running bbl with qemu 4.1 but perhaps there's =
something more specific that the
>>>>> CI script is doing.
>>>>>=20
>>>>> I'm hoping we will soon be able to replace bbl with the more =
actively maintained OpenSBI firmware.
>>>>> I have some pending changes that will allow us to boot FreeBSD =
with it, and after that I'd like to
>>>>> create ports for both bootloaders, which I hope will make the CI =
setup a little simpler and less fragile
>>>>> than building bbl currently is.
>>>>=20
>>>> Thanks very much, Mitchell,
>>>>=20
>>>> Let's narrow down the scope, are you using the qemu-devel pkg from
>>>> official repository or building by yourself?
>>>>=20
>>>=20
>>> This was using qemu that I had built myself, but the executable from =
qemu-devel
>>> works for me as well.
>>>=20
>>>> And can you try this bbl image?
>>>> =
https://artifact.ci.freebsd.org/snapshot/head/r352870/riscv/riscv64/bbl.xz=

>>>=20
>>> I had no issue booting this image with my self-built qemu or the one =
from
>>> pkg. The only observable difference from qemu 3.1 is that a warning =
is
>>> printed to stderr, but considering the CI script is timing out I =
don't think
>>> that is the issue.
>>=20
>> What's your command line to launch qemu? The CI (and I) uses this:
>>=20
>> qemu-system-riscv64 -nographic -m 2048M -kernel ./bbl
>>=20
>> I also tried to build qemu locally, and result is the same. I also =
did
>> a git bisect:
>>=20
>> 0ac24d56c5e7d32423ea78ac58a06b444d1df04d is the first bad commit
>=20
> Hmm, after checking with wiki.freebsd.org/riscv, I found that we need
> to specify `-machine virt` now.
>=20
> QEMU 4.1 default machine for riscv64 is "spike" not "spike_v1.10"
> anymore, and need other more arguments.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EA9FB612-DE51-4924-8761-C2147206B87A>