Re: mounting of the hive registry on sd card

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Paul,

Actually i used
[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="\\Storage Card\\system.hv"
"StartDevMgr"=dword:1
"Flags"=dword:0
"DefaultUser"="WinCE User"
"RegistryFlags"=dword:2 ; disable aggressive flushing

Even though i am unable to mounting the hive on Sd card.

Regards,
Gouri
"Paul G. Tobey [eMVP]" wrote:

How is this for SD? It looks to me like you've set up the registry to mount
the registry from some Intel PSM system. What is \PSM? Also, did you set
the boot flags to start the Device Manager and Storage Manager in the first
boot phase, before the hive gets loaded?

The actual error that you're seeing with the loading of the client driver
seems clear from the messages (although I don't have SD cards on any of my
current devices). It's trying to load the BusPrefix registry value from the
SDMemory_Class registry key and it's not there. It seems likely that this
is causing the driver to stop loading.

Paul T.

"Gouri" <Gouri@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:167A101A-E05D-4004-980C-C4F9100F9E93@xxxxxxxxxxxxxxxx
Hi All,

I was working on mounting of the hive registry on sd card from one day
still
i am not succeded. Can anybody help me. for this purpose i have changed
the
platform.reg please find the changes i did.

; HIVE BOOT SECTION
IF BSP_NOSDHCGUM !

[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="\\PSM\\system.hv"
"StartDevMgr"=dword:1
"Flags"=dword:0
"DefaultUser"="WinCE User"
"RegistryFlags"=dword:2 ; disable aggressive flushing

[HKEY_LOCAL_MACHINE\System\StorageManager]
"Flags"=dword:1000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDHC_GUM]
"Dll"="sdhc_gum.dll"
"Prefix"="SDH"
"Order"=dword:21
"DMAChannel"=dword:14 ;comment this out to disable DMA support
"DMAIsrDll"="giisr.dll"
"DMAIsrHandler"="ISRHandler"
"DMAIRQ"=dword:19
;"DMASysIntr"=dword:
"DMAISTPriority"=dword:63
"DMABufferSize"=dword:10000
"ControllerIRQ"=dword:17
"ControllerISTPriority"=dword:64
"ClockAlwaysOn"=dword:0
"ClockOnIfInterruptsEnabled"=dword:1
"MaximumClockFrequency"=dword:989680 ;1312D00
"Flags"=dword:1000 ; Added for loading in Boot phase, not twice
"BootPhase"=dword:1 ; block-driver based file system, must boot in
phase
1

[HKEY_LOCAL_MACHINE\Drivers\Builtin\SDBusDriver]
"Order"=dword:15
"Dll"="SDBus.dll"
"Prefix"="SDC"
"ThreadPriority"=dword:64 ; default thread priority for dispatch
thread
"RequestListDepth"=dword:30 ; pre-allocated requests
"Flags"=dword:1000 ; DEVFLAGS_TRUSTEDCALLERONLY

"IClass"=multi_sz:"{20FA98A8-B298-4b32-8D72-C716AEE2FA84}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"
"Flags"=dword:1000 ; Added for loading in Boot phase, not twice
"BootPhase"=dword:1 ; block-driver based file system, must boot in phase
1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory]
"Name"="SD Memory Card"
"Folder"="Storage Card"
;"PartitionDriver"="" ; removable storage cannot have
partitions
"MountAsRoot"=dword:0 ;
"MountAsBootable"=dword:1 ; bootable, may contain hive


[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MMC]
"Name"="MMC Card"
"Folder"="Storage Card"
;"PartitionDriver"="" ; removable storage cannot have
partitions

; SD Memory Storage class driver
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class]
"Dll"="SDMemory.dll"
"Prefix"="DSK"
"BlockTransferSize"=dword:40 ; send no more than 64 blocks of data per
bus transfer
"SingleBlockWrites"=dword:1 ; alternatively force the driver to use
single block access
;"IdleTimeout"=dword:7D0 ; 2000 milliseconds
;"IdlePowerState"=dword:2 ; 0 == D0, 1 == D1, etc.
;"DisablePowerManagement"="" ; if value present, then disable (remove
value to enable)

"Profile"="SDMemory"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
"{A32942B7-920C-486b-B0E6-92A702A99B35}"
"Flags"=dword:1000 ; Added for loading in Boot phase, not twice
"BootPhase"=dword:1 ; block-driver based file system, must boot in phase
1

; MMC Storage Class Driver
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\MMC_Class]
"Dll"="SDMemory.dll"
"Prefix"="DSK"
"BlockTransferSize"=dword:40 ; send no more than 64 blocks of data per
bus transfer
;"SingleBlockWrites"=dword:1 ; alternatively force the driver to use
single block access
;"IdleTimeout"=dword:7D0 ; milliseconds
;"IdlePowerState"=dword:2 ; 0 == D0, 1 == D1, etc.
;"DisablePowerManagement"="" ; if value present, then disable (remove
value to enable)

"Profile"="MMC"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
"{A32942B7-920C-486b-B0E6-92A702A99B35}"

ENDIF BSP_NOSDHCGUM !
; END HIVE BOOT SECTION

I am using GumstixIII bsp on Wince6.0. With this changes i can able to
load
sdbus.dll and host driver (sdhc_gum.dll) successfully. but while loading
the
sdmemory.dll (Client) i am getting these Debug messages.

OSAXST1: >>> Loading Module 'sdmemory.dll' (0x83EE6E04) at address
0xC0CC0000-0x
C0CD9000 in Process 'NK.EXE' (0x82016AA0)
DEVICE!RegReadActivationValues
RegQueryValueEx(\Drivers\SDCARD\ClientDrivers\Cla
ss\SDMemory_Class\BusPrefix) returned 2
DeviceFolder::LoadDevice(\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class)
las
t 9 TicksOSAXST1: <<< Unloading Module 'sdmemory.dll' (0x83EE6E04) at
address 0x
C0CC0000-0xC0CD9000 in Process 'NK.EXE' (0x82016AA0)
SDBusDriver: Failed to load driver with path:
\Drivers\SDCARD\ClientDrivers\Clas
s\SDMemory_Class



.



Relevant Pages

  • Re: How to copy Hive based registry into CF?
    ... By mistakenly that entries are came there. ... board SD/MMC card as well as Compact Flash is working well. ... hive based registry into SD/MMC or into CF card. ... ; END HIVE BOOT SECTION ...
    (microsoft.public.windowsce.platbuilder)
  • Re: 802.11 WLAN CF card support on WinCE42
    ... Here is the registry entry that I added for WiFi card: ... And the following are the messages from kernel when card inserted, ... because HW design are different from Lubbock, but driver code didn't change ... 00052AC8, MiniBlock 00048F20, rc 1 ...
    (microsoft.public.windowsce.platbuilder)
  • Re: PPC USB device will not be re-enumerated after the Power off/on cycle
    ... The card is CFU1U from Ratoc Systems. ... Could you please tell me how to set the registry to request the reset ... > Unless you write your own OHCI or UHCI driver, it can be told from the ... if I unplug and plug the USB cable for the USB ...
    (microsoft.public.windowsce.embedded)
  • Re: IDE driver program
    ... The UTL driver must be at the beginning of the registry since we ... ; END HIVE BOOT SECTION ... This registry setting controls the checkboxes dsiplayed in the Sounds CPL ... ;ENDIF ...
    (microsoft.public.windowsce.platbuilder)
  • Re: TI PC Card driver + CISCO Aironet 340/350 PCMCIA WLAN Card
    ... in the registry are correct (they don't conflict with something else in the ... system memory map or I/O map). ... I uses the TI PC Card ... >>> driver in Platform Builder for Ricoh 475II. ...
    (microsoft.public.windowsce.platbuilder)