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 drive activity LED always flashing

Next USB question.

I have one USB flash drive where the activity light is always flashing after I insert it.

The kernel / filesystem is based on ti-processor-sdk-linux-am335x-evm-01.00.00.00 and tisdk-rootfs-image-am335x-evm.

On a BeagleBone Black, I need to manually mount the drive, but it does not flash unless an I/O operation is active on the drive.

On our board I can get the activity light to stop flashing if I enter a command like "hdparm /dev/sda" even though the command returns an error "HDIO_DRIVE_COMMAND(identify) failed: Invalid argument".  If I then try to read a file from the drive the read is successful but the activity light resumes flashing forever.

Any idea on how I can correct this behavior?

Thanks,

  Peter Steinberg

  • Hi Peter,

    Could you execute the "dmesg | grep -i "usb"" in the board console and post the output to search in the log some messages which could help the investigation of the issue.

    BR
    Tsvetolin Shulev
  • root@am335x-evm:~# dmesg | grep -i usb
    [    0.370919] usbcore: registered new interface driver usbfs
    [    0.371377] usbcore: registered new interface driver hub
    [    0.371854] usbcore: registered new device driver usb
    [    1.693731] usbcore: registered new interface driver asix
    [    1.699947] usbcore: registered new interface driver ax88179_178a
    [    1.706819] usbcore: registered new interface driver cdc_ether
    [    1.713467] usbcore: registered new interface driver smsc95xx
    [    1.719879] usbcore: registered new interface driver net1080
    [    1.726287] usbcore: registered new interface driver cdc_subset
    [    1.732947] usbcore: registered new interface driver zaurus
    [    1.739293] usbcore: registered new interface driver cdc_ncm
    [    1.746383] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.764985] usbcore: registered new interface driver cdc_wdm
    [    1.771454] usbcore: registered new interface driver usb-storage
    [    1.778642] usbcore: registered new interface driver usbserial
    [    1.970590] usbcore: registered new interface driver usbhid
    [    1.976516] usbhid: USB HID core driver
    [    4.106590] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [    4.106664] 47401300.usb-phy supply vcc not found, using dummy regulator
    [    4.246191] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [    4.246259] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [    5.602458] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    5.602480] musb-hdrc: MHDRC RTL version 2.0
    [    5.602487] musb-hdrc: setup fifo_mode 4
    [    5.602503] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    5.602602] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    5.995942] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    6.304733] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    6.311871] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    6.319479] usb usb1: Product: MUSB HDRC host driver
    [    6.324684] usb usb1: Manufacturer: Linux 3.14.26 musb-hcd
    [    6.330424] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    6.744832] hub 1-0:1.0: USB hub found
    [    6.846692] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    6.846716] musb-hdrc: MHDRC RTL version 2.0
    [    6.846724] musb-hdrc: setup fifo_mode 4
    [    6.846741] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    6.846863] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    6.874814] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    6.920014] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    6.927231] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    6.934804] usb usb2: Product: MUSB HDRC host driver
    [    6.940002] usb usb2: Manufacturer: Linux 3.14.26 musb-hcd
    [    6.945751] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    6.970544] hub 2-0:1.0: USB hub found
    [   14.721195] udc musb-hdrc.0.auto: registering UDC driver [g_serial]
    [   62.498682] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_bcon (89, <AValid), retry #1, port1 00000104
    [   64.114626] usb 2-1: new high-speed USB device number 2 using musb-hdrc
    [   64.255202] usb 2-1: New USB device found, idVendor=8644, idProduct=800b
    [   64.262255] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   64.269806] usb 2-1: Product: USB Flash Disk
    [   64.275781] usb 2-1: Manufacturer: General
    [   64.282189] usb 2-1: SerialNumber: 0000000000000421
    [   64.296215] usb-storage 2-1:1.0: USB Mass Storage device detected
    [   64.315595] scsi0 : usb-storage 2-1:1.0
    [   65.325712] scsi 0:0:0:0: Direct-Access     General  USB Flash Disk   1.0  PQ: 0 ANSI: 2

  • Anyone have any ideas about this issue?