winuaeemu

winuaeemu

29p

31 comments posted · 8 followers · following 0

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 0 replies · +1 points

StackFrame[ 0].LR[0x14cd4dc0] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0001bac0]
StackFrame[ 1].LR[0x10351b98] -> intuition.library.elf [Hunk 0 Offset 0x00004b38 Function NewObjectA]
StackFrame[ 2].LR[0x16474cd8] -> System:MorphOS/Prefs/MPrefs/USB.mprefs [Hunk 1 Offset 0x00013200]
StackFrame[ 3].LR[0x1647bfc8] -> System:MorphOS/Prefs/MPrefs/USB.mprefs [Hunk 1 Offset 0x0001a4f0]
StackFrame[ 4].LR[0x14cd4dc0] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0001bac0]
StackFrame[ 5].LR[0x14ce08c4] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000275c4]
StackFrame[ 6].LR[0x14ce7d04] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0002ea04]
StackFrame[ 7].LR[0x14cebfec] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x00032cec]
StackFrame[ 8].LR[0x14ce9484] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x00030184]
StackFrame[ 9].LR[0x14d5df98] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000a4c98]
StackFrame[10].LR[0x14d51a40] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x00098740]
StackFrame[11].LR[0x14d4988c] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0009058c]
StackFrame[12].LR[0x14d5df98] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000a4c98]
StackFrame[13].LR[0x1647c69c] -> System:MorphOS/Prefs/MPrefs/USB.mprefs [Hunk 1 Offset 0x0001abc4]
StackFrame[14].LR[0x14cd4dc0] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0001bac0]
StackFrame[15].LR[0x103d3c68] -> intuition.library.elf [Hunk 0 Offset 0x00086c08]
StackFrame[16].LR[0x10353e4c] -> intuition.library.elf [Hunk 0 Offset 0x00006dec Function SetAttrsA]
StackFrame[17].LR[0x14d60ea8] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000a7ba8 Function ???VarArgs]
StackFrame[18].LR[0x14d14864] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0005b564]
StackFrame[19].LR[0x14d5df98] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000a4c98]
StackFrame[20].LR[0x103d3c68] -> intuition.library.elf [Hunk 0 Offset 0x00086c08]
StackFrame[21].LR[0x10353e4c] -> intuition.library.elf [Hunk 0 Offset 0x00006dec Function SetAttrsA]
StackFrame[22].LR[0x14d60ea8] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000a7ba8 Function ???VarArgs]
StackFrame[23].LR[0x14d534ac] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0009a1ac]
StackFrame[24].LR[0x14d49984] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x00090684]
StackFrame[25].LR[0x14d5df98] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000a4c98]
StackFrame[26].LR[0x14d5e0e8] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x000a4de8]
StackFrame[27].LR[0x14cff154] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x00045e54]
StackFrame[28].LR[0x14cff368] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x00046068]
StackFrame[29].LR[0x14d01fc0] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x00048cc0]
StackFrame[30].LR[0x14cf6fdc] -> MOSSYS:LIBS/muimaster.library [Hunk 1 Offset 0x0003dcdc]
>>> ABox State
----------------------------------------------------------------------
ExecBase: SysBase 0x140019b0
SysFlags 0x8000 AttnResched 0x0000 IDNestCnt -1 TDNestCnt -1
ThisTask 0x168a4780 TaskReady 0x1404af88 TaskWait 0x14029fa8
ResModules 0x140040a0
TaskTrapCode 0x101217bc TaskExceptCode 0x101217c4 TaskExitCode 0x10121820
TaskSigAlloc 0xffff TaskTrapAlloc 0x8000
IdleCount 4467 DispCount 133664
Quantum 4 Elapsed 2
VBlankFrequency 50 PowerSupplyFrequency 50 EClockFrequency 709379
MainTID 0x10020010 SchedulerTID 0x10020012 SchedulerSig 0x80000000
OldSRR0 0x0
ConfigServerTID 0x10000013
LastIntObject 0x140c48a4
LastIntObject 0x140c48a4 <Not Valid ptr>
Code 0x1047d4c4 Data 0x1409ab68
Int0: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int1: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int2: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int3: iv_Code 0x10126ccc iv_Data 0x14003c38 iv_Node 0x00000000
Int4: iv_Code 0x10126ccc iv_Data 0x14003c58 iv_Node 0x00000000
Int5: iv_Code 0x10126ccc iv_Data 0x14003c48 iv_Node 0x00000000
Interrupt 0x1403446e <graphics.library>
Code 0x10198508 Data 0x14034424
Interrupt 0x144caf20 <ixemul timer interrupt>
Code 0x144c80cc Data 0x00000000
Int6: iv_Code 0x10198510 iv_Data 0x14034424 iv_Node 0x1403449a
Int7: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int8: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int9: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int10: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int11: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int12: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int13: iv_Code 0x10126ccc iv_Data 0x14003c68 iv_Node 0x00000000
Int14: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
Int15: iv_Code 0x10126ccc iv_Data 0x14003c78 iv_Node 0x00000000

Running Task

etc. etc.

then the usb-audio stick is able to communicate with the morphos operating system but I don't know what it can refer to:

I imagine that here the usb-audio stick tries to communicate
with morphos or and morphos which does not find the parameters it is looking for.

thanks again and simple IT passion :-)

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 1 reply · +1 points

this is what I use:
qemu-system-ppc --version
~ QEMU emulator version 6.2.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

applying the rules in udev:
ACTION == "add", SUBSYSTEM == "usb", ATTR {idVendor} == "0d8c", ATTR {idProduct} == "0014", OWNER = "white"
ATTRS {idVendor} == "0d8c", ATTRS {idProduct} == "0014", ENV {PULSE_IGNORE} = "1", OWNER = "white"

then in the blacklist:

blacklist snd_usb_audio
blacklist snd_usb_midi_lib

"ignore_device" doesn't seem to work

Basically there are two differences:
qemu sam460ex (morphos)
perfectly recognizes the usb-audio stick
but once removed here is the error:
qemu-system-ppc: libusb_release_interface: -4 [NO_DEVICE]
for this you have already explained to me the reason.

qemu Pegasos2 (morphos)
it works and never blocks the usb-audio stick under any circumstances
but it does not recognize the device completely.

I am writing here for the first time the initial qemu .log once removed
the usb-audio stick if you want I have the complete .log that I can send you if you need it.

then the usb-audio stick is able to communicate with the morphos operating system but I don't know what it can refer to:

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 3 replies · +1 points

Wrong Way,
ok i will wait for further future developments of qemu.
I am not able to go on with the usb-audio stick

thanks anyway for your suggestions

for other things I have learned
using an "asus" motherboard I was convinced that I had identified the usbhid :-)

going to see the individual components

with:
sudo lsusb -vvd 0b05: 1899

it actually corresponds to the keyboard
Bus 005 Device 003: ID 0b05: 1899 ASUSTek Computer, Inc. TUF GAMING K5
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0b05 ASUSTek Computer, Inc.
idProduct 0x1899
bcdDevice 0.45
iManufacturer 1 ASUSTeK
iProduct 2 TUF GAMING K5

etc. etc.

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 4 replies · +1 points

with
lsusb -tv

I get this:

/: Bus 06.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 10000M
ID 1d6b: 0003 Linux Foundation 3.0 root hub
/: Bus 05.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 480M
ID 1d6b: 0002 Linux Foundation 2.0 root hub
| __ Port 1: Dev 2, If 0, Class = Human Interface Device, Driver = usbhid, 12M
ID 145f: 02b9 Trust
| __ Port 1: Dev 2, If 1, Class = Human Interface Device, Driver = usbhid, 12M
ID 145f: 02b9 Trust
| __ Port 2: Dev 3, If 2, Class = Human Interface Device, Driver = usbhid, 12M
ID 0b05: 1899 ASUSTek Computer, Inc.
| __ Port 2: Dev 3, If 0, Class = Human Interface Device, Driver = usbhid, 12M
ID 0b05: 1899 ASUSTek Computer, Inc.
| __ Port 2: Dev 3, If 1, Class = Human Interface Device, Driver = usbhid, 12M
ID 0b05: 1899 ASUSTek Computer, Inc.
/: Bus 04.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 10000M
ID 1d6b: 0003 Linux Foundation 3.0 root hub
/: Bus 03.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 2p, 480M
ID 1d6b: 0002 Linux Foundation 2.0 root hub
/: Bus 02.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 10000M
ID 1d6b: 0003 Linux Foundation 3.0 root hub
/: Bus 01.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 10p, 480M
ID 1d6b: 0002 Linux Foundation 2.0 root hub
| __ Port 3: Dev 6, If 2, Class = Audio, Driver =, 12M
ID 0d8c: 0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
| __ Port 3: Dev 6, If 0, Class = Audio, Driver =, 12M
ID 0d8c: 0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
| __ Port 3: Dev 6, If 3, Class = Human Interface Device, Driver = usbhid, 12M
ID 0d8c: 0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
| __ Port 3: Dev 6, If 1, Class = Audio, Driver =, 12M
ID 0d8c: 0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
| __ Port 6: Dev 3, If 2, Class = Human Interface Device, Driver = usbhid, 12M
ID 0b05: 1939 ASUSTek Computer, Inc.
| __ Port 6: Dev 3, If 0, Class = Vendor Specific Class, Driver =, 12M
ID 0b05: 1939 ASUSTek Computer, Inc.
| __ Port 7: Dev 4, If 0, Class = Hub, Driver = hub / 4p, 480M
ID 05e3: 0610 Genesys Logic, Inc. Hub
| __ Port 1: Dev 5, If 0, Class = Vendor Specific Class, Driver =, 12M
ID 1b1c: 0c08 Corsair

from this do you think i can find the id that is needed for usbhid?
and create a specific UDEV rule for the port I am interested in?

any help i appreciate very much

Thank you

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 6 replies · +1 points

If the goal is to dissociate the usb-audio driver from usbhid.

this maybe might be fine:

for device in $(ls /sys/bus/usb/devices/*/product); do echo $device;cat $device;done

USB Audio Device
/sys/bus/usb/devices/1-6/product

sudo dmesg

39.108362] usb 1-3: New USB device found, idVendor=0d8c, idProduct=0014, bcdDevice= 1.00
[ 39.108367] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 39.108368] usb 1-3: Product: USB Audio Device
[ 39.108369] usb 1-3: Manufacturer: C-Media Electronics Inc.
[ 39.128456] input: C-Media Electronics Inc. USB Audio Device as /devices/pci0000:00/0000:00:01.2/0000:01:00.0/usb1/1-3/1-3:1.3/0003:0D8C:0014.0007/input/input26
[ 39.185488] hid-generic 0003:0D8C:0014.0007: input,hidraw6: USB HID v1.00 Device [C-Media Electronics Inc. USB Audio Device] on usb-0000:01:00.0-3/input3
[ 39.190685] mc: Linux media interface: v0.10
[ 39.265052] cmedia_hs100b 0003:0D8C:0014.0007: Fixing CMedia HS-100B report descriptor
[ 39.265106] input: C-Media Electronics Inc. USB Audio Device as /devices/pci0000:00/0000:00:01.2/0000:01:00.0/usb1/1-3/1-3:1.3/0003:0D8C:0014.0007/input/input27
[ 39.325008] cmedia_hs100b 0003:0D8C:0014.0007: input,hidraw6: USB HID v1.00 Device [C-Media Electronics Inc. USB Audio Device] on usb-0000:01:00.0-3/input3
[ 39.379527] usbcore: registered new interface driver snd-usb-audio

example:

echo '1-3' | sudo tee /sys/bus/usb/drivers/usb/unbind

1-3

before the test:

lsusb -t

/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
|__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=ath9k_htc, 480M
|__ Port 3: Dev 6, If 2, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 6, If 0, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 6, If 3, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 6, If 1, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 6: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 12M
|__ Port 7: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Vendor Specific Class, Driver=, 12M

after the test:

Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
|__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=ath9k_htc, 480M
|__ Port 6: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 12M
|__ Port 7: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Vendor Specific Class, Driver=, 12M

the driver is disassociated
this can be done manually
but also make it permanent

the only problem is when the usb-audio stick is reinserted
everything returns as before so it must be inserted when Morphos is running with qemu as it normally does on my PowerBook

trying with qemu pegasos2 the problem remains, however, the usb-audio is only recognized but it is not fully recognized

but I'm not sure that's the goal.
and if it can lead to blockages.

Or if it can be fine for debugging this way too

?
thanks.

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 8 replies · +1 points

hi zbalaton,
I tried to see locate usbhid to see the ids it uses
but i have no idea how to get IDs other than the default ones that "linux" assigns.
Always if this is possible

so for example:
modinfo usbhid

filename: /lib/modules/5.15.0-kali3-amd64/kernel/drivers/hid/usbhid/usbhid.ko
license: GPL
description: USB HID core driver
author: Jiri Kosina
author: Vojtech Pavlik
author: Andreas Gal
alias: usb: v * p * d * dc * dsc * dp * ic03isc * ip * in *
depends: hid, usbcore
retpoline: Y
intree: Y
name: usbhid
vermagic: 5.15.0-kali3-amd64 SMP mod_unload modversions
parm: mousepoll: Polling interval of mice (uint)
parm: jspoll: Polling interval of joysticks (uint)
parm: kbpoll: Polling interval of keyboards (uint)
parm: ignoreled: Autosuspend with active leds (uint)
parm: quirks: Add / modify USB HID quirks by specifying quirks = vendorID: productID: quirks where vendorID, productID, and quirks are all in 0x-prefixed hex (array of charp)

is it possible to get the ids of usbhid which are working with the usb-audio?
with something like this:
lsusb -t

/: Bus 06.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 10000M
/: Bus 05.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 480M
| __ Port 1: Dev 2, If 0, Class = Human Interface Device, Driver = usbhid, 12M
| __ Port 1: Dev 2, If 1, Class = Human Interface Device, Driver = usbhid, 12M
| __ Port 2: Dev 3, If 2, Class = Human Interface Device, Driver = usbhid, 12M
| __ Port 2: Dev 3, If 0, Class = Human Interface Device, Driver = usbhid, 12M
| __ Port 2: Dev 3, If 1, Class = Human Interface Device, Driver = usbhid, 12M
/: Bus 04.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 10000M
/: Bus 03.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 2p, 480M
/: Bus 02.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 4p, 10000M
/: Bus 01.Port 1: Dev 1, Class = root_hub, Driver = xhci_hcd / 10p, 480M
| __ Port 1: Dev 2, If 0, Class = Vendor Specific Class, Driver = ath9k_htc, 480M
| __ Port 3: Dev 6, If 2, Class = Audio, Driver = snd-usb-audio, 12M
| __ Port 3: Dev 6, If 0, Class = Audio, Driver = snd-usb-audio, 12M
| __ Port 3: Dev 6, If 3, Class = Human Interface Device, Driver = usbhid, 12M
| __ Port 3: Dev 6, If 1, Class = Audio, Driver = snd-usb-audio, 12M
| __ Port 6: Dev 3, If 2, Class = Human Interface Device, Driver = usbhid, 12M
| __ Port 6: Dev 3, If 0, Class = Vendor Specific Class, Driver =, 12M
| __ Port 7: Dev 4, If 0, Class = Hub, Driver = hub / 4p, 480M
| __ Port 1: Dev 5, If 0, Class = Vendor Specific Class, Driver =, 12M

with other commands?

lsusb -vs 006
or
lsusb -vd 0d8c: 0014

or something similar?

Or am I off track and that's not how I have to do it?

Thanks again

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 10 replies · +1 points

I wanted to deepen the disabling of modules in the kernel of the usb-audio stick

I believe it is the correct procedure
here I put the whole procedure to disable kernel modules that are loaded at boot
in this case a video is much more efficient in practical terms is faster where there are all the steps step by step

disabling modules in the kernel:
https://we.tl/t-23jL168zyf

here instead the use of the usb-audio stick after the reboot with the modules disabled:
https://we.tl/t-fDkXo0Nfb5

Because the result does not change unfortunately the usb-audio stick is recognized in the same way with Pegasos2.

Thanks again.

Hi, zbalaton

these are the udev rules:
/etc/udev/rules.d/my.rules

my.rules

ACTION == "add", SUBSYSTEM == "usb", ATTR {idVendor} == "0d8c", ATTR {idProduct} == "0014", OWNER = "white"
ATTRS {idVendor} == "0d8c", ATTRS {idProduct} == "0014", ENV {PULSE_IGNORE} = "1", OWNER = "white"

I have also attached the complete .log
if it can be useful to see better.
using sudo lshw
this is the result with the usb-audio stick inserted:
with udev rule and pulse audio disabled on the usb-audio device

* -usb: 1
description: Audio device
product: C-Media Electronics Inc. USB Audio Device
vendor: C-Media Electronics Inc.
physical id: 3
bus info: usb @ 1: 3
logical name: card2
logical name: / dev / snd / controlC2
logical name: / dev / snd / pcmC2D0c
logical name: / dev / snd / pcmC2D0p
logical name: input27
logical name: / dev / input / event25
version: 1.00
capabilities: usb-1.10 audio-control usb
configuration: driver = usbhid maxpower = 100mA speed = 12Mbit / s

even if it is not visible among the devices to choose from
in this case I guess it is not completely disabled?

as you told me

the usb-audio stick works perfectly with linux i did some tests to see if everything worked, before creating the UDEV rules
but which I can always disable at any time.

At this point I can't understand what are the steps to completely disable the usb-audio stick

Why even doing modprobe -f sound_usb_audio
the output does not give me any errors, so in theory it should have disabled it but in reality it is not because if I do it again:
lsmode

reappears among the active modules.

any of your suggestions really appreciate it.

For the audio stick on amazon obviously mine was a suggestion because an expert pers

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 12 replies · +1 points

I guess there is something still wrong somehow in qemu (pegasos2)
because whatever I do the device is not recognized correctly even disabling pulse and using a udev rule only for the device:
vendorid = 0x0d8c, productid = 0x0014

but it is always recognized as a connected usb device but not as usb-audio as it happens on real hardware.

probably the best thing is the one you personally try with a usb-audio stick to find a possible solution and be able to test it for yourself.

as always, any suggestions are welcome.

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 14 replies · +1 points

I tested on Pegasos2
now even with the usb-audio stick inserted before starting qemu and even after qemu never crashes.
The current drawback is that the usb-audio stick is recognized as a device but not as a usb-audio (in practice it does not recognize the device as it happens for example with the Sam460ex).
Always referring to Pegasos2 in the various tests I tried for example to see if somehow the use of:

sudo modprobe -f snd_usb_audio
sudo modprobe -f snd_usbmidi_lib
etc.

somehow it could make the device work or it could be useful.
But it seems to only make things worse and doesn't seem useful.
If after doing:
sudo modprobe -f snd_usb_audio

the situation does not change indeed in the output of qemu comes a long .log
that if it can be useful I can possibly attach.

Currently with Pegasos 2 the problem:
qemu-system-ppc: libusb_release_interface: -4 [NO_DEVICE]

it seems to have completely disappeared and no longer occurs.

here you can see the video:
the usb-audio device is recognized and does not lead to any block but it is not recognized correctly in order to configure it: https://we.tl/t-8g8a74FGN2

So currently it seems that the only problem "to be solved" is the right usb-audio recognition once the stick is connected (as happens on Sam460ex)

Keep in mind that with Sam460ex I don't need to do for example:
sudo modprobe -f snd_usb_audio

It works by simply giving the right addresses like:
-device usb-host, vendorid = 0x0d8c, productid = 0x0014

The ideal would be to understand why Sam460ex recognizes the device correctly.
But Pegasos2 no.

Any suggestions are welcome, thanks again.

this is the actual command line in Pegasos2:

sudo qemu-system-ppc -machine pegasos2 -rtc base = localtime -m 1024 -device ati-vga, guest_hwcursor = true, romfile = "" -bios /home/white/Downloads/pegasos2.rom -serial stdio -device ide- hd, drive = hd-drive, bus = ide.0 -drive file = '/ home / white / Downloaded / morphos.img', if = none, id = hd-drive, format = raw -device usb-host, vendorid = 0x0d8c, productid = 0x0014

I leave you the link of the usb-audio
AMAZON: https://tinyurl.com/5n7ue6xd <---- 7.99 EUR

2 years ago @ http://zero.eik.bme.hu... - Amiga like OSes on QEMU · 15 replies · +1 points

Hi, zbalaton
thank you,
just in these hours I was doing some tests (qemu 6.2.0)
tomorrow I'll be able to explain myself better.

here you can see how sam460ex is able to recognize the usb-audio stick with morphos and also with ArosPPC only problem is that after having regularly recognized them without any block.
Unfortunately the sound is not heard.
I'll make a more detailed report tomorrow.

With Pegasos2 I will try again, but it seems to have a completely different behavior from the Sam460ex
Here too tomorrow I will try to be as precise as possible.

Thanks again for your reply.

I leave you the link of the two example videos where the usb-audio stick is recognized and saved in the correct way. https://we.tl/t-LMxlsyj9tt https://we.tl/t-dIoDLeN0Dv