Skip to contentSkip to conversation

work needed to get solaris to boot under qemu-system-sparc

Qemu-devel Ben Taylor 2 participants 2 messages May 25, 2006

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

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.

Ben

#1 lore raw
Quoted 13 lines · Ben Taylor

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.

Quoted 1 line

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.

http://www.openbios.org/ indicates there is a qemu/sparc port in progress.

Paul