[rescue] CD ISO, SunOS 4.1.4 & Qemu SS-5

Michael Parson mparson at bl.org
Wed Nov 18 21:39:12 CST 2020

On Wed, 18 Nov 2020, William Barnett-Lewis wrote:

> So for my latest adventure in emulation, I'm playing with SunOS 4.1.4 on a
> SparcStation 5. I have it set up with 256 mb ram, a 2 gb disk image and cg3
> for graphics.
> I'm doing 4.1.4 just because it was the last of the bsd based versions and
> I never got to use it professionally (we didn't shift from DG/UX for our
> database server till 2000) .
> OpenWindows runs great.
> Now I'd like to bring a few things to get running (emacs, cmucl, gzip,
> perhaps even netscrape if I get the networking working properly) I made a
> cdrom iso with the files on it.
> I am using the following command line: qemu-system-sparc.exe -L bios -bios
> ss5.bin -m 256M -vga cg3 -M SS-5 -hda .\sunos414.img -cdrom
> .\sunos4apps.iso to start qemu.
> boot disk0:
> I do not see any mention os sr0 in the startup messages or looking in
> dmesg,
> I use mount in the form of /etc/mount -r -t hsfs /dev/sr0 /cdrom and get
> the following errors:
> mount_hsfs: /dev/sr0 on cdrom: no such device or address
> mount: giving up on:
> /cdrom
> both block and character devices are in /dev/sr0 and /dev/rsr0 as is the
> /cdrom mount point.
> Not sure if I am missing something on the SunOS side or on the Qemu side. I
> thought I'd ask here before trying to find a good place to ask the qemu
> community.

Sparcs were fiddly sysmtems with where things were expected to be on the
SCSI bus.  ID3 was the default root drive, ID6 is where SunOS expects
the CDROM.  Starting qemu with your string puts the CDROM on ID2.

Instead of '-cdrom' try '-drive file=sunos4apps.iso,if=scsi,index=6,media=cdrom'

And mount it with 'mount -t hsfs -o ro /dev/sr0 /cdrom'

Otherwise, you'll have to recompile the SunOS kernel to look for the
CDROM on a different SCSI ID.

Michael Parson
Pflugerville, TX

More information about the rescue mailing list