![]() I picked some sort-of sensible idendtification, you can leave these options out, and then you seem to get random ones.Ĥ) You can do that with other types of USB devices as well, as long as there are gadget modules available for them. disk Linux File-Stor Gadget 0408 /dev/sdh ![]() (This is a small one, make it larger as appropriate)ģ) Load a gadget driver module to emulate the USB mass storage device (flash etc.): $ sudo modprobe g_mass_storage file=/tmp/backing_file idVendor=0x1d6b idProduct=0x0104 iManufacturer=Myself iProduct=VirtualBlockDevice iSerialNumber=123īus 005 Device 004: ID 1d6b:0104 Linux Foundation Multifunction Composite Gadget This is a loopback module that acts both as a USB gadget controller driver (client emulation), and a USB root hub (host emulation): $ sudo modprobe dummy_hcdīus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubĢ) Make an empty file that represents your storage device: $ dd bs=1024 count=128 if=/dev/zero of=/tmp/backing_file ![]() That is when I stumbled upon these USB Floppy Drive Emulators. I was trying to find a way to get a USB Flash Drive to act as a floppy without any emulator, but I finally gave up and started to look for a regular USB Floppy Drive. To my surprise, there's already a ready-made way to emulate USB devices:ġ) Load the dummy_hcd module. Look in the menu on the left side of their pages for '1.44 MB (USB) acts as USB Floppy Drive'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |