QEMU 1.4.0 fails to boot sparc64 linux image

Bug #1131757 reported by Kirill Tkhai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

Hi!

I tried to boot sparc64 linux image (http://packages.debian.org/sid/sparc64/linux-image-2.6-sparc64-smp/download) with qemu and received the error.

host:~$qemu-system-sparc64 -nographic -kernel vmlinuz-3.2.0-4-sparc64-smp
OpenBIOS for Sparc64
Configuration device id QEMU version tion device id QEMUkernel addr n device id QEMUkernel cmdline
CPUs: cmdline
 x SUNW,UltraSPARC-IIi
UUID: 00UltraSPARC-IIi
Welcome to OpenBIOS v1.0 built on Aug 19 2012 13:06
  Type 'help' for detailed information
[sparc64] Kernel already loaded
Unhandled Exception 0x0000000000000020
PC = 0x0000000000404000 NPC = 0x0000000000404004
Stopping execution

Also, I tried to follow instruction from Artyom Tarasenko blog (http://tyom.blogspot.ru/2012/05/booting-linuxsparc64-on-todays-openbios.html), but it's still impossible to boot linux.

Regards,
Kirill

Tags: linux sparc64
Revision history for this message
Michael Roth (mdroth) wrote : Re: [Qemu-devel] [Bug 1131757] [NEW] QEMU 1.4.0 fails to boot sparc64 linux image
Download full text (4.0 KiB)

On Fri, Feb 22, 2013 at 02:33:43PM -0000, Kirill Tkhai wrote:
> Public bug reported:
>
> Hi!
>
> I tried to boot sparc64 linux image
> (http://packages.debian.org/sid/sparc64/linux-
> image-2.6-sparc64-smp/download) with qemu and received the error.
>
> host:~$qemu-system-sparc64 -nographic -kernel vmlinuz-3.2.0-4-sparc64-smp
> OpenBIOS for Sparc64
> Configuration device id QEMU version tion device id QEMUkernel addr n device id QEMUkernel cmdline
> CPUs: cmdline
> x SUNW,UltraSPARC-IIi
> UUID: 00UltraSPARC-IIi
> Welcome to OpenBIOS v1.0 built on Aug 19 2012 13:06
> Type 'help' for detailed information
> [sparc64] Kernel already loaded
> Unhandled Exception 0x0000000000000020
> PC = 0x0000000000404000 NPC = 0x0000000000404004
> Stopping execution
>
> Also, I tried to follow instruction from Artyom Tarasenko blog
> (http://tyom.blogspot.ru/2012/05/booting-linuxsparc64-on-todays-
> openbios.html), but it's still impossible to boot linux.

I don't see any change in behavior from 1.3.0 (haven't looked back
further). It appears to be attempting to boot garbage after the initial
load. From the blog you mentioned you can prevent this with the
-prom-env 'auto-boot?=false' option, which seems to work for me on both
1.3.0 and 1.4.0:

mdroth@loki:~/w/qemu-build2$ sparc64-softmmu/qemu-system-sparc64 -kernel
~/w/qemu-test-images/sparc/sparc-test/vmlinux-2.6.11+tcx -prom-env
'auto-boot?=false' -L pc-bios/ -nographic
OpenBIOS for Sparc64
Configuration device id QEMU version 1 machine id 0
kernel addr 404000 size b3d3d5
kernel cmdline
CPUs: 1 x SUNW,UltraSPARC-IIi
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.0 built on Aug 19 2012 13:06
  Type 'help' for detailed information

  0 >

Can you test with a full boot using an image/initrd? I'd point you to the
one at http://wiki.qemu.org/Testing but I've never managed to get it to
work:

sparc64-softmmu/qemu-system-sparc64 -kernel
~/w/qemu-test-images/sparc/sparc-test/vmlinux-2.6.11+tcx -initrd
~/w/qemu-test-images/sparc/sparc-test/linux.img -append "root=/dev/ram
console=ttyS0 video=tcxfb:off" -L pc-bios/ -nographic -m 16M
rom: requested regions overlap (rom
/home/mdroth/w/qemu-test-images/sparc/sparc-test/linux.img.
free=0x000001fff01b5fa0, addr=0x000001fff0000000)
rom loading failed

sparc-softmmu/qemu-system-sparc -kernel
~/w/qemu-test-images/sparc/sparc-test/vmlinux-2.6.11+tcx -hda
~/w/qemu-test-images/sparc/sparc-test/linux.img -append "root=/dev/ram
console=ttyS0 video=tcxfb:off" -L pc-bios/ -nographic -m 16M
Unhandled Exception 0x00000029
PC = 0xffd07470 NPC = 0xffd07474
Stopping execution

Would be great if you had another you could add to the wiki.

>
> Regards,
> Kirill
>
> ** Affects: qemu
> Importance: Undecided
> Status: New
>
>
> ** Tags: linux sparc64
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1131757
>
> Title:
> QEMU 1.4.0 fails to boot sparc64 linux image
>
> Status in QEMU:
> New
>
> Bug description:
> Hi!
>
> I tried to boot sparc64 linux image
> (http://packages.debian.org/sid/sparc64/linux-
> image-2.6-sparc64-smp/...

Read more...

Revision history for this message
Kirill Tkhai (tkhai) wrote :

During testing of test image on sparc32 I found out that it is uncompressed.

I tried to make the same for sparc64 and the kernel works. Everything is ok.

Thank you for the answer, Michael!

Regards,
Kirill

Revision history for this message
Thomas Huth (th-huth) wrote :

Comment #2 sounds like the issue has been resolved? Or is there something left to do here?

Changed in qemu:
status: New → Incomplete
Thomas Huth (th-huth)
Changed in qemu:
status: Incomplete → Invalid
Thomas Huth (th-huth)
information type: Public → Private
Thomas Huth (th-huth)
information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.