view sources/targets/i686-virtio/settings @ 1609:19a363f60409

OpenBIOS upgrade in qemu 1.5 broke sparc, by changing reported CPU features. Specify different processor variant on command line to make it work again.
author Rob Landley <rob@landley.net>
date Thu, 04 Jul 2013 07:19:27 -0500
parents e42487e3f745
children
line wrap: on
line source

DESCRIPTION="
Variant of i686 target using virtio and (if possible) kvm (different kernel/emulator config).
"

# Use the i686 base architecture

base_architecture i686

ROOT=vda
CONSOLE=ttyS0

LINUX_CONFIG="
CONFIG_MPENTIUMII=y
CONFIG_ACPI=y

# VIRTIO_CONSOLE not used yet
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_VIRTIO_CONSOLE=y

CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_PARAVIRT_GUEST=y
CONFIG_VIRTIO_BLK=y
CONFIG_KVM_CLOCK=y
CONFIG_KVM_GUEST=y
"

emulator_command()
{
  echo "[ ! -z \"\$HDC\" ] && QEMU_EXTRA=\" -drive file=\$HDC,if=virtio,index=2 \$QEMU_EXTRA\""
  echo "[ ! -z \"\$HDB\" ] && QEMU_EXTRA=\" -drive file=\$HDB,if=virtio,index=1 \$QEMU_EXTRA\""
  echo -n "qemu-system-i386 -nographic -no-reboot -kernel $KERNEL"
  [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio,index=0"
  echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user"
}