Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
17 user(s) are online (12 user(s) are browsing Forums)

Members: 1
Guests: 16

jabirulo, more...

Support us!

Headlines

Forum Index


Board index » All Posts (themamboman)




Re: QEMU GPU-PCIe AmigaONE
Just popping in
Just popping in


For anyone else that is looking to try this with AmigaOne version of AOS4.1Fe, I just saw the Alinea is apparently stocking it again. I was able to order it today. I have the same card that smarkusg used so I hope this will be the magic ticket to full emulation with a real GPU.

Go to top


Re: QEMU GPU-PCIe AmigaONE
Just popping in
Just popping in


I had a response from Alinea, they are out of stock on AmigaOne version of OS4.1fe, so I'm just waiting for them to get more from Hyperion. I have the impression that these are low-volume sales, so they may wait until they get enough before ordering another round of disc to be made. (So wish we could buy digitally).

Go to top


Re: QEMU GPU-PCIe AmigaONE
Just popping in
Just popping in


@smarkusg

Thanks, I'll email them. I didn't think about the tariff war going on. I wonder if they could just email the code for the one I buy and I download directly without getting the physical copy.

Go to top


Re: QEMU GPU-PCIe AmigaONE
Just popping in
Just popping in


So far, only seeing Alinea and Amedia-computers show having the AmigaOne version in stock. However, Alinea says it doesn't have the quantity I want (jus 1), and Amedia says no carrier to deliver to that address (I used 2 different addresses in 2 different states.

I've purchased copies for Amiga Classic, Pegasos2 and Sam460. I think it's crazy that there have to different versions for each. I'm guessing it just a bootloader difference.

If anyone knows what the differences are or where to find one that ships to the US, I would be very appreciative. I'm considering trying the same gpu (Asus HD 7750) that smarkusg was using for his test but with the pegasos2 to see if that works better than the r9 270x and 2 different RX 580s I've tried.

Go to top


Re: QEMU GPU-PCIe AmigaONE
Just popping in
Just popping in


Does anyone know of a retailer that is currently selling the AmigaOne version of AmigaOS4.1fe?

The Alinea shop seems to have it then says it can't be shipped in the quantity selected (which is just 1 in my case). Acube lists it as out of stock.

Any ideas? Shipping to USA

Go to top


Re: VFIO passthrough results
Just popping in
Just popping in


Does anyone know if the QEMU vfio passthrough works with the SAM460 version machine version and the OS4.1FE for SAM?

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


@joerg

Quote:

What @white has to fix are the iommu groups, the Radeon gfx card has to be in a separate group with nothing else (required by the host) in it.
The easiest, and maybe only, option is trying to use a different PCIe slot for the Radeon gfx card.


Swapping PCI slots is one way. The other is to use ACS-overwrite. This requires both a new kernel and some lines in the grub boot. I don't have the link handy that tells how to do that, butas for the ACS overwrite/patch, you just need ot install linux-zen as the kernel (I think I did that on arch linux using pacman -Sy linux-zen or similar... can be found online). Think it is similar on ubuntu-based systems.

After that, and reboot, etc, you will see only a single pci device per IOMMU group (you will have many groups). You can then just make a '-device ' entry in the qemu command line for just the video part and not bother with the audio if you don't want.

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


@white

Quote:

It would be useful to know if you only use Radeon cards with SDL and GTK or also NVidia cards.
But I guess answers are not your strong point
It takes too much effort probably.


My only nVidia card isn't available to use for this project. I did try SDL and GTK and it was very snappy. However, my goal isn't just to run qemu emulation but to have a real Radeon card so that I can run things like CANDI and games just for the novelty.

Insulting me for not having time to catch up on forums posts isn't helpful. I'll post my qemu command line soon.

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


.

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


Sorry for silence. Been super busy on other projects.
So, the suggestion for using bochs-display to be fullscreen to capture mouse worked. At the same time, I noticed my mouse was way more responsive. However, installation of AmigaOS was still very slow. In fact, I didn't get to finish it, I gave up since it was taking so long.

I did swap to another RX 580 that I had (MSI brand), so I'm not sure if this contributed to the better/speedier mouse response. I will try again with a preinstalled Amiga OS4.1FE harddrive image.

I tried SDL and GTK and they were great. I personally am not trying to get the super-fast emulation, I just want to be able to use Warp3D Nova and the CANDI wallpaper apps that need real hardware. I'm also considering an older card like HD 7750 or so to see if those work.

I'll put in my results when that happens.

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


@balaton

Just tried using the bboot.fth script.

I had to use rdbtool to create a new disk image and copy over the files to the new drive in order to get the pegasos2.rom bios to see them: (modified slightly from your pegasos2 subpage

rdbtool amigahd3.img create size=1Gi init add size=32MiB name=BOOT
xdftool amigahd3
.img open part=BOOT format Boot ffs+intl
xdftool amigahd3
.img open part=BOOT write amigaboot.of
xdftool amigahd3
.img open part=BOOT write bootloader_prepare
xdftool amigahd3
.img open part=BOOT write bootloader_setup
xdftool amigahd3
.img open part=BOOT write Kickstart Kickstart
xdftool amigahd3
.img open part=BOOT write Kickstart.zip


when it got to the point I could manually enter commands:

boot hd:0 bboot.fth


(Doing this without the vfio passthrough parts, and only using -device sm501, it booted okay (just no external graphics.

Switching by removing the sm501 and inserting the vfio devices:
-device vfio-pci,host=0a:00.0,bus=pci.0,x-vga=on


I never get the opportunity to enter the boot command. Here is the output:

SmartFirmware:
cpu0PowerPC,74x7 CPUClock 1533 Mhz BUSClock 133 Mhz (Version 0x8002,0x0102)
no/bad nvramrc performing default startup script
channel 0 unit 0 
:   ata QEMU HARDDISK                            2.5+    
ATA device not present or not responding
channel 1 unit 0 
atapi QEMU DVD-ROM                             2.5+    
ATA device not present or not responding
OUTSIDE 32BIT DIVIDE
OUTSIDE 32BIT DIVIDE
OUTSIDE 32BIT DIVIDE
INTERNAL ERROR
0000000E=UNIMPLEMENTED EXTENDED OPCODE

EAX
=0000 EBX=0000 ECX=0000 EDX=0000 ESP=0000 EBP=5555 ESI=6666 EDI=7777
 AX
=0008  BX=0004  CX=7530  DX=000C  SP=FFC8  BP=FF9E  SI=0008  DI=9924
 DS
=C000  ES=BAD0  SS=1000  CS=C000  IP=2B6A   NV UP -- PL NZ NA PO NC
CS
:IP 0F  
STACK
: 0008 0008 11FF 0004 1271 06F6 02FC 0000 
  00
FE00 F000 FE01 F000 FE02 F000 FE03 F000 
  10
FE04 F000 FE05 F000 FE06 F000 FE07 F000 
  20
FE08 F000 FE09 F000 FE0A F000 FE0B F000 
  30
FE0C F000 FE0D F000 FE0E F000 FE0F F000 
  40
FE10 F000 FE11 F000 FE12 F000 FE13 F000 
  50
FE14 F000 FE15 F000 FE16 F000 FE17 F000 
  60
FE18 F000 FE19 F000 FE1A F000 FE1B F000 
  70
FE1C F000 FE1D F000 FE1E F000 FE1F F000 
  80
FE20 F000 FE21 F000 FE22 F000 FE23 F000 
  90
FE24 F000 FE25 F000 FE26 F000 FE27 F000 
  A0
FE28 F000 FE29 F000 FE2A F000 FE2B F000 
  B0
FE2C F000 FE2D F000 FE2E F000 FE2F F000 
  C0
FE30 F000 FE31 F000 FE32 F000 FE33 F000 
  D0
FE34 F000 FE35 F000 FE36 F000 FE37 F000 
  E0
FE38 F000 FE39 F000 FE3A F000 FE3B F000 
  F0
FE3C F000 FE3D F000 FE3E F000 FE3F F000 
  00
FE40 F000 FE41 F000 FE42 F000 FE43 F000 
  10
FE44 F000 FE45 F000 FE46 F000 FE47 F000 
  20
FE48 F000 FE49 F000 FE4A F000 FE4B F000 
  30
FE4C F000 FE4D F000 FE4E F000 FE4F F000 
Failed to emulate CS
:IP [C000:2B6A]=0F,BC,D8,8D,36,77
UNHANDLED INT 10 
FUNCTION 0100 WITHIN EMULATION
EA
BYTE READ FROM UNINITIALIZED LOW MEM 0040:0085
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
entering main read
/eval loop...
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


@white
The tests that did show the screen open were with the XFX RX 580. I have yet to get the Sapphire R9 270X to do anything other than reboot my computer when I launch qemu. It's on the latest firmware as well.

@balaton
I realized that I needed to get Enhancer and AmiStore had it less expensive and I was on my Windows side so I just launched AmigaOS4.1 in WinUAE since I had that set up.

I then copied the files out to USB, rebooted to Linux, copied them out, and rebuilt Kickstart.zip with them in place. Just a convenience thing.

Thanks for the suggestions on using pegasos2.rom. I'll try that next. I thought I had tried it and ran into an issue. I'll update. Thanks for all the help!

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


I have also noticed that I can only run the qemu command a few times before I get this error:

qemu-system-ppc: ../qemu-9.2.0/hw/pci/pcie.c:1024: pcie_find_capability_list: Assertion `next <= PCIE_CONFIG_SPACE_SIZE - 8' failed.

Only rebooting the computer will allow it to work again.

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


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
Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in



Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


The system I'm using has a Ryzen 5 5600x, and two GPUs:

XFX Radeon RX 580
Sapphire Radeon R9 270X

I installed ArchLinux to use Qemu 9.2.0 and set up GPU passthrough with VFIO. While trying to get the passthrough working, I wanted to use R9 270x with Amiga side. The R9 270x video and audio components were tied up in IOMMU groups with other devices and QEMU didn't like that, so I then implemented ACS write patch to break out each device into its own group (using linux-zen kernel).

I never got it to work, so I swapped to using the RX580 (by changing the vfio ids in the grub line, running mkinitcpio again) and I was able to finally see the Amiga boot on it's own monitor, but now the mouse is frozen in the upper left. I tried the bochs-display to capture mouse events but there was an error ... can't reproduce it now but mouse still frozen. Will next try to pass through a specific mouse device on the command line.

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


Another update: Decided to swap from the R9 270X to the RX 580, swapped back to bboot and Kickstart.zip instead of pegasos2.rom.

I can now see the AmigaOS4.1fe installer fullscreen on my other monitor. But the mouse isn't moving. Getting closer.

Anyone else have a frozen mouse on a fullscreen AmigaOS4.1 workbench via qemu?

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


Made some progress. The filesystem was complaining about the blank disk image I'd created. Using the instruction on this page (http://zero.eik.bme.hu/~balaton/qemu/amiga/aos_pegasos2.html), where I used rdbtool (from amitools), to create the harddrive layout, and manually copy the amigabool.of and other files to it, I'm able to then get to a prompt and do:

boot hd:0 amigaboot.of and it works fine

then, I add back in the vfio devices for the isolated gpu, and remove sm501 and I'm getting complaints about something else. I see errors and no prompt:


SmartFirmware:
cpu0: PowerPC,74x7 CPUClock 1533 Mhz BUSClock 133 Mhz (Version 0x8002,0x0102)
no/bad nvramrc - performing default startup script
channel 0 unit 0 : ata | QEMU HARDDISK | 2.5+
ATA device not present or not responding
channel 1 unit 0 : atapi | QEMU DVD-ROM | 2.5+
ATA device not present or not responding
INTERNAL ERROR: 0000000E=UNIMPLEMENTED EXTENDED OPCODE

EAX=0000 EBX=0000 ECX=0000 EDX=0000 ESP=0000 EBP=5555 ESI=6666 EDI=7777
AX=0008 BX=0004 CX=3A98 DX=000F SP=FFC8 BP=FFB6 SI=0008 DI=A298
DS=C000 ES=BAD0 SS=1000 CS=C000 IP=3288 NV UP -- PL NZ NA PO NC
CS:IP = 0F
STACK: 0008 0008 15B9 0004 162B 07F2 02B7 0000
00: FE00 F000 FE01 F000 FE02 F000 FE03 F000
10: FE04 F000 FE05 F000 FE06 F000 FE07 F000
20: FE08 F000 FE09 F000 FE0A F000 FE0B F000
30: FE0C F000 FE0D F000 FE0E F000 FE0F F000
40: FE10 F000 FE11 F000 FE12 F000 FE13 F000
50: FE14 F000 FE15 F000 FE16 F000 FE17 F000
60: FE18 F000 FE19 F000 FE1A F000 FE1B F000
70: FE1C F000 FE1D F000 FE1E F000 FE1F F000
80: FE20 F000 FE21 F000 FE22 F000 FE23 F000
90: FE24 F000 FE25 F000 FE26 F000 FE27 F000
A0: FE28 F000 FE29 F000 FE2A F000 FE2B F000
B0: FE2C F000 FE2D F000 FE2E F000 FE2F F000
C0: FE30 F000 FE31 F000 FE32 F000 FE33 F000
D0: FE34 F000 FE35 F000 FE36 F000 FE37 F000
E0: FE38 F000 FE39 F000 FE3A F000 FE3B F000
F0: FE3C F000 FE3D F000 FE3E F000 FE3F F000
00: FE40 F000 FE41 F000 FE42 F000 FE43 F000
10: FE44 F000 FE45 F000 FE46 F000 FE47 F000
20: FE48 F000 FE49 F000 FE4A F000 FE4B F000
30: FE4C F000 FE4D F000 FE4E F000 FE4F F000
Failed to emulate CS:IP [C000:3288]=0F,BC,D8,8D,36,95
UNHANDLED INT 10 FUNCTION 0100 WITHIN EMULATION
EA: BYTE READ FROM UNINITIALIZED LOW MEM 0040:0085
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION
entering main read/eval loop...
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 FUNCTION 1301 WITHIN EMULATION


IOMMU Group 24:
    
04:00.0 VGA compatible controller [0300]: Advanced Micro DevicesInc. [AMD/ATICuracao XT Trinidad XT [Radeon R7 370 R9 270X/370X] [1002:6810]
IOMMU Group 25:
    
04:00.1 Audio device [0403]: Advanced Micro DevicesInc. [AMD/ATIOland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series] [1002:aab0]


sudo qemu-system-ppc -machine pegasos2 -bios pegasos2.rom -rtc base=localtime -serial stdio -device vfio-pci,x-vga=on,host=04:00.0 -device vfio-pci,host=04:00.1  -vga none -drive media=disk,format=raw,file=amigahd2.img -cdrom Pegasos2.iso

Go to top


Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


@balaton

I've seen the command in the bboot readme about booting manually from Smartfirmware by using the command `boot hd:0 bboot.fth`.

I've copied that fth file to the same directory as the other files, I boot using the -bios pegasos2.rom file and when I try the command to boot using bboot.fth, I see this "filesystem not supported:


Welcome to SmartFirmware(tm) for bplan Pegasos2 version 1.1 (20040405172512)
SmartFirmware(tm) Copyright 1996-2001 by CodeGen, Inc.
All Rights Reserved.
Pegasos BIOS Extensions Copyright 2001-2003 by bplan GmbH.
All Rights Reserved.
entering main read/eval loop...
ok boot hd:0 bboot.fth
error: filesystem not supported
ok


Any ideas what it is complaining about?

thanks!

Go to top


Re: Amistore launch day today. Any signs?
Just popping in
Just popping in


Early versions of AMIStore are looking good. Here's one of several favorable reviews:

https://amigafun.wordpress.com/2014/11 ... e-review-part-1-amistore/

Go to top



TopTop
(1) 2 »




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project