Skip to content

Instantly share code, notes, and snippets.

@cjac
Created March 17, 2020 00:00
Show Gist options
  • Save cjac/a2bde442f5eed2c08dc97c6ea72ef323 to your computer and use it in GitHub Desktop.
Save cjac/a2bde442f5eed2c08dc97c6ea72ef323 to your computer and use it in GitHub Desktop.
cjac@moon:~$ cat ~/bin/launch-solaris.sh && ~/bin/launch-solaris.sh
#!/bin/bash
ROOT_DISK=/dev/vg00/solaris-sun4v
ISO=/var/lib/libvirt/images/sol-11_3-text-sparc.iso
FIRMWARE=~/tmp/opensparc/T1/S10image/
BIOS=~/tmp/openbios/openbios-1.1/obj-sparc64/openbios-builtin.elf
# sudo mount -o loop ${ISO} /mnt/tmp
# qemu-system-sparc64 -M sun4m \
# -nographic \
# -m 8192 \
# -drive file=${ROOT_DISK},if=scsi,bus=0,unit=0,media=disk,format=raw \
# -drive file=${ISO},format=raw,if=ide,bus=1,unit=0,media=cdrom,readonly=on \
# -boot d
# sudo qemu-system-sparc64 -M sun4u \
# -nographic \
# -m 1024 \
# -drive file=${ROOT_DISK},if=none,id=hd,format=raw \
# -drive file=${ISO},format=raw,if=ide,bus=1,unit=0,media=cdrom,readonly=on \
# -net nic,model=sunhme \
# -boot d
# -bios ${BIOS} \
sudo qemu-system-sparc64 -M niagara \
-nographic \
-L ${FIRMWARE} \
-m 1024 \
-drive file=${ROOT_DISK},if=none,id=hd,format=raw \
-drive file=${ISO},format=raw,if=pflash,readonly=on \
-net nic \
-boot d
#qemu-system-sparc64 -M niagara \
# -L /path-to/S10image/ -nographic -m 256 -drive if=pflash,readonly=on,file=/S10image/disk.s10hw2
qemu-system-sparc64: warning: hub port hub0port0 has no peer
qemu-system-sparc64: warning: netdev hub0port0 has no peer
qemu-system-sparc64: warning: requested NIC (anonymous, model unspecified) was not created (not supported by this machine?)
cpu Probing I/O buses
Sun Fire T2000, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.20.0, 256 MB memory available, Serial #1122867.
[mo23723 obp4.20.0 #0]
Ethernet address 0:80:3:de:ad:3, Host ID: 80112233.
ok boot
Boot device: vdisk File and args:
hsfs-file-system
Loading: /platform/sun4v/boot_archive
Insufficient physical memory
The file just loaded does not appear to be executable.
ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment