public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: GN Keshava <keshava.gn@gmail.com>
Cc: "edk2-devel@lists.sourceforge.net"
	<edk2-devel@lists.sourceforge.net>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"edk2-devel@lists.01.org" <edk2-devel@ml01.01.org>
Subject: Re: Strange issue in USB mass storage device
Date: Mon, 22 May 2017 08:52:15 -0700	[thread overview]
Message-ID: <2862566E-A7BE-4A07-823D-FA4219840C22@apple.com> (raw)
In-Reply-To: <CABKwMds4ESUEm6=s4c0OcAg0r7C6CxsUKO9fJrm2r5Q6s+6YSg@mail.gmail.com>

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


      reply	other threads:[~2017-05-22 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-22  8:37 Strange issue in USB mass storage device GN Keshava
2017-05-22 15:52 ` Andrew Fish [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2862566E-A7BE-4A07-823D-FA4219840C22@apple.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox