From: Stephen Warren <swarren@wwwdotorg.org>
To: Sylvain Garrigues <sylvain@sylvaingarrigues.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: Markus Armbruster <armbru@redhat.com>,
Andrew Baumann <Andrew.Baumann@microsoft.com>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Eric Blake <eblake@redhat.com>
Subject: Re: [Qemu-arm] [PATCH] bcm2835_property: use cached values when querying framebuffer
Date: Thu, 21 Apr 2016 10:06:23 -0600 [thread overview]
Message-ID: <5718FA7F.5030903@wwwdotorg.org> (raw)
In-Reply-To: <DED29353-D9CE-45F5-990F-0A32DB57B4AE@sylvaingarrigues.com>
On 04/21/2016 08:07 AM, Sylvain Garrigues wrote:
> Le 21 avr. 2016 à 15:42, Peter Maydell <peter.maydell@linaro.org> a écrit :
>>
>> There may be something we can do here to make FreeBSD's life
>> easier, but we definitely can't do it on the eve of a release.
>
> I didn’t know it was release day, my timing is not perfect then, sorry about that, I didn’t intend to put stress on you guys today.
> Like you mentioned, the Linux boot protocol doesn’t mandate any loading address, hence the possibility to set it on the command line.
> It would benefit not only to FreeBSD (which is strictly Linux boot ABI compliant BTW - that is how I found the qemu bootloader bug and fixed it in b4850e5) but all other OS.
> On the real hardware Raspberry Pi, there is the kernel_address firmware feature which enable to set the kernel load address. Would be neat to have it *someday* in qemu for any board if it is not too hard to implement.
It would indeed be nice if qemu for the Pi implemented the exact same
bootloader setup as real HW does. That is, loading boot images from the
FAT partition on the SD card, parsing config.txt, etc.
Ideally as was mentioned earlier this would be done by simply executing
the existing bootloader under emulation, rather than building all that
code into qemu. However, in the Pi case, the bootloader runs on the
VideoCore (a separate non-ARM CPU), so isn't (and likely won't be since
IIUC it isn't fully documented) emulated by qemu. by the time the ARM
CPU runs, everything (kernel, DTB/ATAGS, ARM boot stub, ...) is already
loaded into RAM, the display is already probed over HDMI and the
controller scanning out a dummy image, etc.
So I think if that were to be supported, it'd have to be coded into
qemu. Is that something that could happen, or would such patches not fit
qemu's model well?
WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren@wwwdotorg.org>
To: Sylvain Garrigues <sylvain@sylvaingarrigues.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: Markus Armbruster <armbru@redhat.com>,
Andrew Baumann <Andrew.Baumann@microsoft.com>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Eric Blake <eblake@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-arm] [PATCH] bcm2835_property: use cached values when querying framebuffer
Date: Thu, 21 Apr 2016 10:06:23 -0600 [thread overview]
Message-ID: <5718FA7F.5030903@wwwdotorg.org> (raw)
In-Reply-To: <DED29353-D9CE-45F5-990F-0A32DB57B4AE@sylvaingarrigues.com>
On 04/21/2016 08:07 AM, Sylvain Garrigues wrote:
> Le 21 avr. 2016 à 15:42, Peter Maydell <peter.maydell@linaro.org> a écrit :
>>
>> There may be something we can do here to make FreeBSD's life
>> easier, but we definitely can't do it on the eve of a release.
>
> I didn’t know it was release day, my timing is not perfect then, sorry about that, I didn’t intend to put stress on you guys today.
> Like you mentioned, the Linux boot protocol doesn’t mandate any loading address, hence the possibility to set it on the command line.
> It would benefit not only to FreeBSD (which is strictly Linux boot ABI compliant BTW - that is how I found the qemu bootloader bug and fixed it in b4850e5) but all other OS.
> On the real hardware Raspberry Pi, there is the kernel_address firmware feature which enable to set the kernel load address. Would be neat to have it *someday* in qemu for any board if it is not too hard to implement.
It would indeed be nice if qemu for the Pi implemented the exact same
bootloader setup as real HW does. That is, loading boot images from the
FAT partition on the SD card, parsing config.txt, etc.
Ideally as was mentioned earlier this would be done by simply executing
the existing bootloader under emulation, rather than building all that
code into qemu. However, in the Pi case, the bootloader runs on the
VideoCore (a separate non-ARM CPU), so isn't (and likely won't be since
IIUC it isn't fully documented) emulated by qemu. by the time the ARM
CPU runs, everything (kernel, DTB/ATAGS, ARM boot stub, ...) is already
loaded into RAM, the display is already probed over HDMI and the
controller scanning out a dummy image, etc.
So I think if that were to be supported, it'd have to be coded into
qemu. Is that something that could happen, or would such patches not fit
qemu's model well?
next prev parent reply other threads:[~2016-04-21 16:06 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 10:41 [Qemu-devel] [PATCH] bcm2835_property: use cached values when querying framebuffer Sylvain Garrigues
2016-04-21 10:41 ` Sylvain Garrigues
2016-04-21 12:45 ` [Qemu-arm] " Peter Maydell
2016-04-21 12:45 ` [Qemu-devel] " Peter Maydell
2016-04-21 12:50 ` [Qemu-arm] " Sylvain Garrigues
2016-04-21 12:50 ` [Qemu-devel] " Sylvain Garrigues
2016-04-21 12:54 ` Peter Maydell
2016-04-21 12:54 ` Peter Maydell
2016-04-21 13:15 ` [Qemu-arm] " Sylvain Garrigues
2016-04-21 13:15 ` [Qemu-devel] " Sylvain Garrigues
2016-04-21 13:42 ` [Qemu-arm] " Peter Maydell
2016-04-21 13:42 ` [Qemu-devel] " Peter Maydell
2016-04-21 14:07 ` [Qemu-arm] " Sylvain Garrigues
2016-04-21 14:07 ` [Qemu-devel] " Sylvain Garrigues
2016-04-21 16:06 ` Stephen Warren [this message]
2016-04-21 16:06 ` [Qemu-devel] [Qemu-arm] " Stephen Warren
2016-04-22 7:17 ` Peter Crosthwaite
2016-04-22 7:17 ` [Qemu-devel] " Peter Crosthwaite
2016-04-22 7:46 ` [Qemu-arm] [Qemu-devel] " Gerd Hoffmann
2016-04-22 7:46 ` [Qemu-devel] [Qemu-arm] " Gerd Hoffmann
2016-04-22 11:56 ` Andrew Baumann
2016-04-22 11:56 ` Andrew Baumann
2016-04-22 15:43 ` [Qemu-arm] [Qemu-devel] " Stephen Warren
2016-04-22 15:43 ` [Qemu-devel] [Qemu-arm] " Stephen Warren
2016-04-22 16:50 ` [Qemu-arm] [Qemu-devel] " Peter Crosthwaite
2016-04-22 16:50 ` [Qemu-devel] [Qemu-arm] " Peter Crosthwaite
2016-04-22 11:44 ` Andrew Baumann
2016-04-22 11:44 ` [Qemu-devel] " Andrew Baumann
2016-04-22 16:55 ` Peter Crosthwaite
2016-04-22 16:55 ` [Qemu-devel] " Peter Crosthwaite
2016-04-22 18:09 ` Sylvain Garrigues
2016-04-22 18:09 ` Sylvain Garrigues
2016-04-22 11:22 ` [Qemu-arm] [Qemu-devel] " Andrew Baumann
2016-04-22 11:22 ` Andrew Baumann
2016-04-22 11:26 ` [Qemu-arm] " Sylvain Garrigues
2016-04-22 11:26 ` Sylvain Garrigues
2016-04-22 11:30 ` [Qemu-arm] " Andrew Baumann
2016-04-22 11:30 ` Andrew Baumann
2016-04-22 12:12 ` [Qemu-arm] " Sylvain Garrigues
2016-04-22 12:12 ` Sylvain Garrigues
2016-05-09 10:27 ` [Qemu-arm] " Paolo Bonzini
2016-05-09 10:27 ` Paolo Bonzini
-- strict thread matches above, loose matches on Subject: below --
2016-04-22 11:42 [Qemu-arm] " Sylvain Garrigues
2016-05-02 21:21 ` Sylvain Garrigues
2016-05-03 0:03 ` Peter Maydell
2016-05-04 15:19 ` Peter Maydell
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=5718FA7F.5030903@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=Andrew.Baumann@microsoft.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sylvain@sylvaingarrigues.com \
/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.