Jump to content

Recommended Posts

Posted (edited)
ls /sys/class/udc > UDC
ls:write error: Device or resource busy

I'm trying to get an armbian device (banana pi m2 zero and/or the orange pi zero LTS) to function as a USB client, but I can't seem to get the above step working. Any suggestions? lsof UDC returns nothing.

 

On the RaspberryPI 4 this worked without issue 

Edited by mongoose
Posted

The driver for USB OTG gadgets in most (all?) Allwinner chips is limited to PIO (polled I/O). That would have a couple of important implications including very high CPU utilization and limited data throughput. It's might be possible to improve the driver to give it DMA support, which could improve performance and reduce CPU usage. But it looks like nobody's working on it right now.

 

https://linux-sunxi.org/Linux_mainlining_effort#Drivers_that_can_still_be_improved.2Fadded

 

That being said, it should at least be possible even if it may be sub-optimal. Maybe you're missing a device tree overlay? Or maybe the relevant USB gadget kernel modules aren't compiled/installed? I'm hoping to spin up a new orange pi zero in the next little while; hopefully I can remember to take a look.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines