From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwqhB-0004w5-GA for qemu-devel@nongnu.org; Sat, 28 Dec 2013 05:00:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vwqh9-0003uD-TY for qemu-devel@nongnu.org; Sat, 28 Dec 2013 05:00:37 -0500 Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:44971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwqh9-0003u9-Le for qemu-devel@nongnu.org; Sat, 28 Dec 2013 05:00:35 -0500 Received: by mail-lb0-f176.google.com with SMTP id l4so4668569lbv.35 for ; Sat, 28 Dec 2013 02:00:33 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <52B998C2.1000407@ilande.co.uk> References: <20131218073811.7663.63219.malonedeb@soybean.canonical.com> <20131220174136.16144.64815.malone@wampee.canonical.com> <2F3A0166-4808-47C4-91E5-DE1CCFEAB250@bartoli.org> <52B7EEE4.7060907@ilande.co.uk> <21C66F55-5726-4579-B192-AEBC55FEE7D7@bartoli.org> <52B998C2.1000407@ilande.co.uk> From: Artyom Tarasenko Date: Sat, 28 Dec 2013 11:00:13 +0100 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [Bug 1262081] Re: qemu-system-sparc in qemu 1.7.0 fails to boot with Sun ROM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland Cc: Peter Bartoli , Bug 1262081 <1262081@bugs.launchpad.net>, qemu-devel On Tue, Dec 24, 2013 at 3:22 PM, Mark Cave-Ayland wrote: > On 23/12/13 21:00, Peter Bartoli wrote: > >>> I currently have patches for a CG3 framebuffer pending that will enable >>> you to boot Solaris into graphics mode, which I hope will be applied >>> soon. >> >> >> That is AWESOME news. Really, I'm hoping to just have a text-based >> console like on my SS5 with the old familiar Sun logo and to start > > > ..X? > > >>> Also Artyom's blog is quite out of date with respect to OpenBIOS - >>> OpenBIOS has been able to boot my test Solaris 8 image for over 2 years >>> now so you may find that you can get by without the proprietary Sun ROM >>> (and avoid having to manually type a boot command into OBP every time >>> you restart). Unfortunately the OpenBIOS binaries for 1.7 also have a >>> bug that breaks booting from hard disks (CDROMs are fine), but the >>> updated binaries should be merged into git in time for the next 1.7.x >>> release. >> >> >> Again, great news. I'm running Solaris 2.5.1 ... any clue if OpenBIOS >> might work for me? > > > No idea - I don't have many Solaris images for testing at all, so just try > it and see. Although you need to wait for the fixed binaries to hit the QEMU > 1.7/master git repo to fix another outstanding SPARC boot bug. > > >> If I may, do you know why qemu-system-sparc w/ OBP ignores the following >> prom-env options? >> >> -prom-env 'boot-device=disk1' -prom-env 'auto-boot?=true' > > > That's because the boot parameters are passed to the PROM via a QEMU custom > FW interface (which OBP has no knowledge of) rather than by having QEMU > emulate the NVRAM in exactly the same way as real hardware. Actually QEMU does set variables in NVRAM (hw/sparc/sun4m.c:151), and afaik uses the layout of open-sourced OBP. The problem is that earlier versions of OBP seemed to have a different layout, or maybe just a magic constant is missing somewhere. Artyom -- Regards, Artyom Tarasenko linux/sparc and solaris/sparc under qemu blog: http://tyom.blogspot.com/search/label/qemu