Page 1 of 1

SPARC Barebones boots on OpenBIOS but not on real SS5 FW

Posted: Fri Apr 15, 2022 2:49 pm
by seal331
Hello.

Recently I was following this tutorial (https://wiki.osdev.org/Sparc_Barebones) and successfully managed to compile and run the code on QEMU's OpenBIOS.

Homever, when I tried to boot it on the same QEMU version but using SS5 firmware which is known to work (tested with Solaris 1.1.2/SunOS 4.1.4), it instead throws a bad magic number in disk label error.

After fixing it (adding "-B ..." to the mkisofs call), it now throws an "Instruction Access Exception" which I have no idea how to fix.

Anybody mind helping me?

Re: SPARC Barebones boots on OpenBIOS but not on real SS5 FW

Posted: Wed Apr 20, 2022 4:44 am
by thewrongchristian
seal331 wrote:Hello.

Recently I was following this tutorial (https://wiki.osdev.org/Sparc_Barebones) and successfully managed to compile and run the code on QEMU's OpenBIOS.

Homever, when I tried to boot it on the same QEMU version but using SS5 firmware which is known to work (tested with Solaris 1.1.2/SunOS 4.1.4), it instead throws a bad magic number in disk label error.

After fixing it (adding "-B ..." to the mkisofs call), it now throws an "Instruction Access Exception" which I have no idea how to fix.

Anybody mind helping me?
Quoting that page:
The following code will provide you a running start on SPARC, but it is one big hack, it has not been written with extension in mind, and neither has it been tested on real hardware.
My only suggestion would be to netboot using perhaps the NetBSD bootloader. The NetBSD bootloader can handle the nitty gritty of loading your kernel, which can be an ELF kernel, over NFS. So you can do build/reboot/debug cycles on your host machine which can also be your boot server, delivering the kernel to load using tftp/NFS.

https://www.netbsd.org/docs/network/netboot/intro.sun.html