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.

Use USB0 for host and USB1 for slave, USB doesn't work?

Other Parts Discussed in Thread: DA8XX

Hi all,

My board designed USB0 for host and USB1 for slave. All seems fine in the startup messages. But when I plug in a USB disk, nothing happens. I can see a rising voltage on the D+ pin.

I found that EVM use USB0 for slave and USB1 for host. Is this the reason? if yes, what should I do to let the USB work? if not, what's the reason?

P.S.

I set the usb0_drvvbus and usb1_drvvbus as gpio. Is this OK?

What's the plat_mode stand for in the following message?

[    0.138763] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[    0.139068] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1

Thank you very much.

Lihua

-------------------------------Below is the dmesg text---------------------------------------

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0 (zlh@zlh-Desktop) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #155 Wed Dec 19 18:01:32 CST 2012
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: am335xevm
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES1.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 253480k/253480k available, 8664k 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 : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc057d000   (5588 kB)
[    0.000000]       .init : 0xc057d000 - 0xc05ba000   ( 244 kB)
[    0.000000]       .data : 0xc05ba000 - 0xc0614980   ( 363 kB)
[    0.000000]        .bss : 0xc06149a4 - 0xc0639e24   ( 150 kB)
[    0.000000] NR_IRQS:396
[    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: GPTIMER2 at 24000000 Hz
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[    0.058929] pid_max: default: 32768 minimum: 301
[    0.059082] Security Framework initialized
[    0.059173] Mount-cache hash table entries: 512
[    0.059570] CPU: Testing write buffer coherency: ok
[    0.079559] omap_hwmod: gfx: failed to hardreset
[    0.095825] omap_hwmod: pruss: failed to hardreset
[    0.096923] print_constraints: dummy:
[    0.097290] NET: Registered protocol family 16
[    0.099456] OMAP GPIO hardware version 0.1
[    0.102050] omap_mux_init: Add partition: #1: core, flags: 0
[    0.103912]  omap_i2c.1: alias fck already exists
[    0.104156] Detected a daughter card on AM335x EVM..
[    0.104156] The board is general purpose EVM in profile 0
[    0.104156] Found invalid GP EVM revision, falling back to Rev1.1A
[    0.104522]  da8xx_lcdc.0: alias fck already exists
[    0.104766] TSC connected to beta GP EVM
[    0.105895]  davinci-mcasp.1: alias fck already exists
[    0.106201]  omap_hsmmc.0: alias fck already exists
[    0.106445] _omap_mux_get_by_name: Could not find signal mii1_tx_clk.uart2_rxd_mux0
[    0.106475] _omap_mux_get_by_name: Could not find signal mii1_rx_clk.uart2_txd_mux0
[    0.107879]  omap2_mcspi.1: alias fck already exists
[    0.108123]  omap2_mcspi.2: alias fck already exists
[    0.108398]  edma.0: alias fck already exists
[    0.108398]  edma.0: alias fck already exists
[    0.108428]  edma.0: alias fck already exists
[    0.134216] bio: create slab <bio-0> at 0
[    0.136444] SCSI subsystem initialized
[    0.138092] usbcore: registered new interface driver usbfs
[    0.138397] usbcore: registered new interface driver hub
[    0.138610] usbcore: registered new device driver usb
[    0.138763] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[    0.139068] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[    0.158996] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.160125] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.161254] Switching to clocksource gp timer
[    0.176757] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.176940] musb-hdrc musb-hdrc.0: dma type: pio
[    0.177856] musb-hdrc musb-hdrc.0: USB OTG mode controller at d081c000 using PIO, IRQ 18
[    0.178009] musb-hdrc musb-hdrc.1: dma type: pio
[    0.178436] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.178497] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    0.178649] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.178649] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.178680] usb usb1: Product: MUSB HDRC host driver
[    0.178680] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[    0.178710] usb usb1: SerialNumber: musb-hdrc.1
[    0.179534] hub 1-0:1.0: USB hub found
[    0.179565] hub 1-0:1.0: 1 port detected
[    0.180145] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using PIO, IRQ 19
[    0.180572] NET: Registered protocol family 2
[    0.180755] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.181060] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.181243] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.181396] TCP: Hash tables configured (established 8192 bind 8192)
[    0.181396] TCP reno registered
[    0.181427] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.181457] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.181640] NET: Registered protocol family 1
[    0.181915] RPC: Registered named UNIX socket transport module.
[    0.181915] RPC: Registered udp transport module.
[    0.181945] RPC: Registered tcp transport module.
[    0.181945] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.182189] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.182403] omap-gpmc omap-gpmc: GPMC revision 6.0
[    0.182434] Registering NAND on CS0
[    0.182434] Reg config7 CS0: 0xf48
[    0.182952] Reg config7 CS1: 0xe42
[    0.182983] Reg config7 CS3: 0xe44
[    0.194885] VFS: Disk quotas dquot_6.5.2
[    0.194946] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.195404] yaffs: yaffs built Dec 14 2012 18:18:04 Installing.
[    0.195465] msgmni has been set to 495
[    0.196228] io scheduler noop registered
[    0.196258] io scheduler deadline registered
[    0.196319] io scheduler cfq registered (default)
[    0.197784] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
[    0.208160] Console: switching to colour frame buffer device 100x30
[    0.215057] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.217712] ttyS0: autoconf (0x0000, 0xd0832040): iir=3 iir1=6 iir2=6 type=16550A
[    0.237823] serial8250.0: ttyE0 at MMIO 0x2000040 (irq = 277) is a 16550A
[    0.238372] ttyS1: autoconf (0x0000, 0xd0838080): iir=3 iir1=6 iir2=6 type=16550A
[    0.258453] serial8250.0: ttyE1 at MMIO 0x2000080 (irq = 273) is a 16550A
[    0.258911] ttyS2: autoconf (0x0000, 0xd083a100): iir=3 iir1=6 iir2=6 type=16550A
[    0.278961] serial8250.0: ttyE2 at MMIO 0x2000100 (irq = 269) is a 16550A
[    0.279541] ttyS3: autoconf (0x0000, 0xd083c200): iir=3 iir1=6 iir2=6 type=16550A
[    0.299591] serial8250.0: ttyE3 at MMIO 0x2000200 (irq = 178) is a 16550A
[    0.300079] ttyS4: autoconf (0x0000, 0xd083e040): LOOP test failed (10) type=unknown
[    0.300537] ttyS4: autoconf (0x0000, 0xd084a080): LOOP test failed (10) type=unknown
[    0.301147] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.005462] console [ttyO0] enabled
[    1.009674] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    1.017486] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    1.025299] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    1.033050] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    1.040832] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    1.058227] brd: module loaded
[    1.066375] loop: module loaded
[    1.069854] i2c-core: driver [tsl2550] using legacy suspend method
[    1.076324] i2c-core: driver [tsl2550] using legacy resume method
[    1.084289] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.091583] omap2-nand driver initializing
[    1.096221] ONFI flash detected
[    1.099609] ONFI param page 0 valid
[    1.103302] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
[    1.111907] Creating 8 MTD partitions on "omap2-nand.0":
[    1.117462] 0x000000000000-0x000000020000 : "SPL"
[    1.123840] 0x000000020000-0x000000040000 : "SPL.backup1"
[    1.130767] 0x000000040000-0x000000060000 : "SPL.backup2"
[    1.137725] 0x000000060000-0x000000080000 : "SPL.backup3"
[    1.144683] 0x000000080000-0x000000260000 : "U-Boot"
[    1.151916] 0x000000260000-0x000000280000 : "U-Boot Env"
[    1.158721] 0x000000280000-0x000000780000 : "Kernel"
[    1.167175] 0x000000780000-0x000010000000 : "File System"
[    1.277862] UBI: attaching mtd7 to ubi0
[    1.281921] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.288452] UBI: logical eraseblock size:    126976 bytes
[    1.294067] UBI: smallest flash I/O unit:    2048
[    1.298980] UBI: sub-page size:              512
[    1.303802] UBI: VID header offset:          2048 (aligned 2048)
[    1.310058] UBI: data offset:                4096
[    3.428436] UBI: max. sequence number:       2684
[    3.449005] UBI: attached mtd7 to ubi0
[    3.453002] UBI: MTD device name:            "File System"
[    3.458709] UBI: MTD device size:            248 MiB
[    3.463897] UBI: number of good PEBs:        1988
[    3.468780] UBI: number of bad PEBs:         0
[    3.473419] UBI: number of corrupted PEBs:   0
[    3.478057] UBI: max. allowed volumes:       128
[    3.482879] UBI: wear-leveling threshold:    4096
[    3.487762] UBI: number of internal volumes: 1
[    3.492401] UBI: number of user volumes:     3
[    3.497039] UBI: available PEBs:             0
[    3.501647] UBI: total number of reserved PEBs: 1988
[    3.506835] UBI: number of PEBs reserved for bad PEB handling: 19
[    3.513183] UBI: max/mean erase counter: 4/2
[    3.517639] UBI: image sequence number:  1550845597
[    3.522857] UBI: background thread "ubi_bgt0d" started, PID 565
[    3.529693] CAN device driver interface
[    3.533691] CAN bus driver for Bosch D_CAN controller 1.0
[    3.581939] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    3.588378] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[    3.595611] davinci_mdio.0: probed
[    3.599151] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[    3.606964] usbcore: registered new interface driver zd1201
[    3.613006] usbcore: registered new interface driver cdc_ether
[    3.619232] usbcore: registered new interface driver cdc_eem
[    3.625305] usbcore: registered new interface driver dm9601
[    3.631164] cdc_ncm: 04-Aug-2011
[    3.634704] usbcore: registered new interface driver cdc_ncm
[    3.640594] Initializing USB Mass Storage driver...
[    3.645935] usbcore: registered new interface driver usb-storage
[    3.652221] USB Mass Storage support registered.
[    3.657501] mousedev: PS/2 mouse device common for all mice
[    3.664398] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input0
[    3.672515] i2c /dev entries driver
[    3.676544] Linux video capture interface: v2.00
[    3.681671] usbcore: registered new interface driver uvcvideo
[    3.687713] USB Video Class driver (1.1.1)
[    3.693969] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    3.700469] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[    3.709197] cpuidle: using governor ladder
[    3.713989] cpuidle: using governor menu
[    3.722290] usbcore: registered new interface driver usbhid
[    3.728118] usbhid: USB HID core driver
[    3.732727] usbcore: registered new interface driver snd-usb-audio
[    3.740875] ALSA device list:
[    3.743988]   No soundcards found.
[    3.747558] oprofile: hardware counters not available
[    3.752807] oprofile: using timer interrupt.
[    3.757293] nf_conntrack version 0.5.0 (3960 buckets, 15840 max)
[    3.764099] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.769775] TCP cubic registered
[    3.773162] NET: Registered protocol family 17
[    3.777801] can: controller area network core (rev 20090105 abi 8)
[    3.784362] NET: Registered protocol family 29
[    3.789001] can: raw protocol (rev 20090105)
[    3.793457] can: broadcast manager protocol (rev 20090105 t)
[    3.799377] Registering the dns_resolver key type
[    3.804412] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    3.812438] ThumbEE CPU extension supported.
[    3.816925] mux: Failed to setup hwmod io irq -22
[    3.822509] Power Management for AM33XX family
[    3.827331] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    3.834014] Copied the M3 firmware to UMEM
[    3.838287] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
[    3.850646] clock: disabling unused clocks to save power
[    3.858306] Detected MACID=bc:6a:29:7e:7d:93
[    3.864227] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    3.936553] UBIFS: recovery needed
[    4.107391] UBIFS: recovery completed
[    4.111236] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    4.117523] UBIFS: file system size:   3809280 bytes (3720 KiB, 3 MiB, 30 LEBs)
[    4.125152] UBIFS: journal size:       1142785 bytes (1116 KiB, 1 MiB, 8 LEBs)
[    4.132690] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    4.138763] UBIFS: default compressor: lzo
[    4.143035] UBIFS: reserved for root:  0 bytes (0 KiB)
[    4.150085] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    4.156738] Freeing init memory: 244K