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.

unable to make USB host work on the AM1808 with 03_22, I was able with 03_20?

Other Parts Discussed in Thread: AM1808

I'm hoping someone from TI can 

a) confirm, from first hand knowledge, that the AM1808 does support USB host (mass storage) in 03.22, with USB2.0
b) explain how to enable USB2.0 in mass storage mode

Using the older 03_20 PSP we have been successful in getting USB2.0 operational in host mode, using a USB attached hard drive.

However on the 03_22 PSP we are not successful in attaching a USB2.0 hard disk - again using the LogicPD devboard (which was modified with the register 133, pulled low, and the type A connector).  This board functions correctly with the 03_20 PSP.  USB1.1 does operate as it did in 03_20, using the second 1.1 connector on the LogicPD.

to recap

a) we need USB2.0 in host mode on the 03_22 PSP, the stock uImage does not have an operational USB stack
b) we need USB 2.0 host, with mass storage
c) we are seeing regressions between 03_20 and 03_22 PSP
d) the wiki is out of date, referencing components that were deprecated between 03_20 and 03_22.  further the wiki asks for mutually exclusive components to be selected

I'm growing stressed as this problem has been circling the community for some weeks and I need to sign off on the AM1808 before a production run 

my read is that since OTG is not supported that host and gadget are mutually exclusive - however gadget must checked in the config, but "USB Peripheral Controller" needs to be a module?   I posted a similar question here, but feedback isnt accurate.  http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/246174.aspx

The wiki that is confusing me so badly :)

http://processors.wiki.ti.com/index.php/Building_03.22_PSP_release_Components_for_OMAP-L138#Driver_configuration_in_the_Linux_kernel

can I get some guidance - I *think* I need to enable Gadget support?  however if I do this the Inventra  needed for host disappear?   how can this be if host and gadget are mutually exclusive?

  • Hi, we did some leg work and have more info for our problem - using JTAG we've confirmed that the hardware is in periphal mode

    register 0x01e00460 is 0x00000080 - which is a B device and host mode = 0

    we ran a control experiment using the 03_20 kernel and got the values we expected,  the register value is

    0x005d (b device = 0, host mode = 1

    we have no idea how to enable host mode from menuconfig

  • I was reading through the posts looking for help on this problem because I have encountered the same issue: I cannot get the USB into host mode.   More specifically, I cannot see how USB_MUSB_HOST can possibly be set with the Kconfig in DaVinci-PSP-SDK-03.22.00.02/src/kernel/linux-03.22.00.02/drivers/usb/musb.    

    USB_MUSB_HOST is the #define that sets the host register.  

    Let me know if you learn anything. Much appreciated,

    -Charles

  • nice find with the USB_MUSB_HOST!  

    I just read over the Kconfig you referenced, I'm even more confused now

    I hope someone from TI can explain to us whats going on,  or provide a working .config file!

  • Hi Chris,

    Thanks for pointing this out. Sorry for the delayed response. As you mentioned, even we came across a problem in enabling the "inventra" in menuconfig while using Davinci PSP.

    Your post is taken forward to the appropriate team. we will get back to you at the earliest.

     

    Regards,

    Shankari.

  • To detect mass storage USB with USB 2.0 port, the kernel needs to have USB gadget mass storage selected. Because of this selection you can either install the modules to the file system (make modules_install) or select "mass storage gadget" as built-in.

    If you are interested in the history of this change, the patch is at http://www.spinics.net/lists/linux-usb/msg48843.html 

  • Thanks, but I need USB host mass storage - not gadget. That is, I want to connect a USB drive, not be one
  • Hey Loc, I'm still confused - either you're misunderstanding my question or I'm not seeing something right in front of me - can you reply with a more than a few sentence explanation   I need some more hand holding :)

    a) I need USB Host, not Gadget (I want to use a hard drive, not be one)

    b) my understanding is that Gadget and Host are mutually exclusive?

    c) Loc are you disagreeing with Shankari  that there is a problem with the config files for enabling host mode?

  • My 2 cents. It's been a while...here's what I remember. Or misremembering.

    PSP-SDK 03.20 did not really support OTG. It supported either Host or Device and did not support both ie OTG. Or rather it did not support OTG very well. The USB OTG controller was forced to be either Host or Device mode using special test modes. I had the impression that these test modes were discouraged for production use.

    PSP-SDK 03.22 went fully OTG. It supported only OTG (both Host and Device). It did not support exclusively Host or Device. The role is chosen at runtime by the ID pin and loaded modules. I would guess that you would enable OTG, Inventra(MUSB) and the Host Mass Storage Class as a builtin. Disable any indvidual Gadgets. You might have to configure the ID pin. I believe a floating ID pin means Device and a grounded ID pin means Host. I think my old L137 EVM had  special mini-B to A that shorted the pin in the cable.

  • Norman,  this answer was very informative.   Thanks for the input.  I was having the same problems as Chris and listening in the background.  My board has the ID pin tied to GND (host only mode) and I have an AM18X eval board that has been modified with the ID pin tied to GND to match our custom board.  I'll try the "full OTG" mode and see the system falls into host mode.   Fingers crossed and stay posted. 

  • Chris,

    I made a step further with my original problem, check if it helps yours:

    http://e2e.ti.com/support/embedded/linux/f/354/p/232243/908000.aspx#908000

    Istvan

  • Chris, Charles:

    Can either of you confirm success in getting USB Host with Mass Storage working again on the PSP 3.22.02 on AM1808?  Any additional configuration or caveats?

    Thanks,

    Jim

  • Hi Jim,

    Take a look at the thread linked in my previous post, I needed some modifications to PSP 3.22 to get that working (not sure if it's fixed in the latest release).

    Istvan

  • Hi Istvan,

    Yes I saw your posts in the other thread, it sounded like you were successful with a USB Wifi dongle?  Were you successful with a USB flash drive too?

    I'm just trying to understand if anything beyond the previous discussions/posts/patches would be required, since no one actually came back and said USB host w/ mass storage is running properly on their AM1808.

    Thanks,

    Jim

  • Jim,

    I've not tried the USB2.0 with usb drives, but it was working fine with the USB 1.1 host on my LCDK without any modifications. After the described mods in the kernel, USB 2.0 was working with the wifi dongle and now I'm using it in audio gadget mode without issues - I cannot try it now as it's built in the end-device, but most probably that should be ok.

    Istvan

  • Istvan,

    Thanks for your feedback.

    JIm