Hi, I have the latest kernel 6.6 compiled with bsp + rbuild booting on Pi S OK, access via serial console and ethernet cable.
Disabled radxa-adb, enabled radxa-usbnet services, OK.
When starting the board when powered via GPIO pins 2+4/6 5V, the USB-C port in device mode is not active, connecting to a USB host initiates no enumeration. The board runs OK.
I found out that the OTG port needs to boot with 5V power via the connector to be activated. To get enough power, I am using a powered USB hub.
Pi S with kernel 6.6 boots and runs perfectly when powered via USB-C with the powered USB hub.
However, the board crashes when booting with the hub connected to USB host. It also crashes when powered directly from the USB host, no hub in between. Initially I thought the host did not provide enough power but IMO the problem is the data connection to the USB host.
When powered from powered hub disconnected from USB host (starts/runs fine), then first connection to the USB host enumerates the usb ether device configured by the radxa-usbnet script correctly. I can configure IPs, communicate over the virtual interfaces, OK. Upon disconnecting from USB host the board continues running OK. Upon second reconnecting to the USB host - immediate crash.
By crash I mean the device stops communicating. I have tailing dmesg -w open via the serial console, when the Pi S crashes no extra output in dmesg, no communication via serial console anymore.
When the Pi S boots connected to the USB host, it crashes a few secs after the login prompt appears, regardless of what/if anything gets typed on the keyboard.
When the Pi S boots disconnected from the USB host, it crashes at the very moment the USB host is connected the second time.
I use the dwc2 gadget driver on RaspberryPi4 regularly and it accepts any connecting/disconnecting of the USB host.
Please is this behavior known and is there any way to help with fixing? I would like to use the audio UAC2 gadget function which was added to mainline in 5.18., no go with the ancient 4.4.
Thanks a lot!