SPARC Barebones boots on OpenBIOS but not on real SS5 FW

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
seal331
Posts: 1
Joined: Fri Apr 15, 2022 2:29 pm
Freenode IRC: seal331

SPARC Barebones boots on OpenBIOS but not on real SS5 FW

Post 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?
thewrongchristian
Member
Member
Posts: 406
Joined: Tue Apr 03, 2018 2:44 am

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

Post 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
Post Reply