element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
WaRP7
  • Products
  • Dev Tools
  • Single-Board Computers
  • WaRP7
  • More
  • Cancel
WaRP7
Forum USB Mass Storage can't be detected as /dev/sdb
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join WaRP7 to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 7 subscribers
  • Views 4400 views
  • Users 0 members are here
Related

USB Mass Storage can't be detected as /dev/sdb

elem2018
elem2018 over 7 years ago

Hello,

 

I followed the following instructions: (switch 2 is on the low position)

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

For flashing kernel and rootfs, the eMMC space needs to be mounted, we will use uboot ums command for that.

 

+ expand sourceview plain

 

  1. => ums 0 mmc 0 

2lbopp4.jpg Checking the emmc device...In most cases the emmc device will be sdb unless you have multiple mass storage device connected to your PC.

+ expand sourceview plain

 

  1. $ ls /dev/sd* 

mjwgle.jpg

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

 

After typing  ums 0 mmc 0, I can see one USB device (Netchip usb download gadget) is detected in VM Ubuntu 14.04.  Dmesg gives the following messages:

...

[  997.389492] usb 1-1: new high-speed USB device number 2 using ehci-pci

[  997.649479] usb 1-1: New USB device found, idVendor=0525, idProduct=a4a5

[  997.649489] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[  997.649492] usb 1-1: Product: USB download gadget

[  997.649493] usb 1-1: Manufacturer: FSL

[  997.712231] usb-storage 1-1:1.0: USB Mass Storage device detected

[  997.717282] usb-storage 1-1:1.0: Quirks match for vid 0525 pid a4a5: 10000

[  997.717444] scsi host33: usb-storage 1-1:1.0

[  997.725268] usbcore: registered new interface driver usb-storage

[  997.740037] usbcore: registered new interface driver uas

[ 1020.196637] usb 1-1: reset high-speed USB device number 2 using ehci-pci

[ 4042.905267] hrtimer: interrupt took 11121686 ns

....

 

it is clear that the usb download gadget is found, but  fdisk -l doesn't show the /dev/sdb

 

$ sudo fdisk -l

Disk /dev/sda: 536.9 GB, 536870912000 bytes

255 heads, 63 sectors/track, 65270 cylinders, total 1048576000 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x000928fe

 

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048  1031798783   515898368   83  Linux

/dev/sda2      1031800830  1048573951     8386561    5  Extended

/dev/sda5      1031800832  1048573951     8386560   82  Linux swap / Solaris

 

Would you please tell me how can I get the usb download gadget detected as /dev/sdb ?

In Google unfortunately I can't find any solution. Any hint will be appreciated.

Thanks

 

Elem

  • Sign in to reply
  • Cancel

Top Replies

  • Gough Lui
    Gough Lui over 7 years ago +1
    I'm not familiar with the hardware you're dealing with .... but some suggestions would be Perhaps try a different USB drive or device - your particular unit seems to have known problems under Linux, specifically…
  • elem2018
    elem2018 over 6 years ago in reply to Gough Lui +1
    According to your hints I tried the same process wiht a pure 4-Port USB 2.0 hub instead of previous 4-Port USB 2.0/3.0 hub. But the results are the same. WARP7 is deteced firstly as USB storage device…
  • 14rhb
    0 14rhb over 7 years ago

    What does lsblk command give you?

     

    Rod

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • elem2018
    0 elem2018 over 7 years ago in reply to 14rhb

    xfamed@ubuntu:~$ lsblk

    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT

    sda      8:0    0   500G  0 disk

    ├─sda1   8:1    0   492G  0 part /

    ├─sda2   8:2    0     1K  0 part

    └─sda5   8:5    0     8G  0 part [SWAP]

    sr0     11:0    1  1024M  0 rom 

     

    without sdb I don't know how to burn the whole image on it.

     

    Xi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • elem2018
    0 elem2018 over 7 years ago in reply to 14rhb

    Rod,

     

    any hint to get sdb ?

     

    Xi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Gough Lui
    0 Gough Lui over 7 years ago

    I'm not familiar with the hardware you're dealing with .... but some suggestions would be

     

    Perhaps try a different USB drive or device - your particular unit seems to have known problems under Linux, specifically this line:

    [  997.717282] usb-storage 1-1:1.0: Quirks match for vid 0525 pid a4a5: 10000

    That seems to imply that this particular device has some issues with its behaviour that causes strange behaviour and some workarounds are being applied. It's worth trying a different drive just to see if it is the drive itself or something else.

     

    Another thing which seems a little strange to me is that the drive seems to be registered using the uas driver and then it seems to be reset/dropped out after a while:

    [  997.740037] usbcore: registered new interface driver uas

    [ 1020.196637] usb 1-1: reset high-speed USB device number 2 using ehci-pci

    This seems to imply to me that your device is behaving like a USB external hard drive/SSD using a bridge chip (maybe)? It's seemingly confusing the operating system as normally UASP is only used over USB 3.0 interfaces, and it's connected using EHCI (USB 2.0) rather than xHCI (USB 3.0). I'd try using a USB 2.0 only bridge board or enclosure, or a non UASP capable bridge chip as an alternative, or even a USB 3.0 one but with a different chipset. Otherwise check the power supply to the drive (if it needs a high amount of power, it might not work) and the cable (esp if using cheap USB-OTG cable, this could be a source of issues). Maybe disabling the UAS driver could help.

     

    - Gough

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • elem2018
    0 elem2018 over 6 years ago in reply to Gough Lui

    According  to your hints I tried the same process wiht a pure 4-Port USB 2.0 hub instead of previous 4-Port USB 2.0/3.0 hub. But the results are the same.  WARP7 is deteced firstly as USB storage device but resetted subsequently.

    Finally I noticed that the USB 2.0 driver on my laptop is virtual ehci-pci driver because I use VM Ubuntu as guest system. So I changed to standalone ubuntu box and tried the same process again, and now it works just fine, without any issue.

    So the solution is to use linux box instead of the VM linux guest.  This case can be closed.

    -Xi

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube