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.

AM335x USB0 cannot detect device

Other Parts Discussed in Thread: AM3352, TFP410, TPS65910

Hi

I work on custom AM3352 board and set usb0 as HOST mode with SDK 01.00.00.03

When I plug a usb storage

the system can not detect it.

If I don't unplug it and let the system reboot

the usb storage can be detected during the system boot up

What could be the problem ?

this is my boot log without  usb storage pluged

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.43-g875c69b (vic@vic-ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #26 Mon Nov 14 11:48:01 CST 2016
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x EVM
[    0.000000] cma: CMA: reserved 24 MiB at 85800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32256
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 95300K/130048K available (5867K kernel code, 304K rwdata, 2152K rodata, 261K init, 232K bss, 34748K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07dd0c4   (8021 kB)
[    0.000000]       .init : 0xc07de000 - 0xc081f49c   ( 262 kB)
[    0.000000]       .data : 0xc0820000 - 0xc086c060   ( 305 kB)
[    0.000000]        .bss : 0xc086c060 - 0xc08a6078   ( 233 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.000042] OMAP clocksource: timer1 at 24000000 Hz
[    0.000352] Console: colour dummy device 80x30
[    0.000383] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000392] This ensures that you still see kernel messages. Please
[    0.000399] update your kernel commandline.
[    0.000427] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.059182] pid_max: default: 32768 minimum: 301
[    0.059311] Security Framework initialized
[    0.059379] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059395] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.068643] CPU: Testing write buffer coherency: ok
[    0.069087] Setting up static identity map for 0x805c06e0 - 0x805c0738
[    0.070335] devtmpfs: initialized
[    0.072691] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.082331] omap_hwmod: tptc0 using broken dt data from edma
[    0.082438] omap_hwmod: tptc1 using broken dt data from edma
[    0.082532] omap_hwmod: tptc2 using broken dt data from edma
[    0.087108] omap_hwmod: debugss: _wait_target_disable failed
[    0.144221] pinctrl core: initialized pinctrl subsystem
[    0.145475] regulator-dummy: no parameters
[    0.148188] NET: Registered protocol family 16
[    0.150758] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.153975] cpuidle: using governor ladder
[    0.153995] cpuidle: using governor menu
[    0.162307] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered
[    0.164192] platform 49000000.edma: alias fck already exists
[    0.164224] platform 49000000.edma: alias fck already exists
[    0.164243] platform 49000000.edma: alias fck already exists
[    0.165666] OMAP GPIO hardware version 0.1
[    0.181226] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
[    0.181268] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[    0.185691] No ATAGs?
[    0.185714] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.220144] bio: create slab <bio-0> at 0
[    0.241044] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.242337] vbat: 5000 mV
[    0.242844] lis3_reg: no parameters
[    0.243450] wlan-en-regulator: 1800 mV
[    0.247610] vgaarb: loaded
[    0.248274] i2c-core: driver [palmas] using legacy suspend method
[    0.248288] i2c-core: driver [palmas] using legacy resume method
[    0.249190] SCSI subsystem initialized
[    0.251173] usbcore: registered new interface driver usbfs
[    0.251415] usbcore: registered new interface driver hub
[    0.251676] usbcore: registered new device driver usb
[    0.252904] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[    0.252939] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[    0.253446] pps_core: LinuxPPS API ver. 1 registered
[    0.253459] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.253624] PTP clock support registered
[    0.256126] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.257235] Advanced Linux Sound Architecture Driver Initialized.
[    0.259322] Switched to clocksource timer1
[    0.284560] NET: Registered protocol family 2
[    0.285676] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.285709] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.285734] TCP: Hash tables configured (established 1024 bind 1024)
[    0.285811] TCP: reno registered
[    0.285830] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.285856] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.286070] NET: Registered protocol family 1
[    0.286512] RPC: Registered named UNIX socket transport module.
[    0.286528] RPC: Registered udp transport module.
[    0.286536] RPC: Registered tcp transport module.
[    0.286545] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.287875] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[    0.291481] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.508084] VFS: Disk quotas dquot_6.5.2
[    0.508164] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.508786] NFS: Registering the id_resolver key type
[    0.508880] Key type id_resolver registered
[    0.508891] Key type id_legacy registered
[    0.508939] jffs2: version 2.2. (NAND) (SUMMARY)  c 2001-2006 Red Hat, Inc.
[    0.509156] msgmni has been set to 234
[    0.511119] NET: Registered protocol family 38
[    0.511169] io scheduler noop registered
[    0.511180] io scheduler deadline registered
[    0.511216] io scheduler cfq registered (default)
[    0.513398] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.520556] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.527204] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a 8250
[    1.176744] console [ttyS0] enabled
[    1.181678] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a 8250
[    1.191751] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a 8250
[    1.201775] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 60, base_baud = 3000000) is a 8250
[    1.211797] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 61, base_baud = 3000000) is a 8250
[    1.222880] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.230073] [drm] Initialized drm 1.1.0 20060810
[    1.248551] brd: module loaded
[    1.258881] loop: module loaded
[    1.262615] (hci_tty): inside hci_tty_init
[    1.267307] (hci_tty): allocated 250, 0
[    1.276937] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.288737] usbcore: registered new interface driver asix
[    1.294487] usbcore: registered new interface driver ax88179_178a
[    1.300865] usbcore: registered new interface driver cdc_ether
[    1.306987] usbcore: registered new interface driver smsc95xx
[    1.312971] usbcore: registered new interface driver net1080
[    1.318891] usbcore: registered new interface driver cdc_subset
[    1.325037] usbcore: registered new interface driver zaurus
[    1.330953] usbcore: registered new interface driver cdc_ncm
[    1.337320] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.343922] ehci-pci: EHCI PCI platform driver
[    1.348646] ehci-omap: OMAP-EHCI Host Controller driver
[    1.354314] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.360626] ohci-pci: OHCI PCI platform driver
[    1.365291] ohci-platform: OHCI generic platform driver
[    1.371059] usbcore: registered new interface driver cdc_wdm
[    1.377014] usbcore: registered new interface driver usb-storage
[    1.384411] mousedev: PS/2 mouse device common for all mice
[    1.391657] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
[    1.398828] input: ti-tsc as /devices/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input0
[    1.408430] i2c-core: driver [rtc-ds1307] using legacy suspend method
[    1.414957] i2c-core: driver [rtc-ds1307] using legacy resume method
[    1.422265] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.429506] 44e3e000.rtc: already running
[    1.434491] i2c /dev entries driver
[    1.438192] Driver for 1-wire Dallas network protocol.
[    1.446442] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.455899] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[    1.462813] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.470746] ledtrig-cpu: registered to indicate activity on CPUs
[    1.477126] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.484609] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.492328] usbcore: registered new interface driver usbhid
[    1.497934] usbhid: USB HID core driver
[    1.502135] HME wkup_m3_rproc_probe
[    1.505669] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
[    1.516831] oprofile: using arm/armv7
[    1.521008] TCP: cubic registered
[    1.524342] Initializing XFRM netlink socket
[    1.528646] NET: Registered protocol family 17
[    1.533194] NET: Registered protocol family 15
[    1.537797] Key type dns_resolver registered
[    1.542989] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[    1.551795] cpu cpu0: cpu0 clock notifier not ready, retry
[    1.557425] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
[    1.565269] HME am33xx_pm_init
[    1.568738] PM: bootloader does not support rtc-only!
[    1.573956] ThumbEE CPU extension supported.
[    1.578285] Registering SWP/SWPB emulation handler
[    1.584966] wlan-en-regulator: disabling
[    1.588917] lis3_reg: disabling
[    1.592204] vbat: disabling
[    1.595016] regulator-dummy: disabling
[    1.599695] Error: Driver 'tfp410' is already registered, aborting...
[    1.606716] panel panel: pins are not configured
[    1.613859] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.620572] [drm] No driver support for vblank timestamp query.
[    1.677537] Console: switching to colour frame buffer device 100x30
[    1.691936] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[    1.697537] tilcdc 4830e000.lcdc: registered panic notifier
[    1.703167] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[    1.709923] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    1.715104] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    1.722543] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    1.728941] nand: Samsung NAND 128MiB 3,3V 8-bit
[    1.733647] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    1.739351] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[    1.744920] 10 ofpart partitions found on MTD device omap2-nand.0
[    1.751076] Creating 10 MTD partitions on "omap2-nand.0":
[    1.756508] 0x000000000000-0x000000020000 : "NAND.SPL"
[    1.763958] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[    1.771950] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[    1.779819] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[    1.787568] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[    1.795678] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[    1.803778] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[    1.811502] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[    1.819973] 0x000000200000-0x000000a00000 : "NAND.kernel"
[    1.833949] 0x000000a00000-0x000008000000 : "NAND.file-system"
[    1.941244] tps65910 0-002d: No interrupt support, no core IRQ
[    1.951990] vrtc: 1800 mV
[    1.955030] vrtc: supplied by vbat
[    1.960388] vio: at 1500 mV
[    1.963407] vio: supplied by vbat
[    1.968734] vdd_mpu: 912 <--> 1375 mV at 1137 mV
[    1.973586] vdd_mpu: supplied by vbat
[    1.979267] vdd_core: 912 <--> 1150 mV at 1137 mV
[    1.984206] vdd_core: supplied by vbat
[    1.989463] vdd3: 5000 mV
[    1.993663] vdig1: at 1800 mV
[    1.996828] vdig1: supplied by vbat
[    2.001922] vdig2: at 1800 mV
[    2.005081] vdig2: supplied by vbat
[    2.010135] vpll: at 1800 mV
[    2.013205] vpll: supplied by vbat
[    2.018169] vdac: at 1800 mV
[    2.021280] vdac: supplied by vbat
[    2.026178] vaux1: at 1800 mV
[    2.029379] vaux1: supplied by vbat
[    2.034488] vaux2: at 3300 mV
[    2.037649] vaux2: supplied by vbat
[    2.042969] vaux33: at 3300 mV
[    2.046234] vaux33: supplied by vbat
[    2.051440] vmmc: 1800 <--> 3300 mV at 3300 mV
[    2.056091] vmmc: supplied by vbat
[    2.061169] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.099874] HME wkup_m3_rproc_probe
[    2.103630]  remoteproc0: wkup_m3 is available
[    2.108119]  remoteproc0: Note: remoteproc is still under development and considered experimental.
[    2.117166]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[    2.128800]  remoteproc0: Direct firmware load failed with error -2
[    2.135130]  remoteproc0: Falling back to user helper
[    2.141914] UBI: attaching mtd9 to ubi0
[    2.724097] UBI: scanning is finished
[    2.737061] UBI: attached mtd9 (name "NAND.file-system", size 118 MiB) to ubi0
[    2.744401] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.751239] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    2.757894] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.764810] UBI: good PEBs: 944, bad PEBs: 0, corrupted PEBs: 0
[    2.770772] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[    2.777940] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 11163470
[    2.786867] UBI: available PEBs: 0, total reserved PEBs: 944, PEBs reserved for bad PEB handling: 20
[    2.796096] UBI: background thread "ubi_bgt0d" started, PID 859
[    2.859361] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.865507] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
[    2.873259] libphy: 4a101000.mdio: probed
[    2.877301] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver unknown
[    2.885392] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver unknown
[    2.894480] cpsw 4a100000.ethernet: Detected MACID = ec:24:b8:7c:a8:63
[    2.904164] input: volume_keys@0 as /devices/volume_keys@0/input/input1
[    2.911867] drivers/rtc/hctosys.c: unable to open rtc device (rtc1)
[    2.922044] ALSA device list:
[    2.925046]   No soundcards found.
[    2.946356] UBIFS: background thread "ubifs_bgt0_0" started, PID 876
[    2.994283] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.000386] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.009583] UBIFS: FS size: 115421184 bytes (110 MiB, 909 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    3.019472] UBIFS: reserved for root: 0 bytes (0 KiB)
[    3.024556] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 01819268-B38D-4E77-A9F4-0F0F8753DF0E, small LPT model
[    3.036216] VFS: Mounted root (ubifs filesystem) on device 0:14.
[    3.044274] devtmpfs: mounted
[    3.047827] Freeing unused kernel memory: 260K (c07de000 - c081f000)
INIT: version 2.88 booting
Starting udev
[    3.734323] udev[894]: starting version 164
[    4.166665]  remoteproc0: powering up wkup_m3
[    4.190335]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 154412
[    4.198105] PM: CM3 Firmware Version = 0x190
[    4.380082]  remoteproc0: remote processor wkup_m3 is now up
[    5.779126] CAN device driver interface
[    5.845457] 47401300.usb-phy supply vcc not found, using dummy regulator
[    6.265056] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    7.776112] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=68)
[    8.391636] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=71)
[    9.131391] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[    9.137972] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[    9.146128] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    9.152998] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.160318] usb usb1: Product: MUSB HDRC host driver
[    9.165308] usb usb1: Manufacturer: Linux 3.14.43-g875c69b musb-hcd
[    9.171630] usb usb1: SerialNumber: musb-hdrc.0.auto
[    9.180148] hub 1-0:1.0: USB hub found
[    9.184002] hub 1-0:1.0: 1 port detected
[    9.193706] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    9.200370] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[    9.208462] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.215351] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.222627] usb usb2: Product: MUSB HDRC host driver
[    9.227618] usb usb2: Manufacturer: Linux 3.14.43-g875c69b musb-hcd
[    9.233951] usb usb2: SerialNumber: musb-hdrc.1.auto
[    9.240960] hub 2-0:1.0: USB hub found
[    9.246306] hub 2-0:1.0: 1 port detected
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
Configuring network interfaces... [   10.111359] net eth0: initializing cpsw version 1.12 (0)
[   10.189778] net eth0: phy found : id is : 0x221560
[   10.269725] net eth0: phy found : id is : 0x221560
udhcpc (v1.20.2) started
Sending discover...
[   12.189920] libphy: 4a101000.mdio:01 - Link is Up - 0/Half
[   12.269908] libphy: 4a101000.mdio:01 - Link is Down
Sending discover...
[   14.189986] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[   14.269894] libphy: 4a101000.mdio:01 - Link is Up - 100/Full
Sending discover...
Sending select for 192.168.1.30...
Lease of 192.168.1.30 obtained, lease time 7200
/etc/udhcpc.d/50default: Adding DNS 168.95.1.1
/etc/udhcpc.d/50default: Adding DNS 168.95.192.1
done.
INIT: Entering runlevel: 3
Starting syslogd/klogd: done
Stopping Bootlog daemon: bootlogd.

Arago Project http://arago-project.org am335x-evm ttyO0

Arago 2013.05 am335x-evm ttyO0

am335x-evm login: