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.

Some USB keys do not work in U-Boot for AM335x

Our problem is U-Boot does not detect a number of USB keys, while some work fine. We really need to be able to boot the kernel off standard USB keys.

I previously got help getting USB working on our custom board on this thread: http://e2e.ti.com/support/arm/sitara_arm/f/791/t/333490.aspx

We're using the AM335x and the design is based on the EVM.

Both U-Boot and Linux have been working file the whole time with the same USB device, a SanDisk Cruzer:

[ 5594.951855] usb 1-1.2: new high-speed USB device number 3 using musb-hdrc
[ 5595.072111] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5576
[ 5595.093411] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5595.115975] usb 1-1.2: Product: Cruzer Facet
[ 5595.129182] usb 1-1.2: Manufacturer: SanDisk
[ 5595.142354] usb 1-1.2: SerialNumber: 4C530007821030116154
[ 5595.162467] scsi0 : usb-storage 1-1.2:1.0
[ 5596.173153] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Facet     1.27 PQ: 0 ANSI: 6
[ 5596.214144] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[ 5596.238923] sd 0:0:0:0: [sda] Write Protect is off
[ 5596.254122] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 5596.292486]  sda: sda1
[ 5596.313289] sd 0:0:0:0: [sda] Attached SCSI dis

However, we started testing with other brand keys and are having problem detecting some of them in U-Boot, although they work fine once Linux is booted:

1. Maplin 16GB key

[ 5731.401868] usb 1-1.2: new high-speed USB device number 4 using musb-hdrc
[ 5731.522673] usb 1-1.2: New USB device found, idVendor=13fe, idProduct=5200
[ 5731.543909] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5731.566470] usb 1-1.2: Product: USB DISK 3.0
[ 5731.579638] usb 1-1.2: Manufacturer:         
[ 5731.593076] usb 1-1.2: SerialNumber: 070138281C3DDA23
[ 5731.612665] scsi1 : usb-storage 1-1.2:1.0
[ 5732.622633] scsi 1:0:0:0: Direct-Access              USB DISK 3.0     PMAP PQ: 0 ANSI: 6
[ 5732.654115] sd 1:0:0:0: [sda] 30965760 512-byte logical blocks: (15.8 GB/14.7 GiB)
[ 5732.687154] sd 1:0:0:0: [sda] Write Protect is off
[ 5732.703449] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 5732.925414]  sda: sda1
[ 5732.940053] sd 1:0:0:0: [sda] Attached SCSI removable disk

2. Transcend 4GB key

[ 5850.951855] usb 1-1.2: new high-speed USB device number 5 using musb-hdrc
[ 5851.078430] usb 1-1.2: New USB device found, idVendor=8564, idProduct=1000
[ 5851.099659] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5851.122217] usb 1-1.2: Product: Mass Storage Device
[ 5851.137263] usb 1-1.2: Manufacturer: JetFlash
[ 5851.150698] usb 1-1.2: SerialNumber: VYIS7DNK
[ 5851.167362] scsi2 : usb-storage 1-1.2:1.0
[ 5852.173855] scsi 2:0:0:0: Direct-Access     JetFlash Transcend 4GB    8.07 PQ: 0 ANSI: 4
[ 5852.205681] sd 2:0:0:0: [sda] 7839744 512-byte logical blocks: (4.01 GB/3.73 GiB)
[ 5852.238391] sd 2:0:0:0: [sda] Write Protect is off
[ 5852.254186] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 5852.288524]  sda: sda1
[ 5852.302240] sd 2:0:0:0: [sda] Attached SCSI removable disk

U-Boot doesn't give an error, it just doesn't detect the USB keys as storage devices:

U-Boot# usb start
(Re)start USB...
USB0:   scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Has anyone experienced something similar?

I'm pretty sure they're all VFAT, the 4GB and 16GB keys don't work while the 8GB key works, so I don't think the size is the issue... Just don't know how to debug this.

  • Hi Adri,

    I will ask the factory team about this.

  • Please post the u-boot and kernel version you are using.

  • USB protocol anayzer traces might give a clue of the issue.

  • I hooked up a Total Phase Beagle USB 12 analyzer. Connected on Linux I only get Reset/Target disconnected and Unreset/Target connected messages, even if I write or read from the USB key.

    I get the same messages when I run the "usb start" command in U-Boot with USB that's not being detected. I've pasted the screenshot below.

    I've attached the capture file, but I don't think it contains anything more. It just needs the extension to be renamed back to a .tdc file.

    I tried to compare the differences between USB keys that work and don't work by having a look at what's output in Linux when plugging them in, but I don't see any pattern.

    [   19.271865] usb 1-1.2: new high-speed USB device number 3 using musb-hdrc
    [   19.652189] usb 1-1.2: New USB device found, idVendor=07ab, idProduct=fcf6
    [   19.673420] usb 1-1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=5
    [   19.695981] usb 1-1.2: Product: DATABAR
    [   19.707809] usb 1-1.2: Manufacturer: Freecom
    [   19.720979] usb 1-1.2: SerialNumber: 125000000264
    [   19.738895] scsi0 : usb-storage 1-1.2:1.0
    [   20.755246] scsi 0:0:0:0: Direct-Access     Freecom  DATABAR          0250 PQ: 0 ANSI: 0
    [   20.786707] sd 0:0:0:0: [sda] 7798783 512-byte logical blocks: (3.99 GB/3.71 GiB)
    [   20.819616] sd 0:0:0:0: [sda] Write Protect is off
    [   20.835611] sd 0:0:0:0: [sda] No Caching mode page present
    [   20.852575] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   20.876890] sd 0:0:0:0: [sda] No Caching mode page present
    [   20.893865] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   20.914952]  sda: sda1
    [   20.929378] sd 0:0:0:0: [sda] No Caching mode page present
    [   20.946389] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   20.965207] sd 0:0:0:0: [sda] Attached SCSI removable disk
    
    [   60.481860] usb 1-1.2: new high-speed USB device number 4 using musb-hdrc
    [   60.602323] usb 1-1.2: New USB device found, idVendor=05dc, idProduct=a205
    [   60.623555] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   60.646116] usb 1-1.2: Product: JumpDrive
    [   60.658479] usb 1-1.2: Manufacturer: Lexar
    [   60.671112] usb 1-1.2: SerialNumber: 4093622533
    [   60.688319] scsi1 : usb-storage 1-1.2:1.0
    [   61.702653] scsi 1:0:0:0: Direct-Access     Lexar    JumpDrive        1.00 PQ: 0 ANSI: 6
    [   61.734068] sd 1:0:0:0: [sda] 31293440 512-byte logical blocks: (16.0 GB/14.9 GiB)
    [   61.767046] sd 1:0:0:0: [sda] Write Protect is off
    [   61.782392] sd 1:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
    [   61.815898]  sda: sda1
    [   61.828155] sd 1:0:0:0: [sda] Attached SCSI removable disk
    
    [  547.911861] usb 1-1.2: new high-speed USB device number 5 using musb-hdrc
    [  548.038160] usb 1-1.2: New USB device found, idVendor=058f, idProduct=6387
    [  548.059393] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  548.081955] usb 1-1.2: Product: Mass Storage
    [  548.095124] usb 1-1.2: Manufacturer: Generic
    [  548.108294] usb 1-1.2: SerialNumber: F535E433
    [  548.124968] scsi2 : usb-storage 1-1.2:1.0
    [  549.133840] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
    [  549.175040] sd 2:0:0:0: [sda] 31336448 512-byte logical blocks: (16.0 GB/14.9 GiB)
    [  549.199211] sd 2:0:0:0: [sda] Write Protect is off
    [  549.214758] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [  549.249129]  sda: sda1
    [  549.274417] sd 2:0:0:0: [sda] Attached SCSI removable disk
    
    [  576.581862] usb 1-1.2: new high-speed USB device number 6 using musb-hdrc
    [  576.702732] usb 1-1.2: New USB device found, idVendor=1b1c, idProduct=1a06
    [  576.723967] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  576.746529] usb 1-1.2: Product: Slider 3.0
    [  576.759163] usb 1-1.2: Manufacturer: Corsair
    [  576.772333] usb 1-1.2: SerialNumber: 07084723C27B4B19
    [  576.791192] scsi3 : usb-storage 1-1.2:1.0
    [  577.802961] scsi 3:0:0:0: Direct-Access     Corsair  Slider 3.0       000D PQ: 0 ANSI: 6
    [  577.834379] sd 3:0:0:0: [sda] 241405440 512-byte logical blocks: (123 GB/115 GiB)
    [  577.867109] sd 3:0:0:0: [sda] Write Protect is off
    [  577.882449] sd 3:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [  578.131666]  sda: sda1
    [  578.144214] sd 3:0:0:0: [sda] Attached SCSI removable disk
    
    
    [  727.621861] usb 1-1.2: new high-speed USB device number 7 using musb-hdrc
    [  727.748782] usb 1-1.2: New USB device found, idVendor=18a5, idProduct=0302
    [  727.770015] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  727.792577] usb 1-1.2: Product: STORE N GO
    [  727.805211] usb 1-1.2: Manufacturer: Verbatim
    [  727.818649] usb 1-1.2: SerialNumber: DCAB9DD477F97DD56422
    [  727.838567] scsi4 : usb-storage 1-1.2:1.0
    [  728.853917] scsi 4:0:0:0: Direct-Access     Verbatim STORE N GO       8.07 PQ: 0 ANSI: 4
    [  728.885814] sd 4:0:0:0: [sda] 15564800 512-byte logical blocks: (7.96 GB/7.42 GiB)
    [  728.918999] sd 4:0:0:0: [sda] Write Protect is off
    [  728.934808] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [  728.972701]  sda: sda1
    [  728.986402] sd 4:0:0:0: [sda] Attached SCSI removable disk

    TPDC�=�XT
    O�ˤ� s�XT� ��� l� @@. � ��
    `	�� 	9�!�- ��-`-  `8 @�8�E!@
    `�8`�@q@�@�8�F�8`�@8@5 �8[A��q	 +a�Հ8�?@���@�1@�߀@ N @@ 
    	
    [   27.721853] usb 1-1.2: new high-speed USB device number 3 using musb-hdrc
    [   27.844176] usb 1-1.2: New USB device found, idVendor=0930, idProduct=6544
    [   27.865408] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   27.887968] usb 1-1.2: Product: DataTraveler 2.0
    [   27.902212] usb 1-1.2: Manufacturer: Kingston
    [   27.915650] usb 1-1.2: SerialNumber: C86000886148CE619A26AC6E
    [   27.937049] scsi0 : usb-storage 1-1.2:1.0
    [   28.953951] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4
    [   28.985425] sd 0:0:0:0: [sda] 15148608 512-byte logical blocks: (7.75 GB/7.22 GiB)
    [   29.018527] sd 0:0:0:0: [sda] Write Protect is off
    [   29.033864] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [   29.066732]  sda: sda1
    [   29.079308] sd 0:0:0:0: [sda] Attached SCSI removable disk
    
    
    [   47.171856] usb 1-1.2: new high-speed USB device number 4 using musb-hdrc
    [   47.292911] usb 1-1.2: New USB device found, idVendor=054c, idProduct=05ba
    [   47.314140] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   47.336701] usb 1-1.2: Product: Storage Media
    [   47.350140] usb 1-1.2: Manufacturer: Sony
    [   47.362505] usb 1-1.2: SerialNumber: CB5001407210003420
    [   47.381787] scsi1 : usb-storage 1-1.2:1.0
    [   49.090960] scsi 1:0:0:0: Direct-Access     Sony     Storage Media    0100 PQ: 0 ANSI: 4
    [   49.122430] sd 1:0:0:0: [sda] 61046784 512-byte logical blocks: (31.2 GB/29.1 GiB)
    [   49.155517] sd 1:0:0:0: [sda] Write Protect is off
    [   49.171028] sd 1:0:0:0: [sda] No Caching mode page present
    [   49.187982] sd 1:0:0:0: [sda] Assuming drive cache: write through
    [   49.211042] sd 1:0:0:0: [sda] No Caching mode page present
    [   49.228024] sd 1:0:0:0: [sda] Assuming drive cache: write through
    [   49.247831]  sda: sda1
    [   49.260757] sd 1:0:0:0: [sda] No Caching mode page present
    [   49.277759] sd 1:0:0:0: [sda] Assuming drive cache: write through
    [   49.296574] sd 1:0:0:0: [sda] Attached SCSI removable disk
    
    
    [   62.281854] usb 1-1.2: new high-speed USB device number 5 using musb-hdrc
    [   62.442774] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5581
    [   62.464004] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   62.486565] usb 1-1.2: Product: SanDisk Ultra
    [   62.500003] usb 1-1.2: Manufacturer: SanDisk
    [   62.513175] usb 1-1.2: SerialNumber: A20047E99A036F38
    [   62.532072] scsi2 : usb-storage 1-1.2:1.0
    [   63.542694] scsi 2:0:0:0: Direct-Access     SanDisk  SanDisk Ultra    PMAP PQ: 0 ANSI: 6
    [   63.574234] sd 2:0:0:0: [sda] 61767680 512-byte logical blocks: (31.6 GB/29.4 GiB)
    [   63.607509] sd 2:0:0:0: [sda] Write Protect is off
    [   63.623489] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [   63.753543]  sda: sda1
    [   63.767792] sd 2:0:0:0: [sda] Attached SCSI removable disk
    
    
    
    [   77.641851] usb 1-1.2: new high-speed USB device number 6 using musb-hdrc
    [   77.767135] usb 1-1.2: New USB device found, idVendor=0718, idProduct=0619
    [   77.788368] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   77.810929] usb 1-1.2: Product: Nano Pro
    [   77.823027] usb 1-1.2: Manufacturer: Imation
    [   77.836196] usb 1-1.2: SerialNumber: 07034780EC4E2482
    [   77.855012] scsi3 : usb-storage 1-1.2:1.0
    [   78.864120] scsi 3:0:0:0: Direct-Access     Imation  Nano Pro         PMAP PQ: 0 ANSI: 6
    [   80.232501] sd 3:0:0:0: [sda] 15108480 512-byte logical blocks: (7.73 GB/7.20 GiB)
    [   80.256159] sd 3:0:0:0: [sda] Write Protect is off
    [   80.271233] sd 3:0:0:0: [sda] No Caching mode page present
    [   80.288171] sd 3:0:0:0: [sda] Assuming drive cache: write through
    [   80.311911] sd 3:0:0:0: [sda] No Caching mode page present
    [   80.328881] sd 3:0:0:0: [sda] Assuming drive cache: write through
    [   80.350623]  sda: sda1
    [   80.363812] sd 3:0:0:0: [sda] No Caching mode page present
    [   80.380794] sd 3:0:0:0: [sda] Assuming drive cache: write through
    [   80.399610] sd 3:0:0:0: [sda] Attached SCSI removable disk
    
    
    [   88.651851] usb 1-1.2: new high-speed USB device number 7 using musb-hdrc
    [   88.774296] usb 1-1.2: New USB device found, idVendor=0930, idProduct=6544
    [   88.795527] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   88.818088] usb 1-1.2: Product: TransMemory     
    [   88.832332] usb 1-1.2: Manufacturer: TOSHIBA 
    [   88.845769] usb 1-1.2: SerialNumber: 7978CAD0F847CE218318B8B2
    [   88.866601] scsi4 : usb-storage 1-1.2:1.0
    [   89.905695] scsi 4:0:0:0: Direct-Access     TOSHIBA  TransMemory      1.00 PQ: 0 ANSI: 4
    [   89.937106] sd 4:0:0:0: [sda] 60620800 512-byte logical blocks: (31.0 GB/28.9 GiB)
    [   89.962572] sd 4:0:0:0: [sda] Write Protect is off
    [   89.977866] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [   90.016075]  sda: sda1
    [   90.033014] sd 4:0:0:0: [sda] Attached SCSI removable disk
    
    
    [  104.011852] usb 1-1.2: new high-speed USB device number 8 using musb-hdrc
    [  104.136834] usb 1-1.2: New USB device found, idVendor=13fe, idProduct=3600
    [  104.158071] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  104.180633] usb 1-1.2: Product: Courier
    [  104.192464] usb 1-1.2: Manufacturer: Integral
    [  104.205898] usb 1-1.2: SerialNumber: 079B14008D31542B
    [  104.224700] usb-storage 1-1.2:1.0: Quirks match for vid 13fe pid 3600: 4000
    [  104.246338] scsi5 : usb-storage 1-1.2:1.0
    [  105.285318] scsi 5:0:0:0: Direct-Access     Integral Courier          PMAP PQ: 0 ANSI: 0 CCS
    [  106.184761] sd 5:0:0:0: [sda] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
    [  106.208158] sd 5:0:0:0: [sda] Write Protect is off
    [  106.223234] sd 5:0:0:0: [sda] No Caching mode page present
    [  106.240171] sd 5:0:0:0: [sda] Assuming drive cache: write through
    [  106.263586] sd 5:0:0:0: [sda] No Caching mode page present
    [  106.280547] sd 5:0:0:0: [sda] Assuming drive cache: write through
    [  106.322524]  sda: sda1
    [  106.335248] sd 5:0:0:0: [sda] No Caching mode page present
    [  106.352241] sd 5:0:0:0: [sda] Assuming drive cache: write through
    [  106.371052] sd 5:0:0:0: [sda] Attached SCSI removable disk
    
    

    I was wondering whether there is some setup in the USB driver being used that enables particular USB features. I'm having a look at musb_host.c and musb_core.c in drivers/usb/musb-new/ but don't see anything relevant yet that I understand.

  • Adri G said:

    I hooked up a Total Phase Beagle USB 12 analyzer. Connected on Linux I only get Reset/Target disconnected and Unreset/Target connected messages, even if I write or read from the USB key.

    You have to fix this first. If you cannot get a correct trace in a working case, an analyzer will not be able to help debugging this issue.