tag:blogger.com,1999:blog-1135701757802805375.post1394625301377643971..comments2023-05-26T09:44:59.815+02:00Comments on Working with Linux: USB File Storage Gadgetpela-suroshttp://www.blogger.com/profile/07522894660925331288noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-1135701757802805375.post-79678991103605212562016-12-28T14:37:55.974+01:002016-12-28T14:37:55.974+01:00Hi!
See https://wiki.tizen.org/wiki/USB/Linux_USB_...Hi!<br />See https://wiki.tizen.org/wiki/USB/Linux_USB_Layers/Configfs_Composite_Gadget/Usage_eq._to_g_mass_storage.koAnonymoushttps://www.blogger.com/profile/07852986791482380722noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-4098526182921404362016-12-23T12:34:51.712+01:002016-12-23T12:34:51.712+01:00I need some help , to create backing file storage ...I need some help , to create backing file storage for g_file_storage.ko driver needs parameter for that i followed this link <br /><br />http://www.linux-usb.org/gadget/file_storage.html<br /><br />Here, the point is data copying to mounted partition in PC but, i am unable to get data in device. <br /><br />I am thinking that need to mount that backing file storage to any partition in device then only we retrieve that data.<br /><br />please give the solution how to get data from that backing file storage in device.Anonymoushttps://www.blogger.com/profile/02270477006954882586noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-5095525386081235402013-04-10T05:02:19.268+02:002013-04-10T05:02:19.268+02:00Hi,
I need some helps on inserting two usb gadget ...Hi,<br />I need some helps on inserting two usb gadget modules.<br /><br />Can I insert two USB gadget modules simultaneously? for example, running command "sudo insmod g_hid.ko" then followed with "sudo insmod g_ether.ko".<br /><br />Any helps would be much appreciated.<br />ThanksAnonymoushttps://www.blogger.com/profile/05282506361344773739noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-66977336891818674022012-08-15T08:09:06.059+02:002012-08-15T08:09:06.059+02:00Jordi,
Another question... if I load a USB Sniffe...Jordi,<br /><br />Another question... if I load a USB Sniffer, and I plug a pen drive (flash drive) and a USB Floppy I see the following differences (other than vendor id and product id):<br /><br />USB Pen drive shows:<br />USB Class 08<br />USB Subclass 06<br />USB Protocol 50<br /><br />USB Floppy shows:<br />USB Class 08 <br />USB Subclass 04<br />USB Protocol 00<br /><br />Could you please shed some light as to if FSG allows to emulate these settings too?<br />FCNerd Progrehttps://www.blogger.com/profile/16328258490086439970noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-37385550690815463982012-08-15T06:58:51.717+02:002012-08-15T06:58:51.717+02:00Thanks for this document Jordi. It comes handy.
I...Thanks for this document Jordi. It comes handy.<br /><br />I wonder, is there a way for FSG to emulate a specific device, ie pass the right USB vendor id and product ID? (VID, PID) pairs?.<br /><br />Specifically I´d like to emulate a certain floppy adapter, that the host system expects to be present, and it has to be THAT one not any other.<br /><br />Thanks, <br />FCNerd Progrehttps://www.blogger.com/profile/16328258490086439970noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-40760867572803526372012-05-10T09:40:16.371+02:002012-05-10T09:40:16.371+02:00How to do this multiple LUN? I tried using g_file_...How to do this multiple LUN? I tried using g_file_storage g_mass_storage and g_multi cannot make the 2 drives appear in Windows 7 and Windows XP. What else to do for this multiple LUN to work? Does it not work with the generic driver from Microsoft?Andzhttps://www.blogger.com/profile/11479400535031062099noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-47613667993252242362012-04-01T21:46:19.401+02:002012-04-01T21:46:19.401+02:00Your're right, however, when I tried this I di...Your're right, however, when I tried this I did it in a 2.6.22 kernel which didn't suppoort this multi-file feature.<br /><br />Thanks for your input.pela-suroshttps://www.blogger.com/profile/07522894660925331288noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-23676152456524943052012-03-30T01:51:06.301+02:002012-03-30T01:51:06.301+02:00Hi Jordi, your answer is incorrect.
g_file_stora...Hi Jordi, your answer is incorrect. <br /><br />g_file_storage will happily emulate many mass storage devices (or, to be exact, multiple LUNs on one device, which has the same effect). Just try e.g. "file=storage1,storage2"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-45063063941230454272012-01-24T06:39:38.928+01:002012-01-24T06:39:38.928+01:00Hello Jordi,
I need help, in my application, I nee...Hello Jordi,<br />I need help, in my application, I need two gadget devices active at a time one for internal modem and other exposed externally for USB communication. I have these working individually but i can not enable both of then at time. is there workaround for this.<br /><br />thanks<br />DhanrajDJhttps://www.blogger.com/profile/05747095180310951127noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-17854069040309472772011-12-03T23:30:45.819+01:002011-12-03T23:30:45.819+01:00Hi Marcos,
No, g_file_storage only can emulate on...Hi Marcos,<br /><br />No, g_file_storage only can emulate one mass storage device.<br /><br />However, I think this is not the point. <br /><br />I am not sure if I understand what you try to do. A PC has a USB *host* interface, so it is not possible to run g_file_storage on the PC side, because this module is intended for USB slave/device interfaces only. <br /><br />About (b) you wouldn't need to unmount so that the files are refreshed. Just add the file to the exported directory and the new files should be visible. But, this is possible only between a USB host and a USB device, where the files reside on the USB device.<br /><br />hope this helps<br /><br />Regards<br />Jordipela-suroshttps://www.blogger.com/profile/07522894660925331288noreply@blogger.comtag:blogger.com,1999:blog-1135701757802805375.post-22175658829343675202011-12-03T21:29:02.343+01:002011-12-03T21:29:02.343+01:00Hi!!! How do you do?
I need some help with g_fil...Hi!!! How do you do?<br /><br /> I need some help with g_file_storage. I have some doubts about it. Could you help please?<br /><br /> a) Is it possible to emulate more than 1 USB mass storage in the same computer box? <br /> My computer box has 6 USB 2.0 ports. In each port, I will connect 1 DVD player through a USB in port. Each USB port could be recognized as a different USB mass storage, containing different files?<br /><br /> b) After the DVD player become connect to 1 of the USB mass storage from my computer box, how could I update the files in the directory used as the mass storage? Is it possible to unmount gadgetfs, update files and re-mount it again?<br /><br /><br /> Thanks and regards<br /> MarcosMarcosMaahttps://www.blogger.com/profile/18265425190169063845noreply@blogger.com