Hi Alexander,

Thanks for your suggestions.

I enabled EHCI and USB_MUSB_HOST = y to work and made some more changes in the kernel file which could reflect the USB part of the factory image kernel. I also modified the bitbake file in which I removed all the sed lines. Eventually, my device is recognized during boot up:

[    2.512542] usb 1-1: New USB device found, idVendor=1e2d, idProduct=004f     
[    2.519622] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.527130] usb 1-1: Product: TC65i                                          
[    2.530822] usb 1-1: Manufacturer: Cinterion                                 
[    2.536621] cdc_acm 1-1:1.0: ttyACM0: USB ACM device

I am very happy to see that indeed. However, there is a small problem there. Although recognized, the device never shows up in /dev. Hence, I am unable to connect to it. For the default factory kernel, it is recognized during boot up and shows up as /dev/ttyACM0 which allows me to connect to it. I am wondering why this is so? Am I missing any driver in my kernel.

Just some thing else I wanted to point out. If I put the usb otg after the boot up, it shows up as /dev/ttyACM0. However, that was a bit unexpected and not of help because the GPRS is embedded inside the box and I cannot ask the customer to put it after bootup. 

Thanks!

Chinab

On Wed, Nov 2, 2011 at 5:25 PM, Alexander Thomas <alexander.thomas@esaturnus.com> wrote:
Hi Chinab,

You will need to enable EHCI to make USB work at all. This is the USB
Host Controller section of the factory config.

# CONFIG_USB_C67X00_HCD is not set
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_HCD_OMAP=y
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1760_HCD is not set
# CONFIG_USB_ISP1362_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
# CONFIG_USB_U132_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HWA_HCD is not set
CONFIG_USB_MUSB_HDRC=y
# CONFIG_USB_MUSB_TUSB6010 is not set
CONFIG_USB_MUSB_OMAP2PLUS=y
# CONFIG_USB_MUSB_AM35X is not set
CONFIG_USB_MUSB_HOST=y
# CONFIG_USB_MUSB_PERIPHERAL is not set
# CONFIG_USB_MUSB_OTG is not set
CONFIG_USB_MUSB_HDRC_HCD=y
# CONFIG_MUSB_PIO_ONLY is not set
CONFIG_USB_INVENTRA_DMA=y
# CONFIG_USB_TI_CPPI_DMA is not set
CONFIG_USB_MUSB_DEBUG=y

Also make sure that 'OMAP3430 support' and 'Gumstix Overo board' are
enabled in 'System Type'. If everything is right you should find these
lines in your config (which cannot be directly set through
menuconfig):

# TI OMAP Common Features
#
CONFIG_ARCH_OMAP_OTG=y
# CONFIG_ARCH_OMAP1 is not set
CONFIG_ARCH_OMAP2PLUS=y

Alexander


On Tue, Nov 1, 2011 at 1:39 PM, Chinab Chugh <chinab91@gmail.com> wrote:
> I managed to use the OTG port to connect to the GPRS modem but only with the
> pre-built image only - from the gumstix website
> [http://cumulus.gumstix.org/images/angstrom/factory/]
> If I use my own kernel, it does not allow me still to use the OTG USB port.
> I am glad to know what the problem is but I still am unsure as to which
> specific options I have to add inside the kernel from the menuconfig to make
> USB OTG enabled?
> The following are few options in my .config file:
> CONFIG_USB_OTG=y
> #
> # USB Host Controller Drivers
> #
> # CONFIG_USB_C67X00_HCD is not set
> # CONFIG_USB_EHCI_HCD is not set
> # CONFIG_USB_OXU210HP_HCD is not set
> # CONFIG_USB_ISP116X_HCD is not set
> # CONFIG_USB_ISP1760_HCD is not set
> # CONFIG_USB_ISP1362_HCD is not set
> # CONFIG_USB_OHCI_HCD is not set
> # CONFIG_USB_U132_HCD is not set
> # CONFIG_USB_SL811_HCD is not set
> # CONFIG_USB_R8A66597_HCD is not set
> # CONFIG_USB_HWA_HCD is not set
> CONFIG_USB_MUSB_HDRC=y
> CONFIG_USB_MUSB_TUSB6010=y
> # CONFIG_USB_MUSB_OMAP2PLUS is not set
> # CONFIG_USB_MUSB_AM35X is not set
> # CONFIG_USB_MUSB_HOST is not set
> # CONFIG_USB_MUSB_PERIPHERAL is not set
> CONFIG_USB_MUSB_OTG=y
> CONFIG_USB_GADGET_MUSB_HDRC=y
> CONFIG_USB_MUSB_HDRC_HCD=y
> # CONFIG_MUSB_PIO_ONLY is not set
> # CONFIG_USB_INVENTRA_DMA is not set
> # CONFIG_USB_TI_CPPI_DMA is not set
> CONFIG_USB_TUSB_OMAP_DMA=y
> CONFIG_USB_MUSB_DEBUG=y
> Thanks!
>
> On Fri, Oct 28, 2011 at 11:33 PM, Chinab Chugh <chinab91@gmail.com> wrote:
>>
>> In a normal linux desktop, I can connect to it using a serial port
>> application, say minicom. So, it just pops up as a /dev/ttyACM0
>> In the case of using USB Host+Hub on the desktop, it automatically (shown
>> during bootlog) popped up as a /dev/ttyACM0 and I could send messages to it
>> using kermit/minicom. I have put up a driver which should do this (cdc_acm)
>> -  its like a USB serial support for GSM devices. So I thought the modem
>> should enumerate and bring up the device during boot up.
>> With regards to the connection with OTG USB port, I will check soon if I
>> can see any data packets.
>> Chinab
>>
>>
>> On Fri, Oct 28, 2011 at 11:13 PM, Steve Modica <modica@small-tree.com>
>> wrote:
>>>
>>> Have you compared these results with a normal linux host?  Are you
>>> expecting there's a driver or utility that will grab this device now that
>>> it's seen?
>>> From what I see, the device was seen and a driver registered.  Is there a
>>> device file available now?  Are you seeing USB traffic? You should put a
>>> Beagle Analyzer on and see if you are getting a good inquiry back from the
>>> device.
>>> Steve
>>> On Oct 28, 2011, at 10:03 AM, Chinab Chugh wrote:
>>>
>>> Hey,
>>>
>>> I used the OTG port to connect the GPRS modem and it did not work.
>>> I did ground pins 4 and 5 of the OTG USB on the tobi board to ensure the
>>> gumstix acts as the master. This is because I did not have the OTG cable.
>>>
>>> Regarding power, I think the only power is consumed by the connection of
>>> the USB device to my device only as the GPRS device itself is external
>>> powered. So, I dont think I am using more than 100mA either.
>>> Bootlog is as follows:
>>>
>>> [    4.828887] usbcore: registered new interface driver usbserial
>>> [    4.835174] USB Serial support registered for
>>> generic
>>> [    4.840606] usbcore: registered new interface driver
>>> usbserial_generic
>>> [    4.847473] usbserial: USB Serial Driver
>>> core
>>>
>>>
>>> reading
>>> boot.scr
>>> [    4.972534] USB Serial support registered f)
>>>
>>> Is there anything which I missed?
>>>
>>> Thanks.
>>>
>>> Chinab
>>>
>>>
>>> On Fri, Oct 28, 2011 at 4:27 PM, Steve Modica <modica@small-tree.com>
>>> wrote:
>>>>
>>>> The pins for using Full Speed mode are not all connected.  Further, the
>>>> driver does not have the code to drive the chip in that mode either (it's
>>>> different pins)
>>>>
>>>> Steve
>>>>
>>>> On Oct 28, 2011, at 7:35 AM, Alexander Thomas wrote:
>>>>
>>>> > Hi Chinab,
>>>> >
>>>> > There is no way at all to get the USB host port to work in anything
>>>> > but high-speed mode. Stop trying to do it, you'll only waste your time
>>>> > (been there, done that). Although the OMAP35xx does support USB 1.1 on
>>>> > the host port, it requires a separate USB 1.1 PHY chip which is not
>>>> > present on the Gumstix boards.
>>>> >
>>>> > The good news is that the OTG port in host mode does support low- and
>>>> > full-speed. But if your device draws more than 100mA, you will still
>>>> > need the powered hub.
>>>> >
>>>> > Alexander
>>>> >
>>>> >
>>>> > On Fri, Oct 28, 2011 at 2:17 PM, Chinab Chugh <chinab91@gmail.com>
>>>> > wrote:
>>>> >> Hey All,
>>>> >> I have a overo earth+tobi interface running 2.6.39 kernel. I want to
>>>> >> use a
>>>> >> 2.0 USB 12MBPS GPS modem device with my gumstix as a host.
>>>> >> I tried to connect it to the USB host, but it never worked directly
>>>> >> unless
>>>> >> it was connected via a USB hub (non-external powered).
>>>> >> To understand why this is the case, I read on the Gumstix website
>>>> >> that: Gumstix "Host" = USB High speed (480Mbit/s ONLY). You will need
>>>> >> a hub
>>>> >> to connect to most USB -> Serial adapters
>>>> >> [http://gumstix.org/getting-started.html]
>>>> >> But why is it '480Mbps ONLY'? The OMAP35x Technical Manual mentions
>>>> >> that the
>>>> >> USB host subsystem complies with USB 2.0 12 or 1.5 or 480 Mbps
>>>> >> signals. Also
>>>> >> it states that it complies with both EHCI and OHCI.
>>>> >> So how do I get my Gumstix to be configured to making such a USB
>>>> >> connection
>>>> >> to work... I did try to add the OHCI module in the kernel but it did
>>>> >> not
>>>> >> help. Is there any pin on the omap or a register value which I can
>>>> >> use to
>>>> >> ensure that OHCI is used instead?
>>>> >> It is interesting that many people provide the solution as using a
>>>> >> USB hub.
>>>> >> I know that is a solution, but I am a bit confused as to why I have
>>>> >> to use
>>>> >> it in the first place...
>>>> >> Furthermore, I don't mind using the OTG port - will it work there
>>>> >> without a
>>>> >> hub?
>>>> >> Thanks a lot for helping! I am a bit lost so will appreciate any
>>>> >> suggestions.
>>>> >> Chinab
>>>> >
>>>> >
>>>> > --
>>>> > Alexander Thomas
>>>> > Research Engineer
>>>> >
>>>> > eSATURNUS NV
>>>> > T +32 16 40 12 82
>>>> > M +32 477 51 63 62
>>>> > http://www.esaturnus.com
>>>> >
>>>> >
>>>> > ------------------------------------------------------------------------------
>>>> > The demand for IT networking professionals continues to grow, and the
>>>> > demand for specialized networking skills is growing even more rapidly.
>>>> > Take a complimentary Learning@Cisco Self-Assessment and learn
>>>> > about Cisco certifications, training, and career opportunities.
>>>> > http://p.sf.net/sfu/cisco-dev2dev
>>>> > _______________________________________________
>>>> > gumstix-users mailing list
>>>> > gumstix-users@lists.sourceforge.net
>>>> > https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>>> >
>>>>
>>>> --
>>>> Steve Modica
>>>> CTO -  Small Tree Communications
>>>> www.small-tree.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> The demand for IT networking professionals continues to grow, and the
>>>> demand for specialized networking skills is growing even more rapidly.
>>>> Take a complimentary Learning@Cisco Self-Assessment and learn
>>>> about Cisco certifications, training, and career opportunities.
>>>> http://p.sf.net/sfu/cisco-dev2dev
>>>> _______________________________________________
>>>> gumstix-users mailing list
>>>> gumstix-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>>
>>>
>>>
>>> --
>>> Take care and enjoy the day!
>>>
>>> Chinab :) :D :P
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The demand for IT networking professionals continues to grow, and the
>>> demand for specialized networking skills is growing even more rapidly.
>>> Take a complimentary Learning@Cisco Self-Assessment and learn
>>> about Cisco certifications, training, and career opportunities.
>>>
>>> http://p.sf.net/sfu/cisco-dev2dev_______________________________________________
>>> gumstix-users mailing list
>>> gumstix-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>>
>>> --
>>> Steve Modica
>>> CTO -  Small Tree Communications
>>> www.small-tree.com
>>> phone: 651-209-6509 ext 301
>>> mobile: 651-261-3201
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The demand for IT networking professionals continues to grow, and the
>>> demand for specialized networking skills is growing even more rapidly.
>>> Take a complimentary Learning@Cisco Self-Assessment and learn
>>> about Cisco certifications, training, and career opportunities.
>>> http://p.sf.net/sfu/cisco-dev2dev
>>> _______________________________________________
>>> gumstix-users mailing list
>>> gumstix-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>>
>>
>>
>>
>> --
>> Take care and enjoy the day!
>>
>> Chinab :) :D :P
>>
>>
>
>
>
> --
> Take care and enjoy the day!
>
> Chinab :) :D :P
>
>
>
> ------------------------------------------------------------------------------
> RSA&reg; Conference 2012
> Save &#36;700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>



--
Alexander Thomas
Research Engineer

eSATURNUS NV
T +32 16 40 12 82
M +32 477 51 63 62
http://www.esaturnus.com

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
Take care and enjoy the day!

Chinab :) :D :P