Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FjGDY-0001iB-3q for qemu-devel@nongnu.org; Thu, 25 May 2006 09:49:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FjGDW-0001hr-Aa for qemu-devel@nongnu.org; Thu, 25 May 2006 09:49:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FjGDW-0001hj-6e for qemu-devel@nongnu.org; Thu, 25 May 2006 09:49:34 -0400 Received: from [68.230.240.36] (helo=eastrmmtao03.cox.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FjGIB-0001xp-UT for qemu-devel@nongnu.org; Thu, 25 May 2006 09:54:24 -0400 Message-ID: <1890258.1148564972423.JavaMail.root@eastrmwml06.mgt.cox.net> Date: Thu, 25 May 2006 9:49:32 -0400 From: Ben Taylor Subject: Re: [Qemu-devel] work needed to get solaris to boot under qemu-system-sparc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook , qemu-devel@nongnu.org ---- Paul Brook wrote: > On Thursday 25 May 2006 14:16, Ben Taylor wrote: > > The question came up a little while back about getting Solaris (Sparc) to > > boot in qemu under qemu-system-sparc. > > > > I did a little work yesterday to find out that the boot process in > > hw/sun4m.c is really kind of hard wired for a linux boot. If there is no > > kernel or initrd, it drops right through. In reality, if those variables > > aren't set, and the boot device is cdrom, shouldn't there be some code to > > load the boot block in slice 3 of the cd/dvd? At worst case, it seems that > > we could probably extract the boot block and force qemu to load that with > > the hope of getting a solaris/sparc on qemu started, since slice 1 of the > > cd/dvd is the kernel and root directory structure. Slice 0 is the install > > media. > > > > Ideas? I'm neck deep in the pool and have no idea where to start. > > Real sun SPARC systems use an OpenFirmware (aka OpenBoot) based system. Right. > http://www.openbios.org/ indicates there is a qemu/sparc port in progress. well, interestingly enough, trying to boot a Solaris 10U1 sparc cd with qemu-system-sparc (32-bit) comes up and says this hw is not supported. So the boot block appears to be getting read. I tried configuring with --target-list=sparc64-softmmu, but got an error when I tried to run it, saying: /tmp/qemu5/share/qemu/proll-sparc64.elf: No such file or directory qemu: could not load prom '/tmp/qemu5/share/qemu/proll-sparc64.bin' attempting to copy the proll.elf to proll-sparc64.elf ended up in a core dump with this message to start: fatal: Trap 0x0010 while trap level is MAXTL, Error state I wouldn't have thought that the proll would have needed to be 64-bit. is this just a feature of the sparc64 code not getting too much exercise? I'll try somore more tests with earlier versions of Solaris and the sparc32 module. Ben