Hello everyone,

I'm using VS2005 and windows CE 6.0 R2, in trying to mount a CF drive via an
IDE interface on a CEPC system. I've included both the ATAPI, ATADISK, and
storage manager control panel plug-in components from platform builder into
the OS.

The resulting operating system does appear to load the ATAPI drivers just
fine as I can see the drive on the left hand side of the Storage Manager. The
right hand side where the partition information is generally listed is blank
however, so it appears I am having a problem with the partition driver or
it's settings.

I've built this CF card using the setup disk image and I am now able to boot
from that directly. I've tried two configurations for the partitions on this
device:

- A single 256 MB FAT16 partition (prefered configuration)
- One 32Mb FAT16 patition and a second 196Mb extended FAT 16 partition /
logical drive

Both configuration give the same results as mentionned above.

I am thinking that the ATAPI drivers are not properly linked to the
StorageManager profiles in my registry or my partition driver is not
propoerly called out, but I am unsure how to go about correcting this... Do I
need to add a "profile" entry in the somewhere in the drivers registry
entries to properly link the two?

Any input on what exactly needs to be adjusted to get this working properly
would be greatly appreciated...

Here are the pertinent registry details as I have them currently configured:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\ALI14531]
"IoLen"=hex(7):\
38,00,34,00,38,00,34,00,31,30,00,00,00,00,00,00,00,00,00,00,00,00
"IoBase"=hex(7):\

31,66,30,00,33,66,34,00,31,37,30,00,33,37,34,00,61,30,30,30,00,00,00,00,00,\
00,00,00,00,00,00,00
"FunctionNumber"=dword:00000000
"DeviceNumber"=dword:0000000f
"BusNumber"=dword:00000000
"InterfaceType"=dword:00000005
"SubSystemID"=dword:0000aa2d
"SubVendorID"=dword:00001019
"RevisionID"=dword:00000006
"DeviceID"=dword:00000571
"VendorID"=dword:00001106
"ProgIF"=dword:0000008a
"Disable48BitLBA"=dword:00000000
"RegisterStride"=dword:00000001
"StatusPollCyclePause"=dword:00000050
"StatusPollsPerCycle"=dword:00000020
"StatusPollCycles"=dword:00000500
"SoftResetTimeout"=dword:00000003
"DMAAlignment"=dword:00000004
"SysIntr"=dword:00000000
"Irq"=dword:0000000e
"Legacy"=dword:00000001
"ConfigEntry"="GenericConfig"
"SubClass"=dword:00000001
"Class"=dword:00000001
"Order"=dword:00000002
"Dll"="atapi.dll"
"Prefix"="IDE"
"IClass"=hex(7):\

7b,43,44,44,43,33,36,32,31,2d,33,35,31,32,2d,34,62,33,66,2d,42,42,36,46,2d,\
42,34,44,44,35,45,30,36,31,37,39,35,7d,00,00,00,00
"SpawnFunction"="CreatePCIHD"
"InstanceIndex"=dword:00000001

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\ALI14531\Device0]
"Port"=dword:d0489f20
"TransferMode"=dword:000000ff
"DeviceId"=dword:00000000
"LookAhead"=dword:00000001
"WriteCache"=dword:00000001
"DrqDataBlockSize"=dword:00000000
"DoubleBufferSize"=dword:00010000
"DMA"=dword:00000002
"InterruptDriven"=dword:00000001
"Dll"="atapi.dll"
"Prefix"="DSK"
"IClass"=hex(7):\

7b,41,34,45,37,45,44,44,41,2d,45,35,37,35,2d,34,32,35,32,2d,39,44,36,42,2d,\
34,31,39,35,44,34,38,42,42,38,36,35,7d,00,00,00,00

