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?
SPARC Barebones boots on OpenBIOS but not on real SS5 FW
-
- Member
- Posts: 426
- Joined: Tue Apr 03, 2018 2:44 am
Re: SPARC Barebones boots on OpenBIOS but not on real SS5 FW
Quoting that page: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?
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.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.
https://www.netbsd.org/docs/network/netboot/intro.sun.html