Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-28-2013, 09:07 AM   #1
LQ Newbie
Registered: May 2013
Location: Dayton, OH
Distribution: Ubuntu 12.04 on PandaBoard ES rev. B2
Posts: 2

Rep: Reputation: Disabled
USB Mass Storage Gadget Driver used with PandaBoard and WD HDD

I'm running Ubuntu 12.04 / 3.2.0-1412-omap2 on a PandaBoard ES rev B2 and I am attempting to use the PandaBoard between a Win7 PC (connected to the OTG port) and a Western Digital My Passport HDD (connected to one of the host USB ports). Yes, this is one of those wonderful full-disk, self-encrypting devices (insert eye roll here). I have attempted to use the USB Mass Storage gadget driver (g_mass_storage) to some success: the WD comes up in Ubuntu as /dev/sr0 (because that is the read-only unlocker partition, defined as a CD-ROM device) AND the Win7 machine does see the WD unlocker partition, too, but I am unable to communicate with the device. It appears that the WD device is expecting an IOCTL_SCSI_PASS_THROUGH_DIRECT command to unlock it; it also appears that the command is dropped or ignored by the gadget driver.

Using a *standard* WD HDD, I can read & write through the PandaBoard without any problems using the above method. As stated above, though, it appear it is that one command that seems to ignored completely. I have attempted to implement g_serial, g_zero, as well as several other modules to no avail; g_mass_storage is the closest.

I'm still fairly new to Linux, although everything I've read states that this *should* work... and it does not. Any thoughts or suggestions would be greatly appreciated.

Thank you!!!
Old 05-30-2013, 07:21 AM   #2
LQ Newbie
Registered: May 2013
Location: Dayton, OH
Distribution: Ubuntu 12.04 on PandaBoard ES rev. B2
Posts: 2

Original Poster
Rep: Reputation: Disabled
Allow me to clarify a bit: the goal is to work around Windows' and WD's quasi-non-standard USB implementation. Instead of using the mass storage gadget, is there any way to make the PandaBoard appear to Windows as a "generic USB hub" instead of as "Linux CD-Gadget", thus making the Pandaboard essentially transparent in the communications chain? Is there a USB gadget driver that strictly implements a soft hub, thus linking the OTG port and one of the USB host ports?

Again, thank you!

Last edited by flashpoint1973; 05-30-2013 at 07:23 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
set feature halt endpoint fails always USB linux driver usb gadget serial dot c sarmads1 Linux - Kernel 0 08-14-2012 10:06 PM
About USB Gadget serial driver sdefayette Linux - General 1 08-12-2012 11:41 AM
Linux usb gadget HID driver problem Sebteams69 Linux - Newbie 7 06-12-2012 02:24 PM
usb gadget printer driver application grsandeep85 Programming 1 08-18-2010 01:24 AM
Transfer and mass storage usb driver spec6635 Slackware 4 01-05-2005 05:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration