Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
30 user(s) are online (26 user(s) are browsing Forums)

Members: 0
Guests: 30

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 4 5 6 (7) 8 »
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@white
You can't use any ROM but you need to dump what's on the card as ROM is specific to the card so if what you downloaded does not match the same card and manufacturer (and maybe revision) of your card it may have different settings that won't work or may even damage the card although that's unlikely. If it already works as root then maybe the simplest is to stop the pulseaudio server and then use alsa or Georg said before that starting a root shell with sudo -s and then starting pulseaudio -D server as root before starting QEMU may also work so you can try that too. This is in post #108.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Joerg
@Balaton

Well, I'll wait until Friday for the Monitor to arrive.
Then I'll do all these tests.
Obviously I'll focus on the audio.
I can also do everything from (root) it's not a problem.
Since my goal is to use AmigaOS not Linux.

Thanks for your suggestions.

Now the backup is there and I can work even if I make mistakes


Hey I saw "Dark the TV series" compliments to the German creators a really beautiful plot.
I need more TV series of this type.
It seems like a Philip K. Dick story


Edited by white on 2025/5/10 23:27:25
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
The monitor arrived and it's practically new. The person who sold it to me told me that he had bought the wrong one.
And since then he put it back in the packaging and hasn't used it anymore.
In fact it works at 1920x1080 at 75mhz.
And for him it wasn't much since he wanted to play with it.
A good deal
Today I also ordered a HD6950 2Gb. I hope this one arrives. The seller hasn't responded yet. Even though I've already made the purchase.

Well, let's get back to the emulation.
I finally solved the problem I had with Ubuntu 25.04
I couldn't use it anymore because every time I connected the R9 280x dual OC, the Ubuntu graphics would jerk, it was corrupted, it basically slowed everything down.
Strangely, the previous betas of Ubuntu 25.04 didn't have this problem.

I solved it like this:
/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="radeon.si_support=0 amdgpu.si_support=1 quiet splash amd_iommu=on iommu=pt"

sudo update-grub

And the slow and corrupted graphics problems disappeared.

After:
/etc/modprobe.d/vfio.conf:
options vfio-pci ids=1002:6798,1002:aaa0
softdep drm pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci
blacklist radeon
blacklist amdgpu

sudo update-initramfs -u

So I went back to Ubuntu 25.04 and followed the guide by @Falke_34 dependencies compilation everything to the letter.

This Guide:
https://www.os4welt.de/viewtopic.php?p=52250#p52250

It works perfectly.
And if a guide is well written you have to follow it.

./test-vfio.sh
[ 5.494414] VFIO - User Level meta-driver version: 0.3
[ 5.529746] vfio-pci 0000:06:00.0: vgaarb: deactivate vga console
[ 5.529750] vfio-pci 0000:06:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=io+mem:owns=none
[ 5.529915] vfio_pci: add [1002:6798[ffffffff:ffffffff]] class 0x000000/00000000
[ 5.577541] vfio_pci: add [1002:aaa0[ffffffff:ffffffff]] class 0x000000/00000000

./test-iommu.sh

IOMMU Group 15:
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti XT [Radeon HD 7970/8970 OEM / R9 280X] [1002:6798]
06:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970] [1002:aaa0]

Note:
I would like to point out that in his guide he also suggests this .sh script:

#!/bin/bash

sudo qemu-system-ppc -M amigaone -m 2048 -rtc base=localtime -accel tcg \
-bios /home/falke34/Schreibtisch/QEmu/AmigaOne/u-boot-amigaone.bin \
-vga none -display sdl -serial stdio \
-device rtl8139,netdev=net0 -netdev user,id=net0 \
-device vfio-pci,host=06:00.0,bus=pci.0,x-vga=on,multifunction=on \
-device vfio-pci,host=06:00.1,bus=pci.0 \
-cdrom /dev/sr0 \
-device bochs-display,romfile="" \
-device usb-mouse \
-drive format=raw,file=/home/falke34/Schreibtisch/QEmu/AmigaOne.img,index=0,media=disk \
-drive format=raw,file=/home/falke34/Schreibtisch/QEmu/AmigaOneInstallCD-53.54-Radeon.iso,index=1,media=cdrom

Note:
I would like to point out that the SUDO command is executed by as you can see from the script above created by @Falke_34

So I find myself with the exact same problem, the audio is not heard even after having followed the guide by @Falke_34 to the letter.

So I can only imagine that my mistake is in the modification of the AmigaONE CD or in the virtual Hard-Disk.

And not in the VFIO steps since @Falke_34
also uses SUDO.

With Ubuntu I also tried:

/etc/rc.local

chmod 777 or 666 /sys/bus/pci/devices/0000:06:00.0/config
chmod 777 or 666 /sys/bus/pci/devices/0000:06:00.1/config

But it doesn't work anyway.

So I really think I'm making a mistake in modifying the .ISO or the Virtual HD
even if I add in SYS:Kickstart/
MODULE Kickstart/RadeonHD.chip

And then I install Enhancer 2.2 by installing the RadeonHD drivers

Can someone explain to me better how to modify this step,
exactly ?
What are the files to modify ?

Thanks.


Edited by white on 2025/5/11 18:25:05
Edited by white on 2025/5/11 18:26:51
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@white

The only thing I can do is to show them how it is configured on real hardware under emulation with real GFX so it should be the same.

Here is the section for the graphics card drivers:

MODULE Kickstart/graphics.library.kmod
MODULE Kickstart
/PCIGraphics.card
;MODULE Kickstart/RadeonHD.chip
MODULE Kickstart
/RadeonRX.chip
;MODULE Kickstart/ATIRadeon.chip
;MODULE Kickstart/3DLabsPermedia2.chip
;MODULE Kickstart/3dfxVoodoo.chip


In my example, only the RadeonRX is activated because I only need this module for my RX580.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Maijestro

Thanks,
the steps so they seem exact for RadeonHD.chip

So for the audio no particular module needs to be loaded.
Because usually I install Mixer from Extras,
But it is an old version that is included on the CD

and then in AmiUpdate it updates Mixer precisely to choose the Audio card but in this case Mixer is not updated with AmiUpdate.

I have to download it manually from OSDepot to Ram:
and then do:
execute AutoInstall

But it doesn't seem like the correct way to update it.
Where are the Mixer configuration files to control them manually ?

Thank you

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@white

Quote:
white wrote:@Maijestro

Thanks,
the steps so they seem exact for RadeonHD.chip

So for the audio no particular module needs to be loaded.
Because usually I install Mixer from Extras,
But it is an old version that is included on the CD

and then in AmiUpdate it updates Mixer precisely to choose the Audio card but in this case Mixer is not updated with AmiUpdate.

I have to download it manually from OSDepot to Ram:
and then do:
execute AutoInstall

But it doesn't seem like the correct way to update it.
Where are the Mixer configuration files to control them manually ?

Thank you



No Kickstart does not contain any audio drivers that are loaded. Which AHI Prefs are you using Original or Enhancer? And which emulation AmigaONeXE ? I still remember that I had problems getting sound with the AmigaOneXe machine, but I was able to solve it. Have you tried all possible settings of AHI?

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Maijestro

I tried both normal AHI that of the CD
And also that of Enhancer 2.2
The result does not change.

I would like to open the Mixer preference files manually because that is what decides some sound card to use to edit them.

Where are the Mixer program preference files saved ?

use AmigaONE

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Not too shy to talk
Not too shy to talk


See User information
@white
do a simple test

go from Wayland to console (for example : CTRL+ALT+F2 )
log in and type -> sudo systemctrl stop gdm3

now start qemu without the graphical environment (add options to qemu ‘-nographic’) and see if you have sound

edit:
If it works for you, search on google for pulseaudio to allow other users
It might have been the ‘auth-anonymous=1’ option to change - I can't remember right now off the top of my head and I don't have access to Linux right now.
I was running QEMU via systemd. Alternatively, I did some tests in graphical mode where I didn't even pay attention to the sound.


Edited by smarkusg on 2025/5/11 19:32:34
Edited by smarkusg on 2025/5/11 20:04:33
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@white

Quote:
white wrote:@Maijestro

I tried both normal AHI that of the CD
And also that of Enhancer 2.2
The result does not change.

I would like to open the Mixer preference files manually because that is what decides some sound card to use to edit them.

Where are the Mixer program preference files saved ?

use AmigaONE


I would try something else first to check if Qemu is able to play sound under Linux/Windows on your system.

1. maybe choose another emulation like Linux/Aros or whatever else works with Qemu to check sound.

2. test the emulation without a real graphics card with an emulated sm502 sound card to see if there is sound.

You must first try to narrow down the source of the error...

As I have not followed the thread from start to end I am not sure if you have already tried this.

Otherwise, if you do everything under Windows, you probably won't have any luck!

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@smarkusg
I reboot I'm with Windows now
sec.

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@white
Quote:
I would like to point out that the SUDO command is executed by as you can see from the script above created by @Falke_34

So I find myself with the exact same problem, the audio is not heard even after having followed the guide by @Falke_34 to the letter.

So I can only imagine that my mistake is in the modification of the AmigaONE CD or in the virtual Hard-Disk.

