Hard Disk Not Mounting

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,
I'm working on a x86 based board, intel chipset. I want to port WinCE
6.0. I've successfully ported 5.0 to that board. I've migrated that BSP to
6.0, and it is booting well. I'm booting from the Compact Flash.

USB drive is mounting well, but the CF not mounting. I've done some
changes in the registry entry, but it hadnt solved the problem. I've tried
with ICHx driver also, it also not mounting. I also tried with Hive registry,
but it gives "Waiting for Boot File System" error. I've put that registry
entry in the Hive Boot Section only.
Both the drivers recognized CF and the driver has been loaded. Here
are the part of debug messages...

Booting Windows CE version 6.00 for (x86)
&pTOC = 82431f10, pTOC = 82423a98, pTOC->ulRamFree = 8243a000, MemForPT =
00003000

Old or invalid version stamp in kernel structures - starting clean!
Configuring: Primary pages: 7098, Secondary pages: 0, Filesystem pages = 3549

Booting kernel with clean memory configuration:
Memory Sections:
[0] : start: 8243e000, extension: 00004000, length: 01bba000
X86Init done, OEMAddressTable = 80226d30, RAM mapped = 04000000.
Windows CE KernelInit
Reserve VM for kernel XIP DLls, first = c0010000, last = c0d90000
g_pprcNK == 0x8242fc80
Updated eptr->e32_vsize to = 00013000
Initializing Memory Mapped File Support
Scheduling the first thread.
LoaderInit: Initialing loader
Updated eptr->e32_vsize to = 00013000
Updated eptr->e32_vsize to = 00074000
Heap Statistics at 0xC00D37C0
Did not find emulation code for x86... using floating point hardware.
PGPOOL: Reserved 768 pages for Loader pool
PGPOOL: Reserved 256 pages for File pool
Message Queue support initialized, g_hMsgQHeap = d0040750
FSDMGR!DllMain: DLL_PROCESS_ATTACH
CertMod.dll not found, using old OEM Trust Model
FileSystem Starting - starting with clean file system
FSDMGR!STOREMGR_Initialize
FSDMGR!InitializeStoreAPI
FSDMGR!MountTable_t::RegisterVolumeName: Registered "StoreMgr" at index
2FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 2
(Name="StoreMgr", MountFlags=0x1)FSDMGR!InitializeROMFileSystem: File
System=ROM
FSDMGR!MountTable_t::RegisterVolumeName: Registered "ROM" at index
3FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 3
(Name="ROM", MountFlags=0x71)Succeeded on CheckFile
RestoreFile(0x00830003) called fDelete = TRUE
FSDMGR!STOREMGR_StartBootPhase BootPhase=0 (PrevBootPhase=-1)
FSDMGR: File security disabled.
FSDMGR!AutoLoadFileSystems: CurrentBootPhase=0, LoadFlags=1
FSDMGR!AutoLoadFileSystem: CurrentBootPhase=0,
RootKey=System\StorageManager\AutoLoad, FileSystem_t=ObjectStore
FILESYS: RAM File System FSD_MountDisk registering folder "Object Store"
FSDMGR!MountTable_t::RegisterVolumeName: Registered "Object Store" at index
4FSDMGR!MountTabFSDMGR!PNPThread: Using PNPUnloadDelay of 4096
FSDMGR!PNPThread: PNPThread starting!
le_t::RegisterVolume: Registered volume at index 4 (Name="",
MountFlags=0x46)Override Serial Driver: No COM port selected for serial KITL
transport, no override necessary.
FSDMGR!STOREMGR_StartBootPhase BootPhase=1 (PrevBootPhase=0)
FSDMGR!AutoLoadFileSystems: CurrentBootPhase=1, LoadFlags=1
FSVOL: Using system database volume "\Documents and Settings\default.vol"
BuildPath: Documents and Settings
FSVOL: Creating new volume (size=28672 bytes)
FSVOL: Initializing volume heap
FSREG: Unable to read value "RequireCertMod" under
HKEY_LOCAL_MACHINE\init\BootVars
FSREG: Unable to read value "NoDefaultUser" under
HKEY_LOCAL_MACHINE\init\BootVars
FSREG: Logging in default user.
FSREG: Unable to read value "DefaultUser" under
HKEY_LOCAL_MACHINE\init\BootVars
SetCurrentUser: Logging out (nobody), logging in default
FS: Using default path "\profiles\"
BuildPath: profiles
BuildPath: profiles\default
SetCurrentUser: User hives not supported -- using same registry for all users
FS: Using default path "Windows\"
FS: Using default path "Windows\"
FSDMGR!STOREMGR_StartBootPhase BootPhase=2 (PrevBootPhase=1)
FSDMGR!AutoLoadFileSystems: CurrentBootPhase=2, LoadFlags=1
..
..
..
..
DeviceFolder::LoadDevice(Drivers\BuiltIn\PCI\Instance\UHCI1) last 378
TicksDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\PCI\Instance\ALI14531\BusPrefix) returned 2
DEVICE!RegReadActivat[NOTIFY] HandleSystemEvent 7 /ADD HCD2:
ionValues RegQueryValueEx(Drivers\BuiltIn\PCI\ICHub(Root tier
0)::HubStatusChangeThread - port 2, change = 0x0001, status = 0x0301
nstance\ALI14531\Device0\BusPrefix) returned 2
CHub(Root tier 0)::HubStatusChangeThread - device attached on port 2
+CHub(Root tier 0)::AttachDevice - port = 2, fIsLowSpeed = 1
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_OPENING_ENDPOINT0_PIPE, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_USING_ADDRESS0, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_DEVICE_DESCRIPTOR_TEST, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_SET_ADDRESS, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_LEAVE_ADDRESS0, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_INITIAL_DEVICE_DESCRIPTOR, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_DEVICE_DESCRIPTOR, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SETUP_CONFIGURATION_DESCRIPTOR_ARRAY, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_INITIAL_CONFIG_DESCRIPTOR, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_CONFIG_DESCRIPTOR, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_DETERMINE_CONFIG_TO_CHOOSE, failures = 0
CHub(Root tier 0)::AttachDevice - Select Configuration 0 on
DEVICE_CONFIG_STATUS_DETERMINE_CONFIG_TO_CHOOSE step
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_SET_CONFIG, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_CREATE_NEW_FUNCTION, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_INSERT_NEW_DEVICE_INTO_UPSTREAM_HUB_PORT_ARRAY, failures
= 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SIGNAL_NEW_DEVICE_ENTER_OPERATIONAL_STATE, failures = 0
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\USB\ClientDrivers\Hid\Instance\Prefix) returned 2
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\USB\ClientDrivers\Hid\Instance\BusPrefix) returned 2
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\USB\ClientDrivers\Hid\Hid_Class\BusPrefix) returned 2
+USBD:OpenPipe, EP: 0x81, MaxPkt: 4, Type: Interrupt
CInterruptPipe::OpenPipe - setting the poll interval to 8 ms instead of 10 ms
-USBD:OpenPipe success, hPipe = D039E210
[NOTIFY] HandleSystemEvent 7 /ADD HID1:
HidParse: 'Preparing to Allocate memory
HidParse: 'Top Level Collection 1 found
HidParse: 'Enter Link Collection
HidParse: 'Exit Link Collection
HidParse: 'Collection 1 exit
HidParse: 'Starting Parsing Pass
HidParse: 'Parse Collection 1
HidParse: 'Main Offset:8
HidParse: 'Main Offset:b
HidParse: 'Main Offset:10
HidParse: 'X Parse Collection 1
-CHub(Root tier 0)::AttachDevice - port = 2, fIsLowSpeed = 1, address = 1
DEVICE!LaunchDevice: Init() failed for device 0xd039d3f0
DEVICE!I_ActivateDeviceEx: couldn't activate: prefix DSK, index 1, dll
atapi.dll, context 0xd02acf20
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\PCI\Instance\ALI14531\Device1\BusPrefix)
returned 2
DEVICE!LaunchDevice: Init() failed for device 0xd039d470
DEVICE!I_ActivateDeviceEx: couldn't activate: prefix DSK, index 1, dll
atapi.dll, context 0xd02acf20
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\PCI\Instance\ALI14531\Device2\BusPrefix)
returned 2
DEVICE!LaunchDevice: Init() failed for device 0xd039d670
DEVICE!I_ActivateDeviceEx: couldn't activate: prefix DSK, index 1, dll
atapi.dll, context 0xd02acf20
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\PCI\Instance\ALI14531\Device3\BusPrefix)
returned 2
DEVICE!LaunchDevice: Init() failed for device 0xd039d870
DEVICE!I_ActivateDeviceEx: couldn't activate: prefix DSK, index 1, dll
atapi.dll, context 0xd02acf20
DeviceFolder::LoadDevice(Drivers\BuiltIn\PCI\Instance\ALI14531) last 6367
TicksDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\PCI\Instance\ehci1\BusPrefix) returned 2
HCD driver DLL attach
EHCD!HCD_Init
EHCD: ioPhysicalBase 0xFF9FFC00, IoSpace 0x0
EHCD: ioPortBase 0xD05C0C00, portBase 0xFF9FFC00
EHCD: Ins[NOTIFY] HandleSystemEvent 7 /ADD IDE1:
talled ISR handler, Dll = 'giisr.dll', Handler = 'ISRHandler', Irq = 5
EHCD: Read config from registry: Base Address: 0xD0600C00, Length: 0x400,
I/O Port: NO, SysIntr: 0x18, Interface Type: 5, Bus Number: 0
DMA buffer passed in from PDD
CPhysMem Total Alloc Region PhysACHub(Root tier 0)::HubStatusChangeThread
- port 1, change = 0x0001, status = 0x0101
ddr = 0x03267000, VirtAddr = 0xD0610000, size = 131072
CPhysMem Special Alloc Region PhysAddr = 0x03267000, VirtAddr = 0xD0610000,
size = 4096
CPhysMem HighPri Alloc Region PhysAddr = 0x03268000, VirtAddr = 0xD0611000,
size = 32768
CPhysMem Normal Alloc Region PhysAddr = 0x03270000, VirtAddr = 0xD0619000,
size = 94208
+CHW::CHW base=0xd05c0c00, intr=0x18
+CEhcd::Initialize.CHub(Root tier 0)::HubStatusChangeThread - device
attached on port 1
+CHub(Root tier 0)::AttachDevice - port = 1, fIsLowSpeed = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_OPENING_ENDPOINT0_PIPE, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_USING_ADDRESS0, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT, failures = 0
Entry
+CDeviceGlobal::Initialize
+USBD:HcdAttach, hcd: 0xD039E330
-CDevice::Initialize, success!
+CHW::Initialize
CHub(Root tier 0)::AttachDevice - status =
DEVICQueuedPipe(Interrupt)::CheckForDoneTransfers - failure on TD 0xd05858a0,
address = 1, endpoint = 1, errorCounter = 0, status field = 0x22
CE_CONFIG_STATUS_SCHEDULING_GET_DEVICE_DESCRIPTOR_TEST, failures = 0
+USBD:RCQueuedPipe(Interrupt)::CheckForDoneTransfers - failure on TD
0xd05858e0, address = 1, endpoint = 1, errorCounter = 0, status field = 0x22
CQueuedPipe(Control)::CheckForDoneTransfers - failure on TD 0xd0585940,
address = 0, endpoint = 0, errorCounter = 0, status field = 0x22
CHub(Root tier 0)::AttachDevice - failure on
DEVICE_CONFIG_STATUS_SCHEDULING_GET_DEVICE_DESCRIPTOR_TEST step
esetPipe
-CHW::InitialCQueuedPipe(Control)::CheckForDoneTransfers - failure on TD
0xd05858c0, address = 1, endpoint = 0, errorCounter = 0, status field = 0x22
CFunction::SetOrClearFeature - recipient = 2, wIndex = 129, set/clear = 0x1,
feature = 0x0, FAILED
ize, success!
CQueuedPipe(Control)::CheckForDoneTransfers - failure on TD 0xd05858c0,
address = 1, endpoint = 0, errorCounter = 0, status field = 0x22
+CHW::EnterOperationalState
-CHW::EnterOperationalState
-CEhcd::Initialize. Success!!
DeviceFolder::LoadDevCQueuedPipe(Control)::CheckForDoneTransfers - failure
on TD 0xd0585940, address = 1, endpoint = 0, errorCounter = 0, status field =
0x22
CQueuedPipe(Interrupt)::CheckForDoneTransfers - failure on TD 0xd05858a0,
address = 1, endpoint = 1, errorCounter = 0, status field = 0x22
CHub(Root tier 0)::HubStatusChangeThread - port 1, change = 0x0001, status =
0x0501
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT, failures = 1
CHub(Root tier 0)::AttachDevice - failure on
DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT step, unable to reset/enable port
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT, failures = 2
CHub(Root tier 0)::AttachDevice - failure on
DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT step, unable to reset/enable port
CHub(Root tier 0)::AttachDevice - status = DEVICE_CONFIG_STATUS_FAILED,
failures = 3
ice(Dri-CHub(Root tier 0)::AttachDevice - port = 1, fIsLowSpeed = 0, address
= 2
CHub(Root tier 0)::HubStatusChangeThread - port 1, change = 0x0003, status =
0x0100
+USBD:ResetPipe
vers\BuiltIn\PCQueuedPipe(Control)::CheckForDoneTransfers - failure on TD
0xd0585900, address = 1, endpoint = 0, errorCounter = 0, status field = 0x22
CQueuedPipe(Interrupt)::CheckForDoneTransfers - failure on TD 0xd05858a0,
address = 1, endpoint = 1, errorCounter = 0, status field = 0x22
CFunction::SetOrClearFeature - recipient = 2, wIndex = 129, set/clear = 0x1,
featCHub(Root tier 0)::HubStatusChangeThread - port 2, change = 0x0003,
status = 0x0100
CHub(Root tier 0)::HubStatusChangeThread - device attached on port 1
+CHub(Root tier 0)::AttachDevice - port = 1, fIsLowSpeed = 0, fIsHighSpeed =1
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_OPENING_ENDPOINT0_PIPE, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_USING_ADDRESS0, failures = 0
CHub(Root tier 0)::AttachDevice - statusure = 0x0, FAILED
= DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT, failures = 0
CHub(Root tier 0)::HubStatusChangeThread - device detached on port 2
+CHub(Root tier 0)::DetachDevice - port = 2
CHub(Root tier 0)::DetachDevice - created worker thread to handle device
detach
+CHub::DetachDownstreamDeviceThread
+CFunction(tier 1)::HandleDetach
CI\Instance\eh+USBD:ClosePipe, hPipe: 0xD03987B0
-USBD:ClosePipe
+USBD:ClosePipe, hPipe: 0xD039E210
-USBD:ClosePipe
StartInterruptTransfer: IssueInterruptTrCHub(Root tier 0)::AttachDevice -
status = DEVICE_CONFIG_STATUS_SCHEDULING_GET_DEVICE_DESCRIPTOR_TEST, failures
= 0
ansCHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_SET_ADDRESS, failures = 0
ferCHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_LEAVE_ADDRESS0, failures = 0
failed
-CFunction(tier 1)::HandleDetach
-CHub::DetachDownstreamDeviceThread
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_INITIAL_DEVICE_DESCRIPTOR, failures = 0
-CHub(Root tier 0)::DetachDevice - port = 2
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_DEVICE_DESCRIPTOR, failures = 0
ci1CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SETUP_CONFIGURATION_DESCRIPTOR_ARRAY, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_INITIAL_CONFIG_DESCRIPTOR, failures = 0
) laCHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_GET_CONFIG_DESCRIPTOR, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_DETERMINE_CONFIG_TO_CHOOSE, failures = 0
CHub(Root tier 0)::AttachDevice - Select Configuration 0 on
DEVICE_CONFIG_STATUS_DETERMINE_CONFIG_TO_CHOOSE step
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SCHEDULING_SET_CONFIG, failures = 0
sCHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_CREATE_NEW_FUNCTION, failures = 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_INSERT_NEW_DEVICE_INTO_UPSTREAM_HUB_PORT_ARRAY, failures
= 0
CHub(Root tier 0)::AttachDevice - status =
DEVICE_CONFIG_STATUS_SIGNAL_NEW_DEVICE_ENTER_OPERATIONAL_STATE, failures = 0
+USBD:OpenPipe, EP: 0x81, Max!!!Warning!!! Setting resume/suspend/reset bits
of USBCMD
Pkt: 512, Type: Bulk
-USBD:OpenPipe success, hPipe = D039E050
+USBD:OpenPipe, EP: 0x2, MaxPkt: 512, Type: Bulk
-USBD:OpenPipe success, hPipe = D039EA50
+USBD:OpenPipe, EP: 0x83, MaxPkt: 2, Type: Interrupt
-USBD:OpenPipe success, hPipe = D039EB30
tDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\USB\ClientDrivers\Mass_Storage_Class\6\BusPrefix)
returned 2
741 TicksDeviceFolder::LoadDevice!Enumerate Found deprecated load
instructions at (Drivers\BuiltIn\PCI\Instance\E1000CE1). Driver cannot be
unloaded.
Kernel DLL 'e1000ce4.dll' needs thread creation/deletion notification
[NOTIFY] HandleSystemEvent 7 /ADD HCD3:
[NOTIFY] HandleSystemEvent 7 /REMOVE HID1:
[NOTIFY] HandleSystemEvent 7 /ADD DSK1:
FSDMGR!MountStore: Attaching new storage device
"DSK1:"FSDMGR!StoreDisk_t::OpenDisk(0xD05D6490) DeviceInfo Class(0x00000001)
Flags(0x00000009) Type(0xC0000400) Profile(USBHDProfile)
FSDMGR!DumpRegKey: Dumping registry for key System\StorageManager\Profiles
AutoMount = 00000001
AutoPart = 00000000
AutoFormat = 00000000
MountFlags = 00000000
DefaultFileSystem =
P
==>NdisInitializeWrapper
<==NdisInitializeWrapper
==>NdisMRegisterMiniport: NdisWrapperHandle D039D190
==>ndisRegisterMiniportDriver: NdisWrapperHandle D039D190
<==ndisRegisterMiniportDriver: MiniBlock D05D6ED0
NdisMRegisterMiniport: MiniBlock D05D6ED0
<==NdisMRegisterMiniport: MiniBlock D05D6ED0, Status 0

------------------------------------------------------

Why that Launch Device init() failed i dont know.

Could u people help me in rectifying this...

Thanks in advance,
Regards,
Mekas :)


.



Relevant Pages