On Mon, 2006-01-30 at 16:07 -0500, Alan Stern wrote:
> On Mon, 30 Jan 2006, Sean Bruno wrote:
> 
> > I followed the instructions at
> > http://www.linux-usb.org/gadget/file_storage.html and was able to see a
> > nice little USB mass storage disk on my PC.  Nice!
> 
> I'm unclear on this.  Which USB Peripheral Controller did you set up in 
> the system configuration?  What hardware are you using for your gadget?
No problem, I'm was kind of foggy on the details.

Looking over the g_file_storage driver, it appears that I setup the
dummy_hdc driver to process my device.  So, that is how I am able to see
the 'mass storage' device on the local machine.

Here is a snippet from /var/log/messages.  I have changed the backing
store to be a seperate disk, i.e. hdd1.

dummy_hcd hc0: USB Host+Gadget Emulator, driver 14 Mar 2004
dummy_hcd hc0: new USB bus registered, assigned bus number 6
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 1 port detected
dummy_hcd hc0: binding gadget driver 'g_file_storage'
g_file_storage udc: File-backed Storage Gadget, version: 28 July 2004
g_file_storage udc: Number of LUNs=1
g_file_storage udc-lun0: ro=0, file: /dev/hdd1
dummy_hcd hc0: port status 0x00010101 has changes
usb 6-1: new high speed USB device using address 2
dummy_hcd hc0: set_address = 2
dummy_hcd hc0: enabled ep-a (ep1in-bulk) maxpacket 512
dummy_hcd hc0: enabled ep-b (ep2out-bulk) maxpacket 512
g_file_storage udc: high speed config #1
dummy_hcd hc0: port status 0x00040503 has changes
dummy_hcd hc0: port status 0x00040503 has changes
Initializing USB Mass Storage driver...
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Linux     Model: File-Stor Gadget  Rev: 0302
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 586067202 512-byte hdwr sectors (300066 MB)
sda: assuming drive cache: write through
 sda:
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

> 
> > Now I want to turn one Linux PC into a Mass Storage device.  I just
> > can't seem to figure out how to get the 2nd PC to see it on the USB bus.
> > I assume that I am missing the obvious here.   :)
> > 
> > So, here's my scenario.
> > 
> > I have two PC's interconnected with a USB transfer cable(USB A to USB
> > A): Prolific PL-2301/PL-2302.  Both machines have Intel Corporation
> > 82801EB/ER (ICH5/ICH5R) USB2 controllers.
> 
> Isn't that basically a serial connection?  Or am I thinking of something 
> else?

I think that it is a serial transfer 'thingy', i.e. the Prolific cable.
It seems to be handled by a different driver now that I look at:

Jan 30 16:13:58 custserver kernel: usb 3-1: new full speed USB device
using uhci_hcd and address 2
Jan 30 16:13:58 custserver kernel: usb 3-1: configuration #1 chosen from
1 choice
Jan 30 16:13:58 custserver kernel: usb0: register 'plusb' at
usb-0000:00:1d.3-1, Prolific PL-2301/PL-2302, d6:79:87:03:67:5e
Jan 30 16:13:58 custserver kernel: usbcore: registered new driver plusb

Would this cable even work to interconnect two PC's for the purposes of
seeing the mass storage device?

> 
> > Whenever I modprobe g_file_storage, the PC that I wish to be the mass
> > storage box sees the 'new' device and set's up SDA locally to that
> > machine.
> > 
> > However, I can't seem to see the Mass Storage device from the other PC.
> > 
> > Any ideas?
> 
> Not until I understand what you've done more fully.

Basically, I followed the g_file_storage how to that was on the
linux-usb web site.  

Now I am attempting to extend that howto into mounting the
g_file_storage mass storage device from another PC via a USB cable.

So...Is this even possible with the ICH5 USB controller?

Sean



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to