From: "Michał Nazarewicz" <m.nazarewicz@samsung.com>
To: Daniel Mack <daniel@caiaq.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
Kyungmin Park <kyungmin.park@samsung.com>
Subject: Re: USB gadget with drivers "on board"
Date: Mon, 26 Apr 2010 16:42:17 +0200 [thread overview]
Message-ID: <op.vbrxsrw07p4s8u@pikus> (raw)
In-Reply-To: <20100426141605.GO30801@buzzloop.caiaq.de>
> On Mon, Apr 26, 2010 at 10:29:05AM +0200, Michał Nazarewicz wrote:
>> I need to create an USB gadget with drivers for Windows included
>> "on board". In particular, when the gadget is connected to Windows
>> host it is detected as mass storage and mounted drive include the
>> drivers. However, when the drivers are installed, it is detected
>> as some other device.
>>
>> Now, it seems that a simple composite device with two configurations
>> is enough -- the first containing mass storage and the second other
>> functions. My tests show that Windows manages to set the first
>> configuration and detect the mass storage interface.
On Mon, 26 Apr 2010 16:16:05 +0200, Daniel Mack <daniel@caiaq.de> wrote:
> Why are you using two configurations on this device instead of one
> configuration with two interfaces? Interfaces are not allowed to share
> endpoints within one configuration, so they can be used simultaniously.
Ideally, I would like to use two configurations on its own just like
g_ether that is one configuration with RNDIS and some other functionality
and another with CDC ECM and some other functionality.
It seems however that such gadgets are not properly detected by Windows
as composite devices and thus require a driver (I imagined a single INF
should be enough but now I'm not even sure of that) and so I tried adding
another configuration with just the mass storage function and this seems
to be handled correctly.
Now, even if I were to ignore the other RNDIS/ECM multiple personality
disorder and sticking to a single configuration with RNDIS there's still
an issue (or challenge if you will) of a "Found new driver" dialog
popping up like crazy when the device is inserted but the drivers from
mass storage didn't have time to install. This is especially true since
it was my experience that RDNIS is able to freeze Windows if it's not
the first interface.
So in the end, I'm looking for a method to get a device that can be
plugged in and report as mass storage with drivers but when drivers
are installed report as something else. I know it is possible since
I encountered several devices that do exactly that.
PS. There seem to be some mass with the To and Cc headers in my
original message. Sorry about that.
--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michał "mina86" Nazarewicz (o o)
ooo +---[mina86@mina86.com]---[mina86@jabber.org]---ooO--(_)--Ooo--
next prev parent reply other threads:[~2010-04-26 14:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 8:29 USB gadget with drivers "on board" Michał Nazarewicz
2010-04-26 14:16 ` Daniel Mack
2010-04-26 14:42 ` Michał Nazarewicz [this message]
2010-04-26 14:57 ` Daniel Mack
2010-04-26 15:45 ` Michał Nazarewicz
2010-04-26 17:37 ` Josua Dietze
2010-04-26 19:34 ` Alan Stern
2010-04-26 20:14 ` Josua Dietze
2010-04-28 8:46 ` Michał Nazarewicz
2010-04-28 11:31 ` Michał Nazarewicz
2010-04-28 11:41 ` Josua Dietze
2010-04-28 11:54 ` Michał Nazarewicz
2010-04-28 15:59 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.vbrxsrw07p4s8u@pikus \
--to=m.nazarewicz@samsung.com \
--cc=daniel@caiaq.de \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox