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.

USB-Device doesn,t work permanently on DM3730

Other Parts Discussed in Thread: DM3730, SYSCONFIG, ADS7846, TVP5146M2

Hallo community,

I have a problem with the USB-device of the Mistral DM3730 board. The following error message describes it:

I put an USB-device to the Mistral board and it is recognized correctly within the system.
There are written continously data to the USB-device.
After an unknown time, usual between 5 minutes and 30 minutes, the system throws out the USB-device and it doesn't let the USB-device connect again.
Other USB-devices are not recognized anymore, too (also another hub is not mounted).

It doesn't matter if the Mistral-Board is used for the electricity supply or if the power supply is done through an external hub. In both cases happens the same.

With the command “lsusb” and “blkid” the USB-devices are not found anymore. Perviously they were found correctly.
Sometime shows the Command "lsusb" only the  "Linux Foundation", but the Command "blkid -o device" shows a mounting point on sda.


After a reboot of the system everything works perfectly, until the error happens again.

What can I do to fix this problem?

Best regards

Lukas

  • Lukas,

    Moved this thread to DM37x forum for better response.

    Regards,
    Senthil
  • Hi Lukas,

    Could you specify what software you are using? Also would be helpful to attach an output of 'dmesg' kernel log when the issue has been observed.

    BR
    Tsvetolin Shulev
  • Hey,
    sorry for my late response. I get with dmesg different messages:

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

    1)
    hsusb2_clk 0x0100 -> 0x0003
    mux: Setting signal etk_d12.hsusb2_dir 0x0100 -> 0x010b
    mux: Setting signal etk_d13.hsusb2_nxt 0x0100 -> 0x010b
    mux: Setting signal etk_d14.hsusb2_data0 0x0100 -> 0x010b
    mux: Setting signal etk_d15.hsusb2_data1 0x0100 -> 0x010b
    mux: Setting signal mcspi1_cs3.hsusb2_data2 0x0108 -> 0x010b
    mux: Setting signal mcspi2_cs1.hsusb2_data3 0x0108 -> 0x010b
    mux: Setting signal mcspi2_simo.hsusb2_data4 0x0100 -> 0x010b
    mux: Setting signal mcspi2_somi.hsusb2_data5 0x0100 -> 0x010b
    mux: Setting signal mcspi2_cs0.hsusb2_data6 0x0108 -> 0x010b
    mux: Setting signal mcspi2_clk.hsusb2_data7 0x0100 -> 0x010b
    Target VDD1 OPP = 3, VDD2 OPP = 2
    mux: Setting signal mcbsp1_fsr.gpio157 0x0018 -> 0x011c
    mux: Setting signal cam_fld.gpio98 0x0004 -> 0x011c
    omap3evmdc: Driver registration complete
    TEAX: omap_init_clocksource_32k disabled
    OMAP DMA hardware revision 5.0
    bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz
    twl4030: PIH (irq 7) chaining IRQs 368..375
    twl4030: power (irq 373) chaining IRQs 376..383
    twl4030: gpio (irq 368) chaining IRQs 384..401
    mux: Setting signal gpmc_wait1.gpio63 0x0118 -> 0x0104
    mux: Setting signal sdmmc1_clk.sdmmc1_clk 0x0018 -> 0x0118
    mux: Setting signal sdmmc1_cmd.sdmmc1_cmd 0x0118 -> 0x0118
    mux: Setting signal sdmmc1_dat0.sdmmc1_dat0 0x0118 -> 0x0118
    mux: Setting signal sdmmc1_dat1.sdmmc1_dat1 0x0118 -> 0x0118
    mux: Setting signal sdmmc1_dat2.sdmmc1_dat2 0x0118 -> 0x0118
    mux: Setting signal sdmmc1_dat3.sdmmc1_dat3 0x0118 -> 0x0118
    regulator: VMMC1: 1850 <--> 3150 mV normal standby
    regulator: VDAC: 1800 mV normal standby
    regulator: VAUX2_4030: 2800 mV normal standby
    regulator: VPLL2: 1800 mV normal standby
    regulator: VSIM: 1800 <--> 3000 mV normal standby
    i2c_omap i2c_omap.2: bus 2 rev4.0 at 400 kHz
    i2c_omap i2c_omap.3: bus 3 rev4.0 at 400 kHz
    Switching to clocksource gp timer
    musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
    HS USB OTG: revision 0x40, sysconfig 0x2001, sysstatus 0x1, intrfsel 0x1, simenable 0x0
    musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X), bulk split (X), HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb_hdrc: MHDRC RTL version 1.800
    musb_hdrc: setup fifo_mode 4
    musb_hdrc: 28/31 max ep, 16384/16384 memory
    musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
    Registered /proc/driver/musb_hdrc
    NET: Registered protocol family 2
    IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    omap-iommu omap-iommu.0: isp registered
    AM37x/DM37x Linux PSP version 03.00.01.06 (OMAP3EVM)
    NetWinder Floating Point Emulator V0.97 (double precision)
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    msgmni has been set to 331
    alg: No test for stdrng (krng)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    OMAP DSS rev 2.0
    OMAP DISPC rev 3.0
    OMAP VENC rev 2
    OMAP DSI rev 1.0
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
    serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
    serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
    console [ttyS2] enabled
    brd: module loaded
    loop: module loaded
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000080000 : "xloader-nand"
    0x000000080000-0x000000240000 : "uboot-nand"
    0x000000240000-0x000000280000 : "params-nand"
    0x000000280000-0x000000780000 : "linux-nand"
    0x000000780000-0x000020000000 : "jffs2-nand"
    OneNAND driver initializing
    omap2-onenand omap2-onenand: Cannot request GPMC CS
    omap2-onenand: probe of omap2-onenand failed with error -16
    smsc911x: Driver version 2008-10-21.
    smsc911x-mdio: probed
    eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1)
    net eth0: MAC Address: 70:b3:d5:50:00:76
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
    ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
    ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
    ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: OMAP-EHCI Host Controller
    usb usb1: Manufacturer: Linux 2.6.32 ehci_hcd
    usb usb1: SerialNumber: ehci-omap.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 3 ports detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new interface driver usbtest
    g_ether gadget: using random self ethernet address
    g_ether gadget: using random host ethernet address
    usb0: MAC 36:11:7f:a9:c1:09
    usb0: HOST MAC 6a:6d:e2:ca:01:d4
    g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    g_ether gadget: g_ether ready
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.32 musb-hcd
    usb usb2: SerialNumber: musb_hdrc
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    mice: PS/2 mouse device common for all mice
    input: TWL4030 Keypad as /devices/platform/i2c_omap.1/i2c-1/1-004a/twl4030_keypad/input/input0
    ads7846 spi1.0: touchscreen, irq 335
    input: ADS7846 Touchscreen as /devices/platform/omap2_mcspi.1/spi1.0/input/input1
    twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
    twl_rtc twl_rtc: Power up reset detected.
    twl_rtc twl_rtc: Enabling TWL-RTC.
    i2c /dev entries driver
    Linux video capture interface: v2.00
    tvp514x 3-005c: Registered to v4l2 master omap34xxcam!!
    omap-iommu omap-iommu.0: isp: version 1.1
    Saving csi2 context
    Restoring csi2 context
    Saving csi2 context
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v0.1.0)
    OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    usbcore: registered new interface driver snd-usb-audio
    usb 1-2: new high speed USB device using ehci-omap and address 2
    No device for DAI omap-mcbsp-dai-0
    No device for DAI omap-mcbsp-dai-1
    No device for DAI omap-mcbsp-dai-2
    No device for DAI omap-mcbsp-dai-3
    No device for DAI omap-mcbsp-dai-4
    OMAP3 EVM SoC init
    asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
    ALSA device list:
    #0: omap3evm (twl4030)
    TCP cubic registered
    NET: Registered protocol family 17
    NET: Registered protocol family 15
    Power Management for TI OMAP3.
    Compensating OPP4 for 63mV Orig nvalue:0xaab29e New nvalue:0xaaa08d
    Compensating OPP3 for 63mV Orig nvalue:0xaae7c4 New nvalue:0xaacaab
    Compensating OPP2 for 50mV Orig nvalue:0x999a81 New nvalue:0x9a85e0
    Compensating OPP1 for 50mV Orig nvalue:0x8991ec New nvalue:0x99e1b9
    Switched to new clocking rate (Crystal/Core/MPU): 26.0/400/800 MHz
    IVA2 clocking rate: 660 MHz
    SmartReflex driver initialized
    Disabling unused clock "sr2_fck"
    Disabling unused clock "sr1_fck"
    Disabling unused clock "mcbsp_fck"
    Disabling unused clock "mcbsp_fck"
    Disabling unused clock "mcbsp_fck"
    Disabling unused clock "mcbsp_ick"
    Disabling unused clock "mcbsp_ick"
    Disabling unused clock "mcbsp_ick"
    Disabling unused clock "gpt3_ick"
    Disabling unused clock "gpt4_ick"
    Disabling unused clock "gpt5_ick"
    Disabling unused clock "gpt6_ick"
    Disabling unused clock "gpt7_ick"
    Disabling unused clock "gpt8_ick"
    Disabling unused clock "gpt9_ick"
    Disabling unused clock "wdt3_ick"
    Disabling unused clock "wdt3_fck"
    Disabling unused clock "gpio2_dbck"
    Disabling unused clock "gpio3_dbck"
    Disabling unused clock "gpio4_dbck"
    Disabling unused clock "gpio5_dbck"
    Disabling unused clock "gpt9_fck"
    Disabling unused clock "gpt8_fck"
    Disabling unused clock "gpt7_fck"
    Disabling unused clock "gpt6_fck"
    Disabling unused clock "gpt5_fck"
    Disabling unused clock "gpt4_fck"
    Disabling unused clock "gpt3_fck"
    Disabling unused clock "gpt12_ick"
    Disabling unused clock "omap_32ksync_ick"
    Disabling unused clock "wdt1_ick"
    Disabling unused clock "gpio1_dbck"
    Disabling unused clock "des1_ick"
    Disabling unused clock "sha11_ick"
    Disabling unused clock "rng_ick"
    Disabling unused clock "aes1_ick"
    Disabling unused clock "ssi_ick"
    Disabling unused clock "mailboxes_ick"
    Disabling unused clock "mcbsp_ick"
    Disabling unused clock "mcbsp_ick"
    Disabling unused clock "gpt10_ick"
    Disabling unused clock "gpt11_ick"
    Disabling unused clock "hdq_ick"
    Disabling unused clock "mspro_ick"
    Disabling unused clock "des2_ick"
    Disabling unused clock "sha12_ick"
    Disabling unused clock "gpt11_fck"
    Disabling unused clock "gpt10_fck"
    Disabling unused clock "sad2d_ick"
    Disabling unused clock "dpll4_m6x2_ck"
    Disabling unused clock "dpll3_m3x2_ck"
    Disabling unused clock "sys_clkout1"
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    usb 1-2: New USB device found, idVendor=0930, idProduct=6544
    usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-2: Product: TransMemory
    usb 1-2: Manufacturer: TOSHIBA
    usb 1-2: SerialNumber: 7427EA2C37BDCF51D00C5BA3
    scsi0 : usb-storage 1-2:1.0
    twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    Restoring csi2 context
    tvp514x 3-005c: tvp5146m2 found at 0xb8 (OMAP I2C adapter)
    Saving csi2 context
    omap_vout omap_vout: 'tv' Display already enabled
    omap_vout omap_vout: 'tv' Display already enabled
    omap_vout omap_vout: Buffer Size = 3686400
    omap_vout omap_vout: : registered and initialized video device 1
    omap_vout omap_vout: Buffer Size = 3686400
    omap_vout omap_vout: : registered and initialized video device 2
    Waiting for root device /dev/mmcblk0p2...
    mmc0: new high speed SDHC card at address aaaa
    mmcblk0: mmc0:aaaa SL08G 7.40 GiB
    mmcblk0: p1 p2
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    Freeing init memory: 172K
    udev: starting version 141
    udev: renamed network interface eth0 to eth4
    CMEMK module: built on Feb 10 2016 at 20:48:57
    Reference Linux version 2.6.32
    File /home/ti/ti-dvsdk_dm3730-evm_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    CMEM Range Overlaps Kernel Physical - allowing overlap
    CMEM phys_start (0x83700000) overlaps kernel (0x80000000 -> 0x8b000000)
    allocated heap buffer 0xd2000000 of size 0x2200000
    heap fallback enabled - will try heap if pool buffer is not available
    cmemk initialized
    DSPLINK Module (1.65.00.02) created on Date: Feb 10 2016 Time: 20:49:12
    SDMAK module: built on Feb 10 2016 at 20:48:58
    Reference Linux version 2.6.32
    File /home/ti/ti-dvsdk_dm3730-evm_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
    scsi 0:0:0:0: Direct-Access TOSHIBA TransMemory 1.00 PQ: 0 ANSI: 4
    sd 0:0:0:0: [sda] 15155200 512-byte logical blocks: (7.75 GB/7.22 GiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sda: sda1
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sd 0:0:0:0: [sda] Attached SCSI removable disk
    FAT: invalid media value (0x00)
    VFS: Can't find a valid FAT filesystem on dev sda.
    net eth4: SMSC911x/921x identified at 0xd0860000, IRQ: 336
    omap-resizer: Device is opened in blocking mode
    Restoring csi2 context
    tvp514x 3-005c: tvp5146m2 found at 0xb8 (OMAP I2C adapter)
    hub 1-0:1.0: port 2 disabled by hub (EMI?), re-enabling...
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    usb 1-2: USB disconnect, address 2
    sd 0:0:0:0: [sda] Unhandled error code
    sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
    sd 0:0:0:0: [sda] CDB:
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    cdb[0]=0x2a: 2a 00 00 06 79 1f 00 00 d4 00
    end_request: I/O error, dev sda, sector 424223
    FAT: FAT read failed (blocknr 3614)
    FAT: FAT read failed (blocknr 3613)
    FAT: unable to read inode block for updating (i_pos 524291)
    usb 1-2: new high speed USB device using ehci-omap and address 3
    usb 1-2: New USB device found, idVendor=0930, idProduct=6544
    usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    usb 1-2: Product: TransMemory
    usb 1-2: Manufacturer: TOSHIBA
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    usb 1-2: SerialNumber: 7427EA2C37BDCF51D00C5BA3
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    scsi1 : usb-storage 1-2:1.0
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    scsi 1:0:0:0:media value (0x00)
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!
    VFS: Can't find a valid FAT filesystem on dev sda.
    omap3isp omap3isp: isp_wait: wait is too much
    omap3isp omap3isp: ccdc 1 won't become idle!

    2)
    dmesg says some times:
    FAT: FAT read failed (blocknr 3230)

    3)
    FAT: Filesystem error (dev sda1)
    clusters badly computed (1356 != 1312)

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

    It works between 5 and 30 min.

    I use the same program to write data to the SD-card and it works fine. As soon as I write the data to the usb-stick the error appears.
    I use the Linux Version 2.6.32

    Best Regards
    Lukas