public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Strange issue in USB mass storage device
@ 2017-05-22  8:37 GN Keshava
  2017-05-22 15:52 ` Andrew Fish
  0 siblings, 1 reply; 2+ messages in thread
From: GN Keshava @ 2017-05-22  8:37 UTC (permalink / raw)
  To: edk2-devel@lists.sourceforge.net
  Cc: edk2-devel@lists.01.org, edk2-devel@lists.01.org

Hi all,

I'm testing a USB mass storage device (A linux CDC gadget, which has serial
and mass storage with FAT32 filesystem) which works fine with Windows.

I'm booting to UEFI shell using another mass storage device (a thumb drive).
My device under test (A linux CDC gadget, which has serial and mass
storage) detects as file system (fsx: ) only if its device path is lesser
than the thumb drive. Thumb drive detects always.
Example:
case 1:
Thumb drive: PCI.../.../USB(*2,0*)/HD(MBR...
Device under test: PCI.../.../USB(*6,2*)

Result: Device under test doesn't mount. But it's just shown as Removable
block device. Even if I use mount command, its not mounted. I cant access
files.

case 2:
Thumb drive: PCI.../.../USB(*6,0*)/HD(MBR...
Device under test: PCI.../.../USB(*2,2*)

Result: Device under test mounts properly as fs2: . I can access files.

Also, it can be noted that thumb drive is shown as "HD(MBR...)" whereas my
DUT does not show this part.

Any pointers would be much appreciated.

Thanks and regards,
Keshava


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Strange issue in USB mass storage device
  2017-05-22  8:37 Strange issue in USB mass storage device GN Keshava
@ 2017-05-22 15:52 ` Andrew Fish
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fish @ 2017-05-22 15:52 UTC (permalink / raw)
  To: GN Keshava
  Cc: edk2-devel@lists.sourceforge.net, edk2-devel@lists.01.org,
	edk2-devel@lists.01.org

Your device path difference is based on having a partitioning scheme (MBR or GPT) or not. The partition driver will produce block io protocols for all the partitions. The file system driver goes after fixed block offsets.
> On May 22, 2017, at 1:37 AM, GN Keshava <keshava.gn@gmail.com> wrote:
> 
> Hi all,
> 
> I'm testing a USB mass storage device (A linux CDC gadget, which has serial
> and mass storage with FAT32 filesystem) which works fine with Windows.
> 
> I'm booting to UEFI shell using another mass storage device (a thumb drive).
> My device under test (A linux CDC gadget, which has serial and mass
> storage) detects as file system (fsx: ) only if its device path is lesser
> than the thumb drive. Thumb drive detects always.
> Example:
> case 1:
> Thumb drive: PCI.../.../USB(*2,0*)/HD(MBR...
> Device under test: PCI.../.../USB(*6,2*)
> 
> Result: Device under test doesn't mount. But it's just shown as Removable
> block device. Even if I use mount command, its not mounted. I cant access
> files.
> 
> case 2:
> Thumb drive: PCI.../.../USB(*6,0*)/HD(MBR...
> Device under test: PCI.../.../USB(*2,2*)
> 
> Result: Device under test mounts properly as fs2: . I can access files.
> 
> Also, it can be noted that thumb drive is shown as "HD(MBR...)" whereas my
> DUT does not show this part.
> 
> Any pointers would be much appreciated.
> 
> Thanks and regards,
> Keshava
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-22 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-22  8:37 Strange issue in USB mass storage device GN Keshava
2017-05-22 15:52 ` Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox