Re: [linux-usb-devel] Re: [ANNOUNCE] RNDIS Gadget Driver

David Brownell
2004-03-28T15:35:25Z

don wrote:

>>>A host driver "USB PTP Storage" would be really nice too. First
>>>as a generic camera interface, second to access a gadget with the
>>>PTP interface.
>>
>>There isn't one. There are two. No need to be embarrassed ... ;)
>>
>>They're both user-mode drivers. "gPhoto2", and "jPhoto". The
>>author of jPhoto (moi) hasn't had time to update that code in
>>ages.
>
>
> These are applications, not file system interfaces like USB Mass Storage.
> I want to mount the camera or gadget file system and access it from any
> program, not run a separate app to fetch files like Mass Stor. mounts
> a memory device.

As Andrew Zabolotny commented, NFS _does_ work today from those
devices. Except that it doesn't work to MS-Windows hosts, unless
they've been taught other parts of the protocol stack.

Presumably Samba over RNDIS would work from Windows, but that
would need extra work from many Linux hosts. Tradeoffs...

> Why create a dedicated app like a camera interface instead of using your
> favorite image browser on some files?

Well, PTP should take less memory inside the device/gadget than
a network stack, though it'd be less flexible. And there's
also something to be said for less code in the kernel, and a
simpler device setup model ... especially for the kinds of
products that'd be considering something like PTP.

But I think the basic answer to your question is probably just
that nobody's yet written, or at least submitted, PTP client
or server kernel code for Linux.

- Dave