Re: USB Mass Storage + Ethernet Composite Gadget problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/7/3 Michał Nazarewicz <m.nazarewicz@xxxxxxxxxxx>:
Anyone knows how to create Windows drivers for a custom made
composite gadget?  As said earlier, I'm tryingo to create
mass storage + RNDIS composite gadget and so need Windows
driver which would handle (at least) that.

On Fri, 03 Jul 2009 10:45:55 +0200, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
Windows has built-in USB mass storage device driver. So it should just
work. You need an INF file for the RNDIS part.

Actually, I have a RNDIS driver installed. If I compile the device with Ethernet Gadget for instance, I can communicate with Windows via the RNDIS protocol. Also, If I compile the mass storage I can treat the device as mass storage. Problem is, I cannot seem to make Windows handle a composite with RNDIS and mass storage.

My guess is, neither mass storage nor RNDIS driver matches the device (as it has both the functions not one of it) and so Windows tries to look for the driver matching the vendor+product ID pair. Linux however, identifies individual functions and assigns driver to them rather the whole device as such. I'm not experienced with Windows so I'm not sure if that's the case but it seem to make sens...

Example:
http://www.mjmwired.net/kernel/Documentation/usb/linux.inf

But this is a bit different from the official RNDIS template inf file from
Microsoft.
http://msdn.microsoft.com/en-us/library/bb500930.aspx

I do not know why the above linux.inf file has section
related to legacy Windows 98/ME. And I do not think Windows NT
will support USB RNDIS either since it does not even support USB
well. On the other hand, it is missing the 64bit section. Maybe
it is from the old RNDIS kit for Windows 2000.
http://www.microsoft.com/whdc/device/network/NDIS/rndisconfirm.mspx

But even this version does not mention Windows 98SE/ME/NT.

Thanks for the link. I'll look into them further. Currently, I don't care about anything other then XP, so 98/ME/NT is not an issue (first I want to make it work under XP then I'll worry with other versions). Anyways, I'm somehow worried, that even if I understand the INF files I'll still have problems creating a custom one with both the functionalities (mass storage + RNDIS).

--
Best regards,                                            _     _
 .o. | Liege of Serenly Enlightened Majesty of         o' \,=./ `o
 ..o | Computer Science,  Michał "mina86" Nazarewicz      (o o)
 ooo +-<m.nazarewicz@xxxxxxxxxxx>-<mina86@xxxxxxxxxx>-ooO--(_)--Ooo--

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux