usb otg not working on xm

Hi,
I have two issues running my beagleboard-xm
1.When I connect beagleboard xm via otg cable i do not get any device created on my 10.10 machine when i check dmesg i get this

[251813.848052] usb 2-5: new high speed USB device using ehci_hcd and address 17
[251816.982261] usb 2-5: USB disconnect, address 17

and lsusb gives texas instrument device for 1 sec and goes away
also,

  1. when i connect xm through serial cable without any mmc in it, it gives garbage on minicom
    What might be the problem?
    Thanks in advance

If you leave out the SD the board will never boot. It has no boot source. The garbage as you call it is normal when it has no place to boot from. It is looking for a boot source via the serial port.

I suggest you put the SD card that shipped with the board back into the board.

Gerald

1.When I connect beagleboard xm via otg cable i do not get any device created on my 10.10 machine

To get the OTG port to function in device mode, you need to load a module for the desired device function.

Gadget zero is:

modprobe g_zero

For mass storage, you need to first set up a file or partition as storage. See:

http://www.mail-archive.com/linux-usb-devel@lists.sourceforge.net/msg42722.html

then do

modprobe g_file_storage stall=0 file=your_storage_file

Jan