On Sun, 27 Nov 2022 01:28:30 -0800 (PST) Artem Komissarov <artemk1...@gmail.com> wrote:
Hi Artem, > I apologize in advance if this has been brought up before or discussed, I'm > new here and did not find it in the previous posts. > I'm working on a port of PiKVM to Orange Pi (PC in this case) among other > SBC's and having an issue running multiple USB gadgets (config-fs) at the > same time. The most i can seem to run is Keyboard(HID)+Mouse(HID)+ either > USB Ethernet or MSD. If i try to do USB Ethernet and MSD the UDC crashes > and nothing works. This is on Armbian BTW, and I'm wondering if there is a > limit to how many USB gadget devices you can run on Allwinner chips Yes, there is a hardware limit in the Allwinner implementation of the MUSB USB controller. The H3 only supports four endpoints (most other Allwinner SoCs can do five), each with an RX and FX FIFO. So depending on how much resources your gadget needs, you run out very quickly. For instance you will be limited to just two serial gadgets, since the normal one requires three streams (bulk in, bulk out, control), which consumes two endpoints. If you dig deeper into the USB setup, it should say somewhere how many resources your gadgets use, I bet you run into the limit here. Cheers, Andre > or if > it's a kernel compilation misconfiguration on my part (perhaps a patch?). > This setup works perfectly fine on RK3328 for example and of course of > native hardware for PiKVM the RPI4. > I can provide logs if need be, but i figured someone on here would know the > answer simply by explaining the situation. > Thank you in advance and appreciate you taking the time to read this! > > Artem Komissarov > > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20221128172145.14eb5858%40donnerap.cambridge.arm.com.