beagle as a new usb gadget

Hello to all,
I am a Beagle newby. I need to use Beagle as a new custom usb device
to be attached to an host pc. Thus I need to use the usb gadget API
provided by the Linux kernel in order to describe the usb endpoints
needed for my application. What do I need to do to achieve this? Do I
have to customize u-boot, or just building a custom linux kernel could
be enough?
Thank you in advance.

Daniele

Hi,

You either need to create a gadget driver into the kernel or use the gadgetfs from userspace. No changes to U-boot are necessary.

For a small example see the “zero” gadget. Or any other existing one if it fits your purpose better.

  • Juha

Hi Daniele,

I am a Beagle newby. I need to use Beagle as a new custom usb device

I think this project could be of interest for you:
http://beagleboard-usbsniffer.blogspot.com/

Regards,
Andrey.

Juha Kuikka wrote:

Hi,

You either need to create a gadget driver into the kernel or use the
gadgetfs from userspace. No changes to U-boot are necessary.

for a start I recommend gadgetfs, that worked pretty nice for me.