This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB file storage gadget with kernel 2.6.37 (arago)

Hello. I have am3517evm board. When I use kernel 2.6.32 from arago i use g_file_storage gadget:

 modprobe g_file_storage file=/foo/bar1,/foo/bar2,/foo/bar3 stall=0 removable=1

and all was work.

Now I upgrade kernel to 2.6.37 (arago) and when I load  g_file_storage (or g_mass_storage) in host-PC with linux all work, but in host-PC in wondows work only first file (for example /foo/bar1). Windows do not see other partitions (/foo/bar2 and /foo/bar3). I try to use "luns" param, but it do not work correctly also.

  • Hi

    It was a lot of time ago so probably you have already found the solution. But maybe writing here can help someone else.

    At least Windozz 7 seems going crazy if cannot find iSerial string in USB Device Descriptor, "loading" first disk only. In older kernel that string was handled by the gadget code itself, but more recently it must be specified as a module parameter, otherwise empty string will be used (iString=0). So try with:

    modprobe g_file_storage file=/foo/bar1,/foo/bar2,/foo/bar3 stall=0 removable=1 serial=3230204E6F76

    Regards, Max