Beagleboard as USB device

HI!

I am using the beagleboard for embedded image processing applicatons. However, I want to configure some parameter from a PC, and I would like to configure the BB USB OTG port so the PC can find a CDC device when the BB gets connected to it.
I know how to configure the OTG port as Host, but I dont know how to configure it as a device.

Thanks!!

Hmmm, it seems that when I connect the BB to the PC with a mini B to A
cable the BB freezes out. However, I try to force to OTG port to be a
device like this: "echo peripheral > /sys/devices/platform/musb_hdrc/
mode", but not working...
Any ideas??

I am using the beagleboard for embedded image processing applicatons. However, I want to configure some parameter from a PC, and I would like to configure the BB USB OTG port so the PC can find a CDC device when the BB gets connected to it.
I know how to configure the OTG port as Host, but I dont know how to configure it as a device.

Load the desired gadget driver on the BeagleBoard:

modprobe g_cdc

http://www.linux-usb.org/gadget/

Jan

That totally worked, and the info was just clear. Thanks a lot.
I will try HID communications some day, and hope it will be as easy as
CDC.