Received: from eggs.gnu.org ([2001:4830:134:3::10]:56852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atH7h-0003pf-0A for qemu-devel@nongnu.org; Thu, 21 Apr 2016 12:06:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atH7g-0007xx-4z for qemu-devel@nongnu.org; Thu, 21 Apr 2016 12:06:32 -0400 References: <1461235306-3393-1-git-send-email-sylvain@sylvaingarrigues.com> From: Stephen Warren Message-ID: <5718FA7F.5030903@wwwdotorg.org> Date: Thu, 21 Apr 2016 10:06:23 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-arm] [PATCH] bcm2835_property: use cached values when querying framebuffer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sylvain Garrigues , Peter Maydell Cc: Markus Armbruster , Andrew Baumann , QEMU Developers , qemu-arm , Paolo Bonzini , Eric Blake On 04/21/2016 08:07 AM, Sylvain Garrigues wrote: > Le 21 avr. 2016 =C3=A0 15:42, Peter Maydell = a =C3=A9crit : >> >> 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=E2=80=99t know it was release day, my timing is not perfect then= , sorry about that, I didn=E2=80=99t intend to put stress on you guys tod= ay. > Like you mentioned, the Linux boot protocol doesn=E2=80=99t 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 ha= ve 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=20 bootloader setup as real HW does. That is, loading boot images from the=20 FAT partition on the SD card, parsing config.txt, etc. Ideally as was mentioned earlier this would be done by simply executing=20 the existing bootloader under emulation, rather than building all that=20 code into qemu. However, in the Pi case, the bootloader runs on the=20 VideoCore (a separate non-ARM CPU), so isn't (and likely won't be since=20 IIUC it isn't fully documented) emulated by qemu. by the time the ARM=20 CPU runs, everything (kernel, DTB/ATAGS, ARM boot stub, ...) is already=20 loaded into RAM, the display is already probed over HDMI and the=20 controller scanning out a dummy image, etc. So I think if that were to be supported, it'd have to be coded into=20 qemu. Is that something that could happen, or would such patches not fit=20 qemu's model well?