USB key simulation with linux PC
Are there any tools to simulate a USB key using a linux PC. The objective is to connect the USB cable to another PC that will see it as a USB key (USB MSC or UMS).
Thanks in advance,
USB interfaces operate as either 'devices' or 'hosts'. These are USB standard definitions. In Linux, for a USB interface to behave as a device (as opposed to the normal 'host' mode), the kernel must implement the USB-Gadget driver. This, then, precludes the use of any USB host interface. Further, there must be some application &/or driver that implements the functionality of the USB device.
I don't know of any existing code that makes a PC look like a giant USB thumb drive, although I've seen requests like yours before.
I compiled the gadget g_mass_storage.ko driver and I tried it, when I try to load it I get an error:
couldn't find an available UDC
I guess that the driver is not finding the correct hardware in my PC for a usb device controller, the usb hardware in my motherboard is only usb host controller...
So I guess that it is not possible to do it with a normal PC, you need some embedded platform that has an usb device controller.
I'll look for an usb key with two connectors, if such a thing exists...
|All times are GMT -5. The time now is 06:58 AM.|