cmd.add("-drive");
cmd.add("file=" + property.getConfiguration().getBaseInformation().getDiskImage().getSwapDiskImage().getValue() + ",if=virtio,index=2");
}
- } else { // ARM part of cmd
- if (path == null || path.isEmpty()) {
- cmd.add(fio.getBinPath() + File.separator + binary);
- } else {
- this.binPath = path;
- cmd.add(binPath + File.separator + binary);
+
+ /* append HW virtualization option if supports */
+ if (hwVirtualization != null) {
+ cmd.add(hwVirtualization);
}
- cmd.add("--skin-args");
- cmd.add("width=" + width);
- cmd.add("height=" + height);
- if (skinPath != null) {
- cmd.add("skin.path=" + skinPath);
+ // add hw gl acceleration
+ if (property.getConfiguration().getUsability().isHwGLAcceleration()) {
+ cmd.add("-enable-gl");
}
- cmd.add("--qemu-args");
+ } else { // ARM part of cmd
cmd.add("-drive");
- //cmd.add("file=" + EmulatorVMs.getInstance().getVMsBaseDirectory() + File.separator + property.getArch().toString() + File.separator + property.getName() + File.separator +"emulimg-" + property.getName() + ".x86,if=virtio");
- cmd.add("file=" + property.getConfiguration().getBaseInformation().getDiskImage().getCurrentDiskImage().getValue()+ ",id=virtio-blk");
+ cmd.add("file=" + property.getConfiguration().getBaseInformation().getDiskImage().getCurrentDiskImage().getValue()+ ",id=virtio-blk,if=none");
cmd.add( "-device");
- cmd.add("virtio-blk,drive=virtio-blk");
+ cmd.add("virtio-blk,drive=virtio-blk,transport=virtio-mmio.0");
cmd.add("-netdev");
cmd.add("user,id=virtio-net");
cmd.add("-device");
- cmd.add("virtio-net,netdev=virtio-net");
+ cmd.add("virtio-net,netdev=virtio-net,transport=virtio-mmio.1");
cmd.add("-append");
- cmd.add("console=ttySAC2,115200 video=s3cfb:"
+ cmd.add("yagl= 0 console=ttySAC2,115200 video=s3cfb:"
+ width
+ "x"
+ height
cmd.add("-soundhw");
cmd.add("all");
cmd.add("-usb");
- cmd.add("-device");
- cmd.add("virtio-touchscreen-pci");
+ cmd.add("-usbdevice");
+ cmd.add("maru-touchscreen");
cmd.add("-kernel");
cmd.add(fio.getKernelPath() + File.separator+ "bzImage." + property.getArch().toString());
}
- /* append HW virtualization option if supports */
- if (hwVirtualization != null) {
- cmd.add(hwVirtualization);
- }
-
- // add hw gl acceleration
- if (property.getConfiguration().getUsability().isHwGLAcceleration()) {
- cmd.add("-enable-gl");
- }
-
//if (EmulatorManager.getInstance().getManagerMode().equals(ManagerModeType.INHOUSE_MODE)) {
TouchType touchType = property.getConfiguration().getDevice().getTouch();
if (touchType != null) {