On 28/04/11 13:52, Nathan Kunkee wrote:
Ah that will probably be the problem - config/script/switch-arch contains the logic which detects how NATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH and SWAP_ENDIANNESS should be set and adds them to CFLAGS in Makefile.target as appropriate.
OK. I'll start looking to see how to change that for by build environment.
Great - thanks!
Thank you for posting the link. That image does load, which is better than I managed, but somehow isn't seeing my solaris 9 cd or iso. BTW, QEMU crashes nicely when you boot from an empty cd device.
Strange. Can you show us the command line you are using? From your previous email:
nathan@redwall:/usr/local/build/qemu$ sparc-softmmu/qemu-system-sparc -nographic -bios openbios-builtin.elf
You are definitely missing the "-boot d" option to force boot from cdrom, although this is just a guess as you have shown us any error messages :(
Oops; it seemed obvious when I wrote it. The trick is that the cd device is empty, or is full of 0. Running your sparc32 image:
nathan@fangorn:/usr/local/build/qemu$ sparc-softmmu/qemu-system-sparc -nographic -bios openbios-sparc32-mark Configuration device id QEMU version 1 machine id 32 CPUs: 1 x FMI,MB86904 UUID: 00000000-0000-0000-0000-000000000000 Welcome to OpenBIOS v1.0 built on Apr 27 2011 19:13 Type 'help' for detailed information Trying disk... No valid state has been set by load or init-program
0 > boot cdrom: Unhandled Exception 0x0000002a PC = 0xffd1101c NPC = 0xffd11020 Stopping execution
But you're still missing "-boot d" on the command line so it won't default to the cdrom. If you want to boot from the cdrom using the OpenBIOS command line manually, you also need to give the slice (d) and so the command you need is: