Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
19 user(s) are online (15 user(s) are browsing Forums)

Members: 0
Guests: 19

more...

Support us!

Headlines

Forum Index


Board index » All Posts (balaton)




Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Quite a regular
Quite a regular


@joerg
I think native code execution is not too useful. More useful would be getting virtio drivers for disk and network at least to remove some emulation overhead in those. (Although for network it may not matter much due to limited TCP/IP stack and not sure how much it would help disk but may worth a try.)
I don't know how this native code works on the systems you mentioned by I guess it would need kernel support which is not present in AmigaOS4 so it would not work anyway.

Go to top


Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Quite a regular
Quite a regular


@smarkusg
AmithlonNG? If you start with a minimal Linux distro/live CD that fits on a few megabytes you can have most of the machine for AmigaOS.


Edited by balaton on 2025/4/17 19:34:21
Go to top


Re: X5000 reboot loop
Quite a regular
Quite a regular


@Maijestro
Interrupt endpoint reminds me of USB and this error appears in U-Boot's ehci driver so maybe try disconnecting USB devices, one of them may be causing problems or there's something with the USB setup of the machine?

Go to top


Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


@white
You don't need to install any via-ac97 driver as it comes with AmigaOS 4.1 FE so you should already have it. Maybe the problem is not on the emulated system but on your host. Does audio work on your host with other apps and you can hear sound from host OS? Is QEMU compiled with the appropriate audio backend and using that? You can try qemu-system-ppc -audiodev help to list available audio backends.

Go to top


Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


@white
For audio there are several options. The default is via-ac97, it does not need any additional option as it's part of the chipset of amigaone and pegasos2 so should just work. If not, check in sound prefs (and if you have sound prefs replaced by Enhancer maybe revert to the original from the install CD as some people reported problems with the Enhancer versions of things). If you passed through the audio function of the graphics card you could also try that; it may or may not work, probably nobody tested it before and if the INTERRUPT=no setting is needed for the graphics function similar issue could exist for the audio function so who knows. Third option, you could add -device ES1370 which works with the soundblaster128 driver but I don't know if that's any better than via-ac97. It's important to set the right driver in prefs which may not be trivial as there are different units and one of those has to use some audio.device and the others the hardware driver but I forgot which is which so check some AmigaOS docs on how to configure sound. This is not specific to QEMU, the same is true on real machines.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@joerg
via-ac97 should work on both pegasos2 and amigaone. They are implemented by same code in QEMU (vt82c686b and vt8231 share almost all of their implementation) and the AmigaOS side also has the same driver. Maybe the amigaone version of AmigaOS does not enable it by default due to codec missing on real machine but it should be possible to select it from prefs.

Go to top


Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Quite a regular
Quite a regular


@smarkusg
Quote:
Unfortunately laptops and notbooks probably won't work.
You need to have two graphics cards.


A lot of laptops have two GPUs, an integrated and a discrete one but due to how they are connected to the screen maybe not all would support using one from the guest. However you don't necessarily need two GPUs, the requirement is that you don't use the GPU from the host while the guest is running. There are two ways to achieve that: 1. If you don't mind not having video output from the host because you only want to run the guest you can assign the GPU to vfio driver after you've enabled ssh then interact with the host through network so the GPU is free for the guest. Or 2. if you also want to use the host normally you could make a script that unbinds the GPU from the host driver, binds it to vfio, starts the guest then when guest is finished rebinds to host driver. Somebody surely did that already somewhere, I remember seeing a guide once but I can't find it now.

Quote:
@afxgroup once wrote that he seems to have a laptop with RX and wanted to run GPU passthrough with AOS4. He didn't write how the issue turned out


Maybe the guide was lined in that thread somewhere.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
On pegasos2 you have to use bboot to fix interrupts and 64bit BARs otherwise it likely won't work so maybe you can't boot easily from CD like on amigaone. Pegasos2 needs an HD install and bboot files on the boot volume so you can start bboot.fth from the pegasos2.rom. I don't know if it would work without the pegasos2.rom with just bboot but you can try that with removing -bios pegasos2.rom and adding -kernel bboot -initrd Kickstart.zip instead and see if the driver can init the passed through card without the pegasos2.rom BIOS emulator run first. As that BIOS emulator crashes on the card ROM it may not run correctly anyway.

Go to top


Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


@white
Maybe the CD has different settings and does not enable some settings that cause it to freeze? According to smarkusg you still need the INTERRUPT=no setting to avoid that freeze so this may be related to interrupts. Although interrupt related problems should be fixed now at least on pegasos2 and amigaone always had level sensitive interrupts setting, maybe there's still some issue somewhere with that. If somebody from AmigaOS side could tell what causes the freeze that may help to find out what's not emulated or set correctly. Hans had similar issue on pegasos2 before with virtio-vga related to interrupts but that was fixed a year ago with BBoot 0.7 and QEMU 9.0.0 so if you use newer than that those should not be a problem any more. It could be it's a different problem this time but I don't know what.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
The card won't show up until you install the driver but it may be listed in showconfig or Ranger. That's normal and also how it works on real machine, there's nothing to do with that in emulation.

AmigaNG machines have no PAL or NTSC as they have no Amiga chipset. The early startup menu is still available in AmigaOS 4 and you can enter it the same way as on classic Amiga by holding the left and right mouse buttons at the right time. To find the right time it may be best to set os4_commandline as I wrote before so you get messages on serial and when you see [bootmenu] printed there that's when you should hold the buttons the get the startup menu. From there you can select boot volume or boot without startup-sequence which may do what you want but I did not try and don't quite follow your thoughts.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
The aCube pdf Joerg has sent mentions you need to copy the Firmware directory to the root of the AmigaOS volume (I guess that's SYS: if you booted from the hard disk) so maybe that's at least what's missing. But to also get 3D you probably need more libs elsewhere so the Enhancer installer should take care of all that.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
There is no difference in installing Enhancer Software on emulated virtual machine compared to real machine. I don't know how Enhancer works but I don't think you have to manually copy stuff. You'd just run the installer and let it do what it needs to install the driver files then zip the Kickstart folder after Enhancer installer modified it as needed and boot with that. That should be all that's needed. On real machine you also have to install Enhancer first before adding the RadeonRX card so that's the same on QEMU as well.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
At this point it's probably up to the AmigaOS experts to find out what's missing. Does Enhancer update the kernel or some other modules in Kickstart or only adds the RadeonRX.chip driver? If you didn't take Kickstart.zip from the AmigaOS install where you installed Enhancer but added it manually maybe there's some mismatch between the driver and other modules? Try zipping the actual Kickstart drawer on the boot volume that amigaboot.of would load or that on the SYS: volume wherever that is on pegasos2 just to make sure there isn't something missing from the Kickstart.zip in case you used an older Kickstart.zip and added the driver to that. If you've installed updates or Enhancer you need to redo the Kickstart.zip to match what's on the hard disk of the virtual machine. Other than that setting the os4_commandline to get messages may print some error to give a clue.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
What does it mean that it's not loaded completely and blocked? You can try setting the os4_commandline as I wrote above to get some debug messages from AmigaOS on serial. You need an input device to operate the virtual machine so you can click in the bochs-display window where you typed the " /failsafe" io command and as long as you're in that window mouse and keyboard input would go to the guest otherwise you can't move mouse or type in the guest without also passing through some input devices. Think of this as you have a virtual machine with the passed through card plugged into it but you have no keyboard or mouse plugged in it so you can see it but you need to pass the input from host somehow which can be done through the emulated bochs-display. With an emulated graphics card you'd also have the output in same window but now you have a separate card for output.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
You seem to be missing the correct driver from Kickstart.zip. I don't see RadeonHD.chip and RadeonRX.chip in the list printed by BBoot. The Kickstart.zip should be the zip of the Kickstart directory on your boot volume or wherever you've installed the drivers from Enhancer including the drivers (also in Kicklayout). To get more information from AmigaOs you can enter a few commands at firmare ok prompt before the boot command:
120 nodefault-bytes os4_commandline
setenv os4_commandline serial debuglevel
=3
boot hd
:0 bboot.fth

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
Quote:
I moved the 3 boot files, bboot boot.fth, and Kickstart.zip
In the main AmigaOS disk where amigaboot.of is
it gives me this error:

ok boot hd:0 bboot.fth
error: error while trying to load or boot


Looks like you did not copy it to the right volume. If you have a small boot volume it is where the boot files should be not on SYS: and the boot volume has to be FFS I think. You've previously managed to load amigaboot.of with similar command so copy bboot files to the same place where that amigaboot.of is. There may be multiple places but hd:0 is the first partition on the harddisk which should be the boot volume so that's where you have to copy files for the firmware. You can also try in firmware ok prompt
cd hd
ls

it should list partitions and show you the volume label of partition 0 where you have to put the files.

It may also be that harddisks change order when you change order of -drive options in QEMU command so maybe it's not the first harddisk what you want. To prevent that use
-drive media=disk,index=0,format=raw,file=hd1.raw -drive media=disk,index=1,format=raw,file=hd2.raw
to make sure the disks are in the right order but if you did not swap them in QEMU command they should be in the right order.

I think we should finish with pegasos2 now that it almost works before starting again with a different version so don't give up on it yet.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
Within bboot-0.8.tar.xz. Take bboot and bboot.fth from that archive and the Kickstart.zip and copy these three files to the boot volume where amigaboot.of is.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
Why does bboot appear as a drawer? It should be the bboot binary not the whole directory.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
No, do not rename anything. You need 3 files on the boot volume:
bboot.fth, bboot binary and Kickstart.zip. The bboot.fth script will load Kickstart.zip and bboot from pegasos2 firmware so you start the fth and that will get bboot and Kickstart.zip from hd:0 as well. The bboot and bboot.fth are in the BBoot archive, just copy it from there unmodified.

Go to top


Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


@white
Quote:
have already modified and I moved the "FHT" file to the AmigaOS partition
what command should I give instead of:
hd:0 amigaboot.of

boot hd:0 bboot.fth

But you also need bboot and Kickstart.zip next to bboot.fth on the same volume.

Go to top



TopTop
« 1 2 3 4 (5) 6 7 8 ... 41 »




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project