Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
56 user(s) are online (45 user(s) are browsing Forums)

Members: 0
Guests: 56

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 4 5 6 (7) 8 »
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Just can't stay away
Just can't stay away


See User information
@smarkusg

That's pretty impressive. You're now using a hybrid NGQmiga

Does the real sound card affect the emulation speed?

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Quite a regular
Quite a regular


See User information
@Maijestro
How do I disable emulation so that the graphics card, sound card, network card, and hard drive work on real hardware? That's certain.
What remains is ‘motherboard emulation’ + ports + drives, etc. I no longer have any free slots in my x86 to test the drive.

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


See User information
@smarkusg
Quote:
Thread closed: Sound Blaster Audigy FX does work with QEMU PCI passthrough.

Maybe you need to be more specific before others think it's really that simple. It works for you but you should mention that if I understood correctly it needs an Intel HDA driver for AmigaOS which is not any more available unless you still have it from before when it was public. Without that it's the same as the HDMI audio that the hardware can be passed through but no driver in AmigaOS for it.

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


See User information
@smarkusg
Quote:
How do I disable emulation so that the graphics card, sound card, network card, and hard drive work on real hardware? That's certain.

I think if no driver is loaded for the via-ac97 (i.e. it's not selected in audio prefs) it should not affect performance as it's not enabled by anything. To make sure, you can move SYS:Devs/AHI/via-ac97.audio and/or SYS:Devs/AudioModes/VIA-AC97 to Storage to disable them. To make really sure you can comment out /* Function 5: AC97 Audio */ in qemu/hw/isa/vt82c686.c::via_isa_realize() and the object_initialize_child(..."ac97"...) in via_isa_init() to completely remove the emulation.

Quote:
What remains is ‘motherboard emulation’ + ports + drives, etc. I no longer have any free slots in my x86 to test the drive.

You forgot the most important affecting performance: CPU emulation. Unless you have a PPC host that can use KVM you can't remove that. For disks you could try passing through a SATA controller but I think virtio-blk or scsi drivers might help this as well. Unfortunately despite Hans who wrote it asked AmigaKit to publish his virtio.library to make it easier for others to write virtio drivers for network/disk/sound/etc. we just got no answer about this from them. If someone at AmigaKit is reading this they could reply my emails...

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


See User information
@balaton
Quote:
To make really sure you can comment out /* Function 5: AC97 Audio */ in qemu/hw/isa/vt82c686.c::via_isa_realize() and the object_initialize_child(..."ac97"...) in via_isa_init() to completely remove the emulation.

This works best - permanently disabling AC97 from emulation. Thanks.
Quote:
If someone at AmigaKit is reading this they could reply my emails.

Forget about it. Their sense of self-worth does not allow them to respond appropriately.
From another thread on this forum, I don't understand people who thank "Makedir" for the update. The guy replaced basic system files with errors and people still thank him for it.
Wouldn't it be easier to restore the files from the official AOS4FE system?

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


See User information
@smarkusg
Quote:
This works best - permanently disabling AC97 from emulation. Thanks.

Have you tested if this makes any difference or do you just mean this is the best way to surely disable it? I think even without removing it if no driver is loaded for it it should not affect speed. I've only seen a difference due to via-ac97 with MorphOS which always runs sound even if nothing is played (maybe to prevent clicks) but AmigaOS seems to only enable it if you play some sound so even with the driver loaded it should not matter if you select a different sound card. If you test this don't forget to report the results back here.
Quote:
Forget about it.

I don't know the reason why they did not reply as I haven't got any answer whatsoever even after sending several emails. I haven't asked for access to virtio-gpu driver but only if they can release the virtio.library which is a common part for all virtio drivers so making at least the interface for it public would help others writing network or block driver and prevent having incompatible versions of it as this is needed for all virtio drivers so if they don't publish it others will write their own or each driver will end up with different versions and bugs in something that is best put in a common library and shared between drivers. Hans (who wrote it) also thinks this is a good idea to release this library but I still could not manage to get any answer, even a simple yes or no.
The other thing I asked for is the souces of the U-Boot versions under GPL which they have to publish as we have discussed here before. I have the binaries so I should also have the sources. It's up to them what they do with virtio.library but not answering about the GPL sources is not acceptable and I won't forget about that. I still hope I will get this sorted out sooner than later.

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


See User information
@balaton
Quote:
Have you tested if this makes any difference or do you just mean this is the best way to surely disable it? I think even without removing it if no driver is loaded for it it should not affect speed. I've only seen a difference due to via-ac97 with MorphOS which always runs sound even if nothing is played (maybe to prevent clicks) but AmigaOS seems to only enable it if you play some sound so even with the driver loaded it should not matter if you select a different sound card. If you test this don't forget to report the results back here.

I think this is the best way. I don't have to do anything with the files in the AOS4 system.
Additionally, QEMU does not have to initialize “via-ac97”.
I have not tested whether leaving “via-ac97” has any effect on the operation of the system.I'll check and let you know.

Go to top
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Home away from home
Home away from home


See User information
@balaton
Quote:
The other thing I asked for is the souces of the U-Boot versions under GPL which they have to publish as we have discussed here before. I have the binaries so I should also have the sources.
Which U-Boot?
- A-EON is only responsible for the X5000 and A1222+ U-Boot versions.
I doubt it uses anything from the other U-Boot versions, except for the special version of the SciTech x86 emulator (unlike the original SciTech x86 emu source code it has an exception in the licence which allows using and linking it with GPL code for U-Boot), which is available in the DENX U-Boot repository and the Sam4x0 U-Boot sources.
Even booting AmigaOS is different in A-EON's versions of U-Boot, it doesn't use SLB_v2 like the AmigaOne SE/XE/µA1 and and Sam4x0 versions but AmigaBoot.ub, which is similar to the X1000 CFE firmware AmigaBoot.of instead.
- ACube is responsible for the Sam4x0 versions of U-Boot, sources are available on their homepage.
- EyeTech, a company which no longer exists since about 20 years, implemented the AmigaOne SE/XE/µA1 hardware and the U-Boot versions for it. Sources lost.

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


See User information
@joerg
Quote:
Which U-Boot?
- A-EON is only responsible for the X5000 and A1222+ U-Boot versions.

Exactly those. The source for these should be published the same way ACube publishes the sources for their U-Boot versions. I meant A-Eon when I said AmigaKit as it's the same person just maybe in different role in different companies. But I got still no reply about this at all.

Go to top
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Just can't stay away
Just can't stay away


See User information
@smarkusg

Why don't you sell me a PC that you've already configured with qemu AmigaONE GPU AUDIO with a license?
Just the cabinet.

It's not a problem for me.

Obviously, it needs to have good performance.

I'll back it up when it arrives.
And I'm all set

You can PM me if you want

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


See User information
@white
The problem lies with the system you are using and the missing components, not with my machine.
My computer, which is capable of running AOS4 for 35 euros on QEMU 10 + GPU, is not for sale.
I am posting some threads about what can be done with QEMU. I hope they will be useful to someone someday.
The included software is open source. I have no intention of making money from it.

If you want, I can make a copy of my Ubuntu system for free (1:1) - I will only remove the disk images.
The simplest thing you need is an SSD drive. I can create a disk image, but I don't currently have the necessary space. Unless you want to wait until November.

Go to top
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Just can't stay away
Just can't stay away


See User information
@smarkusg

I understand your answer
Yes, the ISO of your Ubuntu system would be helpful if you could post the link or send me a PM with the link.
Thanks

Go to top
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Just can't stay away
Just can't stay away


See User information
@smarkusg

I'm waiting for your ISO, if any. Thanks.
I solved the audio problem with ArchLinux by

using alsamixer -c1

and then changing the configuration so that alsamixer recognized the correct card.

Basically, they were the wrong ones.
But even this doesn't work with the SUDO command because it basically requires an ISO, probably like the one you're using.

Great, if you'd be so kind as to send me the link to your ISO, even privately.
Thank you.

If you can't, thanks anyway

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


See User information
@white
I'm glad you got everything working properly!
My system uses a couple of scripts to simplify GPU passthrough.
If your system is working properly now, there's no need for me to make copies for you.
Running Peg2 emulation with the original uboot and GPU passthrough is difficult. You can find instructions on how to do this at os4welt.

Go to top
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Just can't stay away
Just can't stay away


See User information
@smarkusg

You misunderstood me; I didn't solve the audio issue
I can't get the same SUDO for the GPU when using audio

However, I can manage the GPU without any problems.
So if you have the your clean custom ISO, I'd be happy to know the you can give me a link to download it.
Thanks

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


See User information
On the occasion of...
20 years of ioquake3
"On 25 August 2005, the first commits were made using svn to icculus.org for the earliest version of ioquake3 based on the Quake 3 source code, which id software generously made available free of charge under the terms of the GPL version 2 licence. As of today, 9 August 2025, the project has reached over 3,600 commits...".

Since I spent a lot of time playing ioquake many years ago, I compiled a test version using SDL2 gl4se (kas1e version) as part of my project.
The current version from os4depot does not work for me.

short video -> https://youtu.be/68241RZyM1A

*)System: QEMU 10 x86_64 pci passthrough GPU,soundcard

@balaton
Quote:
..but AmigaOS seems to only enable it if you play some sound so even with the driver loaded it should not matter if you select a different sound card. If you test this don't forget to report the results back here...

Yes, it seems that AOS4 only uses the default card that is set.

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


See User information
@smarkusg
Quote:
Yes, it seems that AOS4 only uses the default card that is set.

So does that mean that no patching of QEMU is needed and no changes to installed drivers like moving some to Storage are needed but it's enough to just select a diferent driver? And does that make any difference? Is it faster to use a passed through sound card than using the emulated via-ac97? If there is a difference how much or why is passed through card better?

Go to top
Re: Project - hardware to run AOS4 for 35 euro on QEMU 10 + GPU  passthrough
Home away from home
Home away from home


See User information
@balaton
Quote:
Is it faster to use a passed through sound card than using the emulated via-ac97? If there is a difference how much or why is passed through card better?
I don't know which AC97 version the VIA 82C686B supports, but it's probably limited to 16 bit and 44.1 or 48 kHz stereo.
With a better (passed though) sound card you may get 32 bit audio, more kHz and Dolby 5.1 or 7.1 support.
QEmu probably includes emulation for such, much better, sound cards as well, but maybe none for which there are AmigaOS drivers.

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


See User information
@joerg
AC97 is old and only supports a few fixed frequencies between 8 and 48 kHz and stereo. Additionally only single PCM output channel is implemented in QEMU. But that's probably enough for most users who just want to listen to usual sound output. How higher bits, freqs and Dolby surround is relevant in most applications? Is there even anything in AmigaOS that supports that? The other card emulated by QEMU that AmigaOS has driver for is ES1370 which works with the SB128 driver and it may be a more complete emulation but I don't know its limitations.

But the whole starting point of this was that smarkusg added a sound card on the assumption that it's better than using the emulated one. I'm trying to find out if that assumption is true and the emulated sound card really adds an overhead that can be avoided this way. I haven't seen any proof of that yet. It may be true but this should be verified and not just assumed.

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


See User information
@balaton
I am not sure if my assumption was correct.
In my case, it works better without delving into detailed QEMU tests.
Example:
I know that my computer had a problem with imp3. The programme refreshes very often. Sometimes this caused sound quality interference (crackling).
After completely removing AC97 from the QEMU source and using PCI passthrough with Sound Blaster Audigy FX, everything works fine.
There is also a noticeable reduction in latency, similar to that seen when using PCI passthrough with a GPU.
If you have ever used FPGA vs SOFT emulation, the experience is similar.

Go to top

  Register To Post
« 1 ... 4 5 6 (7) 8 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1
Pegasos2
X5000
X1000
A1222
Sam 440/460
Classic PowerPC Amiga
WinUAE emulation
Qemu emulation
Total Votes: 177
The poll will close at 2025/12/1 12:00
4 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project