Re: Linux USB file storage gadget with new UDC

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

 



Hi,

>>> > the parameter is file=/dev/mmcblk0p1
>>
>> Perhaps you have already realized this...  mmcblk0p1 is the first
>> partition of the mmcblk0 device.  Block 0 of the partition is the boot
>> sector, not the MBR.  The MBR is block 0 of the mmcblk0 device.  So
>> perhaps you really meant to use:
>>
>>         file=/dev/mmcblk0
>>
>>> I see a problem here. The first 32 bytes of the boot sector is
>>> correct. The rest of the bytes are 00000000, which is wrong. See the
>>> usbmon trace below.
>>>
>>
>> Are you certain this is wrong?  All those 0's could be unoccupied
>> entries in a FAT.
>
> For testing purpose, i would like to create a backing file, and then
> use it with g_file_storage, such as below:
>
> # modprobe g_file_storage file=/tmp/backing_file
>
> Can i use an ordinary text file as the backing file?

I find a link which contains answers to my question above.

http://www.linux-usb.org/gadget/file_storage.html

Thanks,
victor
--
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