Re: USBFN storage device



Hi Dean,

thanks for that information.

May I ask you another question?

When I connect to PC host I receive always an exception from an critical
section

0x89f0c6b0: UsbFnMdd!ProcessGetDescriptor: Get device descriptor request.
0x89f0c6b0: !ERROR: Calling EnterCriticalSection on a CS (01fb06b4) that is
not initialized!
0x89f0c6b0: Coredll: DEBUGCHK failed in file
c:\macallan\private\winceos\coreos\core\dll\cscode.c at line 8

I have checked in my code, but I only have one critical section and close
and open it correctly. The problem occurs in the

svsutil_Alloc(int 0x00000018, void * 0x00000000) line 173

which does an EnterCriticalSection().

Any idea?

Thanks

Mike E.

"Dean Ramsier" <ramsiernospam@xxxxxxxxxx> escribió en el mensaje
news:#uJwWFrkFHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
> Make sure you've configured the USB Mass Storage registry settings
> appropriately for your device, see PB help for more details. CE dismounts
> your disk when it is exposed as a mass storage device to prevent
corruption.
> This behavior is as designed. I believe you'll need to remount manually
> (through the Storage Manager for example) if you want access to it from
the
> device side again. I haven't tried this though...
>
> --
> Dean Ramsier - eMVP
>
>
> "Mike Engel" <anadi@xxxxxxxxxxxxx> wrote in message
> news:OxxM80qkFHA.2916@xxxxxxxxxxxxxxxxxxxxxxx
> > Hi Dean,
> >
> > this works now as mentioned, but when I try on my PC Host to access the
> > storage device it always fails. I have seen that the Mass Storage driver
> > unmounts my physical disc (dsk1:). Why does he unmount the device and
what
> > is the command to mount it again? Do I need to mount the disc manually?
> >
> > Thanks for your help.
> >
> > Mike E.
> >
> > "Dean Ramsier" <ramsiernospam@xxxxxxxxxx> escribió en el mensaje
> > news:uK2DqCsjFHA.3540@xxxxxxxxxxxxxxxxxxxxxxx
> > > The Mass storage client driver is intended to expose an existing block
> > > device on the platform, and provides acces to files that have already
> been
> > > stored on the device and the ability to add new ones. The files can
be
> > > acessed from either the CE device or the host (although not
> > simultaneously).
> > > It therefore requires a block driver to be already in place...
> > >
> > > --
> > > Dean Ramsier - eMVP
> > >
> > >
> > > "Mike Engel" <anadi@xxxxxxxxxxxxx> wrote in message
> > > news:eh9S6xqjFHA.476@xxxxxxxxxxxxxxxxxxxxxxx
> > > > Hi
> > > >
> > > > thanks for you quick reply I will try this. I thought it was
> implemented
> > > > similar to Linux, where you use a simple file to store the data.
> > > >
> > > > We use a NetSilicon ARM9 (NS9360) CPU as our platform.
> > > >
> > > > Best regards,
> > > >
> > > > Mike Engel
> > > >
> > > > "Voidcoder" <voidcoder@xxxxxxxxx> escribió en el mensaje
> > > > news:#LfT0pqjFHA.1372@xxxxxxxxxxxxxxxxxxxxxxx
> > > > > For some unknown reason MS decided that mass storage function
> > > > > will work only on top of the block device. If You dont have one
> > > > > You are out of luck here. The only solution I know to get it
working
> > > > > with RAM filesystem is to create a RAMDISK driver (You may want
> > > > > to use existing sample from \WINCE500\PUBLIC\COMMON\
> > > > > OAK\DRIVERS\BLOCK\RAMDISK). This will give You the "DSK1:"
> > > > > device.
> > > > >
> > > > > Btw what platform is it? ARM is very vague.
> > > > >
> > > > >
> > > > > "Mike Engel" <anadi@xxxxxxxxxxxxx> wrote in message
> > > > news:OXcUteqjFHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
> > > > > > Hi all,
> > > > > >
> > > > > > I have some problems in getting the USBFN storage working on my
> > > target.
> > > > I
> > > > > > want that my device appears as storage device on a PC. When I
> attach
> > > the
> > > > > > device the USBFN storage driver tried to access the DSK1: on my
> > > Windows
> > > > CE
> > > > > > device. As I do not have that device the CreateFile() fails and
is
> > > stops
> > > > the
> > > > > > initialisation of the USBFN storage driver.
> > > > > >
> > > > > >
> > > >
> > >
> >
>
\Wince500\public\common\oak\driver\usbfn\class\storage\emulation\Scsi2\block
> > > > > > .cpp
> > > > > >
> > > > > > What do I need to add to my kernel to get this running?
> > > > > >
> > > > > > I have included Mass Storage and USBFN driver. I use Windows CE
> V5.0
> > > for
> > > > an
> > > > > > ARM platform.
> > > > > >
> > > > > > Thanks for any advice.
> > > > > >
> > > > > > Mike Engel
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


.



Relevant Pages

  • Re: USB Mass Storage Device ( Not able to open the drive)
    ... My USB Mass Storage Device driver is working. ... Is it possible for me to access Storage Card through ... Device from my host). ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Directory to expose for USB mass storage device function
    ... What you seem to want is the CE device to be the USB Mass Storage Device - and you want to share a folder on the CE device and expose that to a USB Host. ... USB Mass Storgae export a 'store', that is a partition on a block device, rather than part of a directory tree - this is because USB mass storage operates using block device commands rather than file system commands and hence the host can controller the file system on the device. ...
    (microsoft.public.windowsce.embedded)
  • Re: MP3 players
    ... mounted as USB mass storage devices? ... You can mount a few various generation IPODs like that. ... The iAudio models and the newer ...
    (alt.os.linux)
  • Re: MP3 players
    ... mounted as USB mass storage devices? ... You can mount a few various generation IPODs like that. ... The iAudio models and the newer ...
    (alt.os.linux)
  • Trouble with Mounting CF Card Reader
    ... When I want to mount the card reader with the fstab entry: ... usbview shows for mass storage the following entry: ... Oliver F. Nandico |eMail: ...
    (alt.os.linux.suse)