I plan to make a post about my efforts if they ever work out on my blog: amigafun.wordpress.com
Okay, so balaton's suggestion of adding -device usb-mouse and -device bochs-display seemed to work as far as mouse movement was concerned. The downside is that in order to capture the mouse movement, I have to only use it within a very small black window that pops up over the linux desktop. if I move the mouse outside that little box, the mouse pointer on the amiga monitor freezes until I get it back within the boundaries of that box.
When it did work, the system was VERY, VERY SLOW. I think this is something found in other threads so I haven't had a chance to read up on their solutions (if there were any).
I also went through so many changes that I'm not sure about making a step-by-step tutorial. I basically used the notes balaton made on this form as well as his Amiga-like OS's webpage with emphasis on the pegasos2 page.
Basics:
- Installed the latest archlinux on my AMD system (choose grub as bootloader)
- Followed VFIO and GPU passthrough tutorials on KSK Royal's YouTube page (turning on virtualization and IOMMU as well)
- Follow how he found the radeon vendor and model ids are added them to grub and regenerated grub bootloder.
_ He used Nvidia card, so I had to change the file /etc/modprobe.d/vfio.conf to use the vendor:model numbers as well as change second line to be `softdep amdgpu pre: vfio vfio-pci
- Had to make a new file in same folder vfio.conf called amdgpu with the only line being the same as the 2nd line of vfio.conf
- arch doesn't regen modprobe changes like ubuntu in his video so had to use one for arch: sudo mkinitcpio -P
- then had to install linux-zen using pacman -Sy linux-zen.
- added `pcie_acs_override=downstream,multifunction vmlinux=zen` to end of grub GRUB_CMDLINE_LINUX_DEFAULT line after vfio additions.
I had to use acs overwrite to break each pcie device into it's own IOMMU group. I had to do this because the 270x card was showing up with several other devices.
The command line was something like this:
sudo qemu-system-ppc -machine pegasos2 -rtc base=localtime \
-serial stdio -cdrom Pegasos2.iso \
-drive media=disk,format=raw,file=amigahd2.img \
-m 2G -kernel bboot -initrd Kickstart.zip \
-device vfio-pci,host=0a:00.0,bus=pci.0,x-vga=on \
-device vfio-pci,host=0a:00.1 \
-vga none -device usb-mouse -device bochs-display
Oh and I used WinUAE (Flowerpot) running AmigaOS4.1fe Classic to log into AmiStore and purchase/download Enhancer 2.2 to get the RadeonHD and RadeonRX chip files to include in the Kickstart.zip file. It was much cheaper buying it there than physical media from a vendor.
Edited by themamboman on 2025/2/23 21:53:36
Reason: Radeon driver mention