Qemu

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Qemu

Post by xeno74 »

Lubuntu 14.04 in a virtual QEMU PowerPC machine with KVM-PR:

Code: Select all

qemu-system-ppc -M mac99 -enable-kvm -m 2047 -boot c -hda Lubuntu_14.04_PowerPC_QEMU.img -g 1280x1024x32 -kernel vmlinux -initrd initrd -append "ro root=/dev/sda3" -device usb-mouse -nic user,model=e1000
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Qemu

Post by xeno74 »

Lubuntu 14.04 in a virtual G3 Beige QEMU machine with KVM-PR:

Image

QEMU command:

Code: Select all

qemu-system-ppc -M g3beige -enable-kvm -m 2047 -bios /home/amigaone/Lubuntu_14.04_PowerPC_QEMU/openbios-ppc -boot c -hda /home/amigaone/Lubuntu_14.04_PowerPC_QEMU/Lubuntu_14.04_PowerPC_QEMU.img -g 1280x1024x32 -kernel /home/amigaone/Lubuntu_14.04_PowerPC_QEMU/vmlinux -initrd /home/amigaone/Lubuntu_14.04_PowerPC_QEMU/initrd -append "ro root=/dev/sda3" -device pci-ohci,id=newusb -device usb-tablet -nic user,model=e1000
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Qemu

Post by xeno74 »

Usually we use a VirtIO GPU for our QEMU machines. (-device virtio-gpu-pci)

There is another possibility.

The Bochs VGA.

QEMU argument: -device VGA,vgamem_mb=256


Please note: If you want to use a higher resolution then please delete the xorg conf file with the fbdev entry and login again.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Qemu

Post by xeno74 »

If you have wrong colors in the virtual display then try -display sdl.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Qemu

Post by xeno74 »

Adding an IDE drive:

Code: Select all

-drive id=disk,file=disk.qcow2,format=qcow2,if=none -device ahci,id=ahci -device ide-cf,drive=disk,bus=ahci.0
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 645
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Qemu

Post by Hypex »

Can it boot a ppc64le Linux image? :P
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Qemu

Post by xeno74 »

Hypex wrote: Fri Aug 11, 2023 8:13 pm Can it boot a ppc64le Linux image? :P
I haven’t tested it yet.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 645
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Qemu

Post by Hypex »

Want to try one of these ppc64el images with my loader. But I need to add a LE ELF loader to do that. Could cheat and see if enabling LE in MSR before and after loading works but that seems dirty. By the looks of it the kernel brings up in BE mode. deals with the device tree, then starts and switches endian to LE when it really starts. I'll test a standard image and if it loads (then crashes eventually) I'll look into compiling an LE kernel. :D
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Qemu

Post by xeno74 »

Convert an img to a vmdk for VMware:

Code: Select all

qemu-img convert fienix_6.0.1-noboot-r1.img -O vmdk fienix_6.0.1-noboot-r1.vmdk
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply