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.

How to use USB in omap L-138 exp. kit ?

Other Parts Discussed in Thread: OMAPL138

Hi,
I build Davinci kernel for omapL138 to support USB , and the PC reads it ,
How to begin transfer files using USB from PC to the board ??

Thank you.

  • Hi Muhammad nabil,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    I would like to understand your question better.

    Muhammad: said:
    I build Davinci kernel for omapL138 to support USB , and the PC reads it ,

    What does the text "the PC reads it" mean here?. Are you trying to connect some other PC to omapl138 using USB ports? ( USB OTG / USB Host/ Uart- USB  )

    Muhammad: said:
    How to begin transfer files using USB from PC to the board ?? 

    What type of connection is this..? whether you are trying to have your PC as host and omapl138 as a slave? If it is a host to device connection, using the usual linux command "cp" you can transfer files.

     

    Regards,

    Shankari.

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi Shankari,
    Thanks for replying on my question,

    " The PC reads it " I mean that i can see the USB name in the  " tty " directory on the board kernel.
    I'm trying to make a connection between the board and PC to transfer files to the board to be run on it because when i made an executable file and want to test it on the board , I power off the board and put the memory card in the PC and transfer the file then power on the board and execute the file ........ , so i want to solve this problem and transfer the file to the board with out doing this dummy procedure.

    We need the USB to because the next step is to connect the board to [ b100 ] using the USB and receive data from it .

    Thank you.
    Muhammad

  • Hi Shankari,

    Yes, I'm trying to connect some other PC to omapL138 using USB ports( USB OTG/ USB Host/ Uart -USB). How to do that??
    Urgent help please.

    Muhammad. 

  • Hi Muhammed,

    I think, your question is about executing a binary which resides at SD card, which means you are booting from SD? right? ( i.e.,  root filesystem is at SD card. )

    Please confirm the type of filesystem you use.

    You can overcome this problem if you use NFS as root filesystem. If it is NFS, the filesystem will be at your PC which will get mounted as NFS on your target.

    You can have your executables under NFS and run various executables without any power off the target. For this you have to boot the target with NFS with all the appropriate u-boot environmental variables like "bootargs"

    The following points may clarify few other things.

    1. If you boot omapl138 using nfs, then you can have your executables at filesystems ( nfs)  and run on omapl138 target.

    2. USB-UART will be used to flash the binaries from PC to board through USB ports on PC using teraterm ( i.e. /ttyUSB0 ) Are you looking for this option?

    3. USB Host on omapl138 will be used to connect any external USB slave devices . For example: Pendrives. For this, you may have to enable the USB drivers on kernel.

    4. USB OTG on omapl138 will be configured either as host or gadget. For this, you may have to enable the USB OTG configurations on kernel.

     

    If you are looking for options 2,3 & 4,  reply back with more information on what are you actually trying to do.

     

    Regards,

    Shankari

     

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

     

     

      

  • Hi Shankari,
    Thanks for replying on my question.
    For the fourth option:

     4. USB OTG on omapl138 will be configured either as host or gadget. For this, you may have to enable the USB OTG configurations on kernel. 

    I want to use USBOTG for transferring data from PC in real time. How to get the USBOTG working and how to transfer data through it ??
    Thanks in advance for your articulating.

    Muhammad