[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
"FriendlyName"="FAT FileSystem"
"Dll"="exfat.dll"
"DisableAutoFormat"=dword:00000001
"DisableAutoScan"=dword:00000001
"Paging"=dword:00000001
"EnableCache"=dword:00000001
"CacheSize"=dword:00000000
"Util"="fatutil.dll"
"CacheDll"="diskcache.dll"

[HKEY_LOCAL_MACHINE\System\StorageManager\MSPART]
"Dll"="mspart.dll"

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
"AutoMount"=dword:00000001
"AutoPart"=dword:00000000
"AutoFormat"=dword:00000000
"MountFlags"=dword:00000000
"DefaultFileSystem"="FATFS"
"PartitionDriverName"="MSPART"
"Folder"="Mounted Volume"
"ActivityEvent"="PowerManager/ActivityTimer/SystemActivity"

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
"Name"="IDE Hard Disk Drive"
"Folder"="Hard Disk"

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
"EnableCacheWarm"=dword:00000000

Re: Problems mounting CF partitions by Paul

Paul
Wed Mar 26 14:52:39 PDT 2008

You probably have done this, but are you sure that you have FAT Filesystem
and the Partition Driver in the OS? And did a Clean Sysgen of the OS and
made sure that you used the new registry on your device after making the
change? I don't use IDE to get to my CF cards (PCMCIA), but every time I've
had a problem mounting a CF card, it was always one or the other of those
components missing...

Paul T.

"spyke555" <spyke555@discussions.microsoft.com> wrote in message
news:49E1D9AE-4053-4844-9E13-860C5D3F5912@microsoft.com...
> Hello everyone,
>
> I'm using VS2005 and windows CE 6.0 R2, in trying to mount a CF drive via
> an
> IDE interface on a CEPC system. I've included both the ATAPI, ATADISK, and
> storage manager control panel plug-in components from platform builder
> into
> the OS.
>
> The resulting operating system does appear to load the ATAPI drivers just
> fine as I can see the drive on the left hand side of the Storage Manager.
> The
> right hand side where the partition information is generally listed is
> blank
> however, so it appears I am having a problem with the partition driver or
> it's settings.
>
> I've built this CF card using the setup disk image and I am now able to
> boot
> from that directly. I've tried two configurations for the partitions on
> this
> device:
>
> - A single 256 MB FAT16 partition (prefered configuration)
> - One 32Mb FAT16 patition and a second 196Mb extended FAT 16 partition /
> logical drive
>
> Both configuration give the same results as mentionned above.
>
> I am thinking that the ATAPI drivers are not properly linked to the
> StorageManager profiles in my registry or my partition driver is not
> propoerly called out, but I am unsure how to go about correcting this...
> Do I
> need to add a "profile" entry in the somewhere in the drivers registry
> entries to properly link the two?
>
> Any input on what exactly needs to be adjusted to get this working
> properly
> would be greatly appreciated...
>
> Here are the pertinent registry details as I have them currently
> configured:
>
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\ALI14531]
> "IoLen"=hex(7):\
> 38,00,34,00,38,00,34,00,31,30,00,00,00,00,00,00,00,00,00,00,00,00
> "IoBase"=hex(7):\
>
> 31,66,30,00,33,66,34,00,31,37,30,00,33,37,34,00,61,30,30,30,00,00,00,00,00,\
> 00,00,00,00,00,00,00
> "FunctionNumber"=dword:00000000
> "DeviceNumber"=dword:0000000f
> "BusNumber"=dword:00000000
> "InterfaceType"=dword:00000005
> "SubSystemID"=dword:0000aa2d
> "SubVendorID"=dword:00001019
> "RevisionID"=dword:00000006
> "DeviceID"=dword:00000571
> "VendorID"=dword:00001106
> "ProgIF"=dword:0000008a
> "Disable48BitLBA"=dword:00000000
> "RegisterStride"=dword:00000001
> "StatusPollCyclePause"=dword:00000050
> "StatusPollsPerCycle"=dword:00000020
> "StatusPollCycles"=dword:00000500
> "SoftResetTimeout"=dword:00000003
> "DMAAlignment"=dword:00000004
> "SysIntr"=dword:00000000
> "Irq"=dword:0000000e
> "Legacy"=dword:00000001
> "ConfigEntry"="GenericConfig"
> "SubClass"=dword:00000001
> "Class"=dword:00000001
> "Order"=dword:00000002
> "Dll"="atapi.dll"
> "Prefix"="IDE"
> "IClass"=hex(7):\
>
> 7b,43,44,44,43,33,36,32,31,2d,33,35,31,32,2d,34,62,33,66,2d,42,42,36,46,2d,\
> 42,34,44,44,35,45,30,36,31,37,39,35,7d,00,00,00,00
> "SpawnFunction"="CreatePCIHD"
> "InstanceIndex"=dword:00000001
>
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\ALI14531\Device0]
> "Port"=dword:d0489f20
> "TransferMode"=dword:000000ff
> "DeviceId"=dword:00000000
> "LookAhead"=dword:00000001
> "WriteCache"=dword:00000001
> "DrqDataBlockSize"=dword:00000000
> "DoubleBufferSize"=dword:00010000
> "DMA"=dword:00000002
> "InterruptDriven"=dword:00000001
> "Dll"="atapi.dll"
> "Prefix"="DSK"
> "IClass"=hex(7):\
>
> 7b,41,34,45,37,45,44,44,41,2d,45,35,37,35,2d,34,32,35,32,2d,39,44,36,42,2d,\
> 34,31,39,35,44,34,38,42,42,38,36,35,7d,00,00,00,00
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
> "FriendlyName"="FAT FileSystem"
> "Dll"="exfat.dll"
> "DisableAutoFormat"=dword:00000001
> "DisableAutoScan"=dword:00000001
> "Paging"=dword:00000001
> "EnableCache"=dword:00000001
> "CacheSize"=dword:00000000
> "Util"="fatutil.dll"
> "CacheDll"="diskcache.dll"
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\MSPART]
> "Dll"="mspart.dll"
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
> "AutoMount"=dword:00000001
> "AutoPart"=dword:00000000
> "AutoFormat"=dword:00000000
> "MountFlags"=dword:00000000
> "DefaultFileSystem"="FATFS"
> "PartitionDriverName"="MSPART"
> "Folder"="Mounted Volume"
> "ActivityEvent"="PowerManager/ActivityTimer/SystemActivity"
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
> "Name"="IDE Hard Disk Drive"
> "Folder"="Hard Disk"
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
> "EnableCacheWarm"=dword:00000000
>



Re: Problems mounting CF partitions by spyke555

spyke555
Wed Mar 26 18:54:00 PDT 2008

Thanks for the feedback Paul,

I double checked and both the FAT file system and Partition Driver
components are included as dependancies, so that's not it in my case.

One thing I did notice while looking at the registry entries that I thought
was somewhat odd are these entries:

> > [HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
> > "FriendlyName"="FAT FileSystem"
> > "Dll"="exfat.dll"
> > "DisableAutoFormat"=dword:00000001
> > "DisableAutoScan"=dword:00000001
> > "Paging"=dword:00000001
> > "EnableCache"=dword:00000001
> > "CacheSize"=dword:00000000
> > "Util"="fatutil.dll"
> > "CacheDll"="diskcache.dll"

Looks like registry is currently set-up to use the exFAT File System as the
FATFS driver... Now of course the exFAT File System Component is NOT
currently included in my OS.

I added the exFAT component and that didn't help the situation. Thinking I
may need to override these FATFS settings with something different, but not
sure what...

"Paul G. Tobey [eMVP]" wrote:

> You probably have done this, but are you sure that you have FAT Filesystem
> and the Partition Driver in the OS? And did a Clean Sysgen of the OS and
> made sure that you used the new registry on your device after making the
> change? I don't use IDE to get to my CF cards (PCMCIA), but every time I've
> had a problem mounting a CF card, it was always one or the other of those
> components missing...
>
> Paul T.
>
> "spyke555" <spyke555@discussions.microsoft.com> wrote in message
> news:49E1D9AE-4053-4844-9E13-860C5D3F5912@microsoft.com...
> > Hello everyone,
> >
> > I'm using VS2005 and windows CE 6.0 R2, in trying to mount a CF drive via
> > an
> > IDE interface on a CEPC system. I've included both the ATAPI, ATADISK, and
> > storage manager control panel plug-in components from platform builder
> > into
> > the OS.
> >
> > The resulting operating system does appear to load the ATAPI drivers just
> > fine as I can see the drive on the left hand side of the Storage Manager.
> > The
> > right hand side where the partition information is generally listed is
> > blank
> > however, so it appears I am having a problem with the partition driver or
> > it's settings.
> >
> > I've built this CF card using the setup disk image and I am now able to
> > boot
> > from that directly. I've tried two configurations for the partitions on
> > this
> > device:
> >
> > - A single 256 MB FAT16 partition (prefered configuration)
> > - One 32Mb FAT16 patition and a second 196Mb extended FAT 16 partition /
> > logical drive
> >
> > Both configuration give the same results as mentionned above.
> >
> > I am thinking that the ATAPI drivers are not properly linked to the
> > StorageManager profiles in my registry or my partition driver is not
> > propoerly called out, but I am unsure how to go about correcting this...
> > Do I
> > need to add a "profile" entry in the somewhere in the drivers registry
> > entries to properly link the two?
> >
> > Any input on what exactly needs to be adjusted to get this working
> > properly
> > would be greatly appreciated...
> >
> > Here are the pertinent registry details as I have them currently
> > configured:
> >
> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\ALI14531]
> > "IoLen"=hex(7):\
> > 38,00,34,00,38,00,34,00,31,30,00,00,00,00,00,00,00,00,00,00,00,00
> > "IoBase"=hex(7):\
> >
> > 31,66,30,00,33,66,34,00,31,37,30,00,33,37,34,00,61,30,30,30,00,00,00,00,00,\
> > 00,00,00,00,00,00,00
> > "FunctionNumber"=dword:00000000
> > "DeviceNumber"=dword:0000000f
> > "BusNumber"=dword:00000000
> > "InterfaceType"=dword:00000005
> > "SubSystemID"=dword:0000aa2d
> > "SubVendorID"=dword:00001019
> > "RevisionID"=dword:00000006
> > "DeviceID"=dword:00000571
> > "VendorID"=dword:00001106
> > "ProgIF"=dword:0000008a
> > "Disable48BitLBA"=dword:00000000
> > "RegisterStride"=dword:00000001
> > "StatusPollCyclePause"=dword:00000050
> > "StatusPollsPerCycle"=dword:00000020
> > "StatusPollCycles"=dword:00000500
> > "SoftResetTimeout"=dword:00000003
> > "DMAAlignment"=dword:00000004
> > "SysIntr"=dword:00000000
> > "Irq"=dword:0000000e
> > "Legacy"=dword:00000001
> > "ConfigEntry"="GenericConfig"
> > "SubClass"=dword:00000001
> > "Class"=dword:00000001
> > "Order"=dword:00000002
> > "Dll"="atapi.dll"
> > "Prefix"="IDE"
> > "IClass"=hex(7):\
> >
> > 7b,43,44,44,43,33,36,32,31,2d,33,35,31,32,2d,34,62,33,66,2d,42,42,36,46,2d,\
> > 42,34,44,44,35,45,30,36,31,37,39,35,7d,00,00,00,00
> > "SpawnFunction"="CreatePCIHD"
> > "InstanceIndex"=dword:00000001
> >
> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\ALI14531\Device0]
> > "Port"=dword:d0489f20
> > "TransferMode"=dword:000000ff
> > "DeviceId"=dword:00000000
> > "LookAhead"=dword:00000001
> > "WriteCache"=dword:00000001
> > "DrqDataBlockSize"=dword:00000000
> > "DoubleBufferSize"=dword:00010000
> > "DMA"=dword:00000002
> > "InterruptDriven"=dword:00000001
> > "Dll"="atapi.dll"
> > "Prefix"="DSK"
> > "IClass"=hex(7):\
> >
> > 7b,41,34,45,37,45,44,44,41,2d,45,35,37,35,2d,34,32,35,32,2d,39,44,36,42,2d,\
> > 34,31,39,35,44,34,38,42,42,38,36,35,7d,00,00,00,00
> >
> > [HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
> > "FriendlyName"="FAT FileSystem"
> > "Dll"="exfat.dll"
> > "DisableAutoFormat"=dword:00000001
> > "DisableAutoScan"=dword:00000001
> > "Paging"=dword:00000001
> > "EnableCache"=dword:00000001
> > "CacheSize"=dword:00000000
> > "Util"="fatutil.dll"
> > "CacheDll"="diskcache.dll"
> >
> > [HKEY_LOCAL_MACHINE\System\StorageManager\MSPART]
> > "Dll"="mspart.dll"
> >
> > [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
> > "AutoMount"=dword:00000001
> > "AutoPart"=dword:00000000
> > "AutoFormat"=dword:00000000
> > "MountFlags"=dword:00000000
> > "DefaultFileSystem"="FATFS"
> > "PartitionDriverName"="MSPART"
> > "Folder"="Mounted Volume"
> > "ActivityEvent"="PowerManager/ActivityTimer/SystemActivity"
> >
> > [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
> > "Name"="IDE Hard Disk Drive"
> > "Folder"="Hard Disk"
> >
> > [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
> > "EnableCacheWarm"=dword:00000000
> >
>
>
>

Re: Problems mounting CF partitions [SOLVED] by spyke555

spyke555
Thu Mar 27 08:00:01 PDT 2008

Well,

After doing some further reading it looks like the exFAT driver now supports
both standard and exFAT volumes, so those registry settings are fine.

As it turns out, my CF cards are not working well when DMA is enabled, and I
had to disable this in the BIOS to get the cards to be propoerly recognised.
The ATAPI driver was configured to use this also, so simply turning off DMA
support for these drives solved the issue and the cards are not mounted just
fine on start-up!

On to the next hurdle!

"spyke555" wrote:

> Thanks for the feedback Paul,
>
> I double checked and both the FAT file system and Partition Driver
> components are included as dependancies, so that's not it in my case.
>
> One thing I did notice while looking at the registry entries that I thought
> was somewhat odd are these entries:
>
> > > [HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
> > > "FriendlyName"="FAT FileSystem"
> > > "Dll"="exfat.dll"
> > > "DisableAutoFormat"=dword:00000001
> > > "DisableAutoScan"=dword:00000001
> > > "Paging"=dword:00000001
> > > "EnableCache"=dword:00000001
> > > "CacheSize"=dword:00000000
> > > "Util"="fatutil.dll"
> > > "CacheDll"="diskcache.dll"
>
> Looks like registry is currently set-up to use the exFAT File System as the
> FATFS driver... Now of course the exFAT File System Component is NOT
> currently included in my OS.
>
> I added the exFAT component and that didn't help the situation. Thinking I
> may need to override these FATFS settings with something different, but not
> sure what...
>
> "Paul G. Tobey [eM