I thought we were over this already. Your sound issues are not related to QEMU or AmigaOS or vfio. You can test this: Find some other program than QEMU that plays sound like a music player or similar and verify that it works on the host. Then run the same program with sudo and see if it works as root. If not then problem is trying to connect to sound server that is running under you user as root. This isn't anything to do with QEMU or anything running in QEMU. To fix this you can either try to run sound server as root before running QEMU or disable the sound server and use alsa directly. You won't be able to fix it with QEMU or vfio settings as the problem is not there.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@smarkusg
sorry I can't give the command you suggested I don't know how to give the command

sudo systemctrl stop gdb3 I can give it with CRTL+ALT+F2
but then in qemu I don't know how to do it

@Balaton
audio works with VLC Player Youtube etc.

I also have two USB-AUDIO sticks that enable audio if the integrated audio was not present.
The ones with qemu don't work either.

In addition both monitors also have integrated speakers if you want.
Even if they suck


@all

Nobody knows where SYS:Utilities/Mixer/ saves the preferences
I would like to see the settings it has saved.

Now I have Kazan installed so I can make some videos to make myself better understood

@Maijestro
AmigaONE with Silicon works perfectly, the audio from the Mixer is recognized as SAM460 and works.

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Not too shy to talk
Not too shy to talk


See User information
@white

I wrote you wrong , I have already corrected it in the description
gdm3 (GNOME Display Manager)

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@smarkusg

you don't use SUDO

I can't figure out the -nographics command where I have to add it

---------------------------------------------------------------

The steps are the same as @falke34
same distribution same dependencies all the same.
same compilation.
But he uses SUDO

I would like to understand if @falke34 can do GPU Passthrough without SUDO

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Not too shy to talk
Not too shy to talk


See User information
@white
sorry ‘-nographic’ add in the command line ‘sudo qemu...’.

I'm writing this from memory, you'll have to forgive my mistakes

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@All

Now I opened SYS:Utilities/Mixer and it gives me this error:

AmigaOS:

error reading preferences file BEGINPRP

error reading preferences file DRVNAME

------------------------------------------------

then it doesn't appear anymore when I restart so it probably overwrites something that inhibits the audio.
If I delete the HD-VIRTUAL and put back the one I have as an AmigaOS backup the error occurs again.

------------------------------------------------

AmigONE

The peripheral that Mixer gives me is:
VIA686B
While instead with the Silicon graphics drivers MIXER it gives me:
SAM460

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@white
Quote:
audio works with VLC Player Youtube etc.

OK then try if sudo vlc also works with sound. My guess it won't and that proves that the problem has nothing to do with QEMU so you're searching for the solution at the wrong place. Forget about QEMU and try to fix that with VLC so it works with sudo then you'll also have sound with QEMU.

Quote:
I also have two USB-AUDIO sticks that enable audio if the integrated audio was not present.
The ones with qemu don't work either.

I'm not sure usb-audio works with AmigaOS maybe it does not even support usb audio but it also did not work with MorphOS that does support it on real hardware so usb audio is probably not a good solution. (And if the problem is sound with sudo generally then usb is also not needed.)

Quote:
AmigaONE with Silicon works perfectly, the audio from the Mixer is recognized as SAM460 and works.

Does it also work with sudo? No, only when run as your user so problem is again not with QEMU but attaching to sound server from any program run as root. The audio part of sm501 is not emulated so I don't know why it's recognised as sam460 but you still need to use via-ac97 in AmigaOS not the SM502 sound.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@white
I guess your confusion comes from that you're trying to debug this stack:

harware > Linux > QEMU > AmigaOS

and try to solve it in QEMU and AmigaOS while the problem is in Linux and reproducible with just

hardware > Linux

vlc as user works

sudo vlc does not work

problem is that root cannot connect to pulseaudio only your user

solution could be start pulsaudio -D as root before running program such as:

$ sudo -s
# pulseaudio -D
# vlc

Does that work? If yes replace vlc with qemu.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Not too shy to talk
Not too shy to talk


See User information
@white
Quote:
I would like to understand if @falke34 can do GPU Passthrough without SUDO

You can find examples on google of how to run QEMU GPU Passthrough without ‘SUDO’.
This requires, from what I remember, adding a user and adding it to the audio groups.... etc.
I haven't tested this because I don't need it but it can be done.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton

Now I'll try,
And this AmigaOS persecution makes me give up everything, but I'm stubborn.
I eat and try again.

Thanks for the advice

I'll get it in 3-4 days
HD6950 2Gb (20 euro)

Although the r9 280x
should be faster looking at bench PC


@smarkusg
Give me a hand there will be a way some files to edit even a link is fine

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
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 )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project