On Sat, May 30, 2020 at 09:29:36AM +0100, Mark Cave-Ayland wrote: > On 29/05/2020 23:56, Jason A. Donenfeld wrote: > > > Oh that's a nice observation about `boot disk -V`. Doing so actually > > got me booting up entirely: > > > > $ qemu-img convert -O qcow2 miniroot66.fs disk.qcow2 > > $ qemu-img resize disk.qcow2 20G > > $ qemu-system-sparc64 -m 1024 -drive file=disk.qcow2,if=ide -net > > nic,model=ne2k_pci -net user -boot a -nographic -monitor none -serial > > stdio > > I think the problem here is that you're asking OpenBIOS to boot from the > (empty) > floppy disk with "-boot a" rather than the qcow2 image which is normally > attached to > the first hard disk "-boot c". As this is the default, then I would expect the > command line above to work if you simply drop "-boot a". > > Also is there a particular reason for using the ne2k_pci NIC instead of the > default > in-built sunhme device? I try and keep the documentation at > https://wiki.qemu.org/Documentation/Platforms/SPARC as accurate as I can, so > do look > there for latest best practices and command line examples. > > Finally the version of qemu-system-sparc64 you are running can also boot from > a > virtio-blk-pci device (again see the above wiki page for details) if you are > looking > for the best emulated disk performance. > > > ATB, > > Mark.
Hi, thanks for the hints, but an unpatched 6.7 miniroot still fails to boot for me qemu-system-sparc64 -machine sun4u -m 1024 -drive \ file=miniroot67.img,format=raw -nographic -serial stdio -monitor none OpenBIOS for Sparc64 Configuration device id QEMU version 1 machine id 0 kernel cmdline CPUs: 1 x SUNW,UltraSPARC-IIi UUID: 00000000-0000-0000-0000-000000000000 Welcome to OpenBIOS v1.1 built on Oct 28 2019 17:08 Type 'help' for detailed information Trying disk:a... Not a bootable ELF image Not a bootable a.out image Loading FCode image... Loaded 6882 bytes entry point is 0x4000 Evaluating FCode... OpenBSD IEEE 1275 Bootblock 2.0 .. And then hangs While the patched bootblocks do boot (but hang later after scsibus1 at softraid0: 256 targets as before, -Otto