This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB In OMAP L137 part II

Other Parts Discussed in Thread: OMAP-L137

The print below shows before and after I inserted my USB device. I need to mount my program to the device. Notice that there are 4 dev files added. What are these files? Which one should I use?

 Is there a sample program that I can try?

 root@192.168.0.100:~# ls /dev/usb*

/dev/usbdev1.1_ep00  /dev/usbdev1.2_ep00  /dev/usbdev2.1_ep00

/dev/usbdev1.1_ep81  /dev/usbdev1.2_ep81  /dev/usbdev2.1_ep81

root@192.168.0.100:~# usb 1-1.1: new full speed USB device using ohci and address 4

usb 1-1.1: configuration #1 chosen from 1 choice

 root@192.168.0.100:~# ls /dev/usb*

/dev/usbdev1.1_ep00  /dev/usbdev1.4_ep00  /dev/usbdev2.1_ep00

/dev/usbdev1.1_ep81  /dev/usbdev1.4_ep02  /dev/usbdev2.1_ep81

/dev/usbdev1.2_ep00  /dev/usbdev1.4_ep81

/dev/usbdev1.2_ep81  /dev/usbdev1.4_ep83

root@192.168.0.100:~#

  • When I plugged in USB stick, mouse, etc., I would get a message on the console window that corresponded to what I plugged in.  For example a USB stick would make a /dev/sda that I could mount and access.  I'm honestly not sure what the USB endpoints you mention above do.

    Have you enabled USB in the kernal with menuconfig as advised starting on p. 29 of LSP_02.20_OMAP-L137_User_Guide.pdf before building uImage?

    I don't have access to HW right now, but below are scripts from the console for /dev/sda using LSP 2.20.00.03 when plugging and unplugging a USB memory stick.

    -Joe

    root@192.168.1.100:/dev# usb 2-1: new high speed USB device using musb_hdrc and
    address 2
    usb 2-1: configuration #1 chosen from 1 choice
    scsi0 : SCSI emulation for USB Mass Storage devices
      Vendor: Generic   Model: STORAGE DEVICE    Rev: 1.25
      Type:   Direct-Access                      ANSI SCSI revision: 00
    SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
    sda: Write Protect is off
    sda: assuming drive cache: write through
    SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
    sda: Write Protect is off
    sda: assuming drive cache: write through
     sda: unknown partition table
    sd 0:0:0:0: Attached scsi removable disk sda
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    usb 2-1: USB disconnect, address 2

    usb 1-1: new full speed USB device using ohci and address 2
    usb 1-1: not running at top speed; connect to a high speed hub
    usb 1-1: configuration #1 chosen from 1 choice
    scsi1 : SCSI emulation for USB Mass Storage devices
      Vendor: Generic   Model: STORAGE DEVICE    Rev: 1.25
      Type:   Direct-Access                      ANSI SCSI revision: 00
    SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
    sda: Write Protect is off
    sda: assuming drive cache: write through
    SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
    sda: Write Protect is off
    sda: assuming drive cache: write through
     sda: unknown partition table
    sd 1:0:0:0: Attached scsi removable disk sda
    sd 1:0:0:0: Attached scsi generic sg0 type 0

     

  • The USB device I am trying to connect to is a standard RS232-USB interface device (the device is connected to the RS232 side). It looks like I need to enable the USB via menuconfig as you mentioned. Where is the menuconfig located? I could not find it and the doc does not specify where to run the commands

    Thanks

    Davidz

  • It is a make command line option. (with other options) that should be in the same LSP_02.20_OMAP-L137_User_Guide.pdf doc (Sorry, I don't have handy).  Just do a text search for menuconfig in LSP_02.20_OMAP-L137_User_Guide.pdf. 

    Or search on: http://tiexpressdsp.com/index.php?title=Using_Linux_PSP_on_OMAP-L1 right after "Driver configuration in Linux kernel"

  • David,

    You would have to enable USB serial support in the USB section of the menuconfig.   Follow Drivers->USB.

    Once you have it you would see your USB serial devices as "/dev/ttyUSB[1,1,2....]"

    regards

    swami

  • I am now able to run menuconfig. Now, my problem is to select the appropriate USB driver. I am using GUC232a USB/rs232 converter. I do not see anything close to it (under USB Serial Converter Support).

    Can you help me identify the exact driver for my converter?

    Thanks,

    Davidz