On Tue, 6 Aug 2019, BALATON Zoltan wrote:
Therefore it might be easier to first try building OBP natively to see if it produces a working ROM image, but I think this only builds on Solaris so one would need a suitable (virtual) machine for that. Then when one is familiar with how it can be built natively, cross building it on x86 Linux could be attempted taking inspiration of the mips port of OFW that uses QEMU user emulation to run a cross built forth executable (also the version of forth working on Linux might be needed from OFW for this if the one in OBP cannot be built on Linux). (Another way OFW uses for cross building PPC and ARM ports is to include its own CPU simulator that can run enough of the CPU machine code that's needed for building forth with inline assembly so if there's a sparc simulator available that's another way to build it but using QEMU like the mips port does might be simpler in this case.)
I've come across this piece of info:
http://wiki.laptop.org/go/Cross_Compiling_Open_Firmware
which says cross forth for Sparc does exist but I'm not sure where. I could not find it in the openfirmware source. But if so then one should probably ask OFW developers before trying to reimplement cross forth for Sparc to try building OBP and they can likely point to the right direction.
Regards, BALATON Zoltan