NOR flash
- From: "Mo" <marabo82@xxxxxxxxxxx>
- Date: 25 Jul 2005 11:53:08 -0700
Hello all,
WINCE 4.2, Debug Build, RAM based registry, NO PCMCIA/CF.
i am trying to use on-board strata flash as a NOR flash driver.
we have two banks of flash in our platform, bank1 (32MB) is used for
Eboot loader /XIP...
so its untouchable (no driver is used for it, its erased by EBOOT
loader in retail mode when OS is downloaded to it, its not erased by
Ebootloader in debug mode)
bank2 (32 MB) is not used.. we want to be able to use it to save
registry/data...
our platform is not supported by intel IPSM or datalight FlashX,
otherwise we could have just
used bank1 for Data/code execution...
i am very new to FAT/OS/Flash... so bare with me
now, i mapped bank2 to an un-used memeory area in out processor,
i see the driver being loaded, flash being formatted, mounted, then
unmounted...
the same settings will work in debug mode if i use bank1 MemBase
Address and MemLen.
but i need Bank1 for XIP... (retail build)
when i use bank2,the MSFlash partition is available in storage manager,
i can format it, but i will not be able to mount it..
storage manager however doesnt show the right parameters for it (
i see different messages when i try manually to format, then mount the
parition, but it also fails
-from the debug messages below, i c some weired messages such as
"
NumSec=-1008 BytesPerSec=512 FreeSec=-282727629
BiggestCreatable=-1525897972
4294892157 PID:adf584ce TID:2df430aa 0x8df58000: Partition PART00
NumSectors=-1010
"
Q1) why the number such as NumSec are negative? i understand its 64-bit
value, doesn negative number means error ?
Q2) when use bank1, i see the message "PD_FormatPartition - type is 4"
and it works, when ise use bank2,
i see the message " PD_FormatPartition - type is 11" , i use the same
registry settings for both
whats the difference between these two types?
please help
thanks
below are my registry settings
platform.reg
===================================================================
[HKEY_LOCAL_MACHINE\init\BootVars]
"SYSTEMHIVE"="system.hv"
"DefaultUser"="User"
;Added 07.22.2005
"Flags"=dword:1 ; (added )
"Start DevMgr"=dword:1 ; (original)
;end addition
IF STRATA_FLASH
; this section is not enclosed in "HIVE BOOT SECTION"
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\StrataFMD]
"Dll"="stratad.dll"
"Order"=dword:2
"Prefix"="DSK"
"Ioctl"=dword:4
"Profile"="MSFlash"
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"MemBase"=dword: A8000000 ;this value works for bank1
A0040000 ;A0020000;A0000000;A0009000;A0030000;A000F500;A0000000
"MemLen"=dword: 02000000 ;this value works for bank1
01FC0000 ;01FE0000;02000000;01FF7000;1FD0000;02000000;00800000;01FF0B00;02000000
;Added 07.21.2005 commented out
; Override names in default profile
;[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
; "Name"="MSFLASH for STRATAFLASH"
; "Folder"="NOR Flash"
;[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
; "DriverPath"="Drivers\\BuiltIn\\StrataFMD"
; LoadFlags 0x01 == load synchronously
; "LoadFlags"=dword:1
; "Order"=dword:0
;end addition
;;Added 07.21.2005
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"Name"="MSFLASH for STRATAFLASH"
"DefaultFileSystem"="FATFS"
"Folder"="NOR Flash"
"PartitionDriver"="mspart.dll"
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"MountFlags"=dword:2;2(original value) , i tried (11:didntwork),
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
"Dll"="fatfsd.dll"
"Flags"=dword:00100024 ;(original value)
"Util"="fatutil.dll"
"Paging"=dword:1
"CacheSize"=dword:0;(original value)
"FormatTfat"=dword:1
;Added 07.21.2005
"MountFlags"=dword:2; ;
;end addition
ENDIF STRATA_FLASH
debug output [upon startup], bank2 used
===============================================================
DEVICE!ActivateDeviceEx(Drivers\BuiltIn\StrataFMD) entered
4294773777 PID:adf39802 TID:adf5bdf6 0x8df391b4: >>> Loading module
stratad.dll at address 0x026E0000-0x026F2000 (RW data at
0x01F08000-0x01F08AF4)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\STRATAD.DLL'
4294773808 PID:adf39802 TID:adf5bdf6 0x8df391b4: FMD_Init:
READ_FROM_REGISTRY
4294773811 PID:adf39802 TID:adf5bdf6 0x8df391b4: FMD InitializeFlash
pBaseAddress=a8000000,FlashLength=2000000
4294773813 PID:adf39802 TID:adf5bdf6 0x8df391b4: FMD InitializeFlash
g_FMDInfo.BlockSize=40000
4294773819 PID:adf39802 TID:adf5bdf6 0x8df391b4: INFO: FMD_Init: Flash
Address=0xa8000000 Length=0x2000000.
4294773820 PID:adf39802 TID:adf5bdf6 0x8df391b4: FMD_GetInfo:
pFlashInfo->dwNumBlocks=80,pFlashInfo->dwBytesPerBlock=40000,pFlashInfo->wDataBytesPerSector=200,pFlashInfo->wSectorsPerBlock=1f8
4294773824 PID:adf39802 TID:adf5bdf6 0x8df391b4:
FLASHDRV.DLL:BuildupMappingInfo() - Enter.
4294773834 PID:adf39802 TID:adf5bdf6 0x8df391b4: PNP interface class
{A4E7EDDA-E575-4252-9D6B-4195D48BB865} (DSK1:) ATTACH
4294774125 PID:adf584ce TID:2df430aa 0x8df58000: >>> Loading module
mspart.dll at address 0x03D10000-0x03D1B000 (RW data at
0x01FD7000-0x01FD74A4)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\MSPART.DLL'
4294774157 PID:adf584ce TID:2df430aa 0x8df58000: Loading partition
driver mspart.dll hModule=8DE65C48
4294774159 PID:adf584ce TID:2df430aa 0x8df58000: Driver mspart.dll
loaded
4294774160 PID:adf584ce TID:2df430aa 0x8df58000: Opened the store
hStore=0008EB40
4294774161 PID:adf584ce TID:2df430aa 0x8df58000: NumSec=-1008
BytesPerSec=512 FreeSec=0 BiggestCreatable=0
4294777869 PID:de65692 TID:df397de 0x8de2b400: InitSharedHeap: 44000000
0 c
4294777869 PID:de65692 TID:df397de 0x8de2b400: InitSharedHeap: return
44000060
4294782634 PID:adf39802 TID:2df430aa 0x8df58000: FMD_EraseBlock
PD_FormatPartition - type is 11
4294892156 PID:adf584ce TID:2df430aa 0x8df58000: NumSec=-1008
BytesPerSec=512 FreeSec=-282727629 BiggestCreatable=-1525897972
4294892157 PID:adf584ce TID:2df430aa 0x8df58000: Partition PART00
NumSectors=-1010
4294892157 PID:adf584ce TID:2df430aa 0x8df58000:
MSPART!PD_OpenPartition: dwStoreId=0008EB40, PartName=PART00
4294892195 PID:adf584ce TID:2df430aa 0x8df58000: >>> Loading module
fatfsd.dll at address 0x03EE0000-0x03F04000 (RW data at
0x01FF9000-0x01FF9674)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATFSD.DLL'
4294892237 PID:adf584ce TID:2df430aa 0x8df58000: FSD_MountDisk:
mounting volumes for hDsk=0008FC30
4294892242 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
access time updates disabled
4294892242 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
event logging enabled
4294892243 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
automatic scanning disabled
4294892243 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
write verify disabled
4294892244 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
extra FAT on format disabled
4294892245 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
force write through enabled
4294892247 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
Codepage = 1
4294892249 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
Number of path cache entries = 50
4294892250 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!InitVolume:
sector 0 byte 0 suspicious (0xb)
4294892251 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!InitVolume:
invalid BPB, volume deemed invalid
4294892259 PID:adf584ce TID:2df430aa 0x8df58000: FATFS: Sec/FAT = 0!!!
4294892259 PID:adf584ce TID:2df430aa 0x8df58000: FATFS: CacheSize =
16!!!
4294892283 PID:adf584ce TID:2df430aa 0x8df58000: >>> Loading module
fatutil.dll at address 0x03EC0000-0x03ED2000 (RW data at
0x01FF6000-0x01FF70C8)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATUTIL.DLL'
4294892319 PID:adf584ce TID:2df430aa 0x8df58000:
FormatDisk!FormatVolume: New BPB successfully written
4294892322 PID:adf584ce TID:2df430aa 0x8df58000:
FormatDisk!FormatVolume: New extended boot sector successfully written
84641 PID:adf39802 TID:2df430aa 0x8df58000:
FLASHDRV.DLL:WriteToMedia() - request runs off end of media
84642 PID:adf39802 TID:2df430aa 0x8df58000:
FLASHDRV.DLL:WriteToMedia() failed.
84642 PID:adf584ce TID:2df430aa 0x8df58000: Unknown: DEBUGCHK failed
in file
c:\wince420\public\common\oak\drivers\fsd\fatutil\main\diskinterface.cpp
at line 44
Unloaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATUTIL.DLL'
84645 PID:adf584ce TID:2df430aa 0x8df58000: FormatDisk!FormatVolume:
cannot write new FAT sector 32
84648 PID:adf584ce TID:2df430aa 0x8df58000: <<< Unloading module
fatutil.dll at address 0x03EC0000-0x03ED2000 (RW data at
0x01FF6000-0x01FF70C8)
84649 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!CloseVolume:
retaining volume 0x0008fe90 (following power cycle)
84652 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume: access
time updates disabled
84653 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume: event
logging enabled
84654 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
automatic scanning disabled
84654 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume: write
verify disabled
84655 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume: extra
FAT on format disabled
84656 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume: force
write through enabled
84658 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume:
Codepage = 1
84660 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!OpenVolume: Number
of path cache entries = 50
84661 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!InitVolume: sector
0 byte 0 suspicious (0xb)
84662 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!InitVolume: invalid
BPB, volume deemed invalid
84670 PID:adf584ce TID:2df430aa 0x8df58000: FATFS: Sec/FAT = 0!!!
84670 PID:adf584ce TID:2df430aa 0x8df58000: FATFS: CacheSize = 16!!!
84676 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!UnmountDisk:
unmounting all volumes on disk 0008FC30
84678 PID:adf584ce TID:2df430aa 0x8df58000: FATFS!FATDetach complete
(0 sectors written in 0 requests)
84679 PID:adf584ce TID:2df430aa 0x8df58000: <<< Unloading module
fatfsd.dll at address 0x03EE0000-0x03F04000 (RW data at
0x01FF9000-0x01FF9674)
Unloaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATFSD.DLL'
Debug output when i try manually to format/mount after it fails in
startup (bank2)
==============================================================================
182039 PID:edc8bc4a TID:cdc8bbde 0x8dc75c1c: MSFLASH for STRATAFLASH
183026 PID:adf39802 TID:cdc8bbde 0x8dc75c1c:FMD_EraseBlock
MSPART!PD_OpenPartition: dwStoreId=0008EB40, PartName=PART00
338189 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: >>> Loading module
fatfsd.dll at address 0x03EE0000-0x03F04000 (RW data at
0x01FF9000-0x01FF9674)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATFSD.DLL'
338538 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FSD_MountDisk: mounting
volumes for hDsk=0008F7D0
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATUTIL.DLL'
338539 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!MountDisk:
BPB_HiddenSectors(1963221330) != 0
338542 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: access
time updates disabled
338542 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: event
logging enabled
338543 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume:
automatic scanning disabled
338543 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: write
verify disabled
338543 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: extra
FAT on format disabled
338543 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: force
write through enabled
338545 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume:
Codepage = 1
338565 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: Number
of path cache entries = 50
338566 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!InitVolume: sector
0 byte 0 suspicious (0xb)
338566 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!InitVolume:
invalid BPB, volume deemed invalid
338574 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS: Sec/FAT = 0!!!
338575 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS: CacheSize = 16!!!
338599 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: >>> Loading module
fatutil.dll at address 0x03EC0000-0x03ED2000 (RW data at
0x01FF6000-0x01FF70C8)
338949 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FormatDisk!FormatVolume:
New BPB successfully written
338953 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FormatDisk!FormatVolume:
New extended boot sector successfully written
500548 PID:adf39802 TID:cdc8bbde 0x8dc75c1c:
FLASHDRV.DLL:WriteToMedia() - request runs off end of media
500549 PID:adf39802 TID:cdc8bbde 0x8dc75c1c:
FLASHDRV.DLL:WriteToMedia() failed.
500549 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: Unknown: DEBUGCHK failed
in file
c:\wince420\public\common\oak\drivers\fsd\fatutil\main\diskinterface.cpp
at line 44
Unloaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATUTIL.DLL'
500552 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FormatDisk!FormatVolume:
cannot write new FAT sector 32
500556 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: <<< Unloading module
fatutil.dll at address 0x03EC0000-0x03ED2000 (RW data at
0x01FF6000-0x01FF70C8)
500556 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!CloseVolume:
retaining volume 0x0008fcc0 (following power cycle)
500559 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: access
time updates disabled
500560 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: event
logging enabled
Unloaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATFSD.DLL'
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATUTIL.DLL'
500560 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume:
automatic scanning disabled
500560 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: write
verify disabled
500560 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: extra
FAT on format disabled
500560 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: force
write through enabled
500562 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume:
Codepage = 1
500564 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: Number
of path cache entries = 50
500586 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!InitVolume: sector
0 byte 0 suspicious (0xb)
500587 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!InitVolume:
invalid BPB, volume deemed invalid
500594 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS: Sec/FAT = 0!!!
500595 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS: CacheSize = 16!!!
500600 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!UnmountDisk:
unmounting all volumes on disk 0008F7D0
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATFSD.DLL'
500601 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!FATDetach complete
(0 sectors written in 0 requests)
500603 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: <<< Unloading module
fatfsd.dll at address 0x03EE0000-0x03F04000 (RW data at
0x01FF9000-0x01FF9674)
500633 PID:de65692 TID:cdc8bbde 0x8dc75c1c: DlgMgr: FindDlgItem id 1
returning NULL.
505644 PID:de65692 TID:cdc8bbde 0x8dc75c1c: DlgMgr: FindDlgItem id 1
returning NULL.
505779 PID:de65692 TID:cdc8bbde 0x8dc75c1c: Grow Gdi handle table
from 768 to 832
505801 PID:edc8bc4a TID:cdc8bbde 0x8dc75c1c: >>> Loading module
fatutil.dll at address 0x03EC0000-0x03ED2000 (RW data at
0x01FF6000-0x01FF70C8)
507227 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: >>> Loading module
fatfsd.dll at address 0x03EE0000-0x03F04000 (RW data at
0x01FF9000-0x01FF9674)
507546 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FSD_MountDisk: mounting
volumes for hDsk=0008F7D0
507547 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!MountDisk:
BPB_HiddenSectors(-971454952) != 0
507551 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: access
time updates disabled
507552 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: event
logging enabled
507552 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume:
automatic scanning disabled
507552 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: write
verify disabled
507552 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: extra
FAT on format disabled
507553 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: force
write through enabled
507555 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume:
Codepage = 1
507556 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!OpenVolume: Number
of path cache entries = 50
507557 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!InitVolume: sector
0 byte 0 suspicious (0xb)
507576 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS!InitVolume:
invalid BPB, volume deemed invalid
507584 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS: Sec/FAT = 0!!!
507584 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FATFS: CacheSize = 16!!!
507609 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FormatDisk!FormatVolume:
New BPB successfully written
507612 PID:adf584ce TID:cdc8bbde 0x8dc75c1c: FormatDisk!FormatVolume:
New extended boot sector successfully written
507698 PID:adf39802 TID:de745d2 0x8de740a8: SM_UnmarkSectorsAsDirty:
Error, Invalid dirty sector count
507698 PID:adf39802 TID:de745d2 0x8de740a8:
FLASHDRV.DLL:CP_CompactBlock() - Unable to unmark physical sector
0x000001f8 as DIRTY
507699 PID:adf39802 TID:de745d2 0x8de740a8: SM_UnmarkSectorsAsDirty:
Error, Invalid dirty sector count
..........................
FLASHDRV.DLL:CP_CompactBlock() - Unable to map logical sector
0x74042412 to physical sector 0x0000f810
508860 PID:adf39802 TID:de745d2 0x8de740a8:
FLASHDRV.DLL:CP_GetNextCompactionBlock() Error: Cannot write to block
0!
508860 PID:adf39802 TID:de745d2 0x8de740a8: Unknown: DEBUGCHK failed
in file d:\mckendric\private\winceos\drivers\msflash\src\compactor.c at
line 818
508863 PID:adf39802 TID:de745d2 0x8de740a8:
FLASHDRV.DLL:CompactorThread() - CompactorThread(0xffffffff) failed;
unable to compact!!!
debug output when i use bank1 and everything works fine (bank1)
===================================================================
4294778981 PID:4df584ce TID:4df430aa 0x8df58000: >>> Loading module
mspart.dll at address 0x03D10000-0x03D1B000 (RW data at
0x01FD7000-0x01FD74A4)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\MSPART.DLL'
4294779030 PID:4df584ce TID:4df430aa 0x8df58000: Loading partition
driver mspart.dll hModule=8DE65C90
4294779031 PID:4df584ce TID:4df430aa 0x8df58000: Driver mspart.dll
loaded
4294779032 PID:4df584ce TID:4df430aa 0x8df58000: Opened the store
hStore=0008E990
4294779034 PID:4df584ce TID:4df430aa 0x8df58000: NumSec=47880
BytesPerSec=512 FreeSec=0 BiggestCreatable=0
4294782487 PID:8df39802 TID:4df430aa 0x8df58000: FMD_EraseBlock
ulBlockAddress=a01c0000, g_FMDInfo.BaseAddress
=a0040000,blockID=6,g_FMDInfo.BlockSize=40000
4294856839 PID:4df584ce TID:4df430aa 0x8df58000: PD_FormatPartition -
type is 4
4294856842 PID:4df584ce TID:4df430aa 0x8df58000: NumSec=47880
BytesPerSec=512 FreeSec=0 BiggestCreatable=0
4294856843 PID:4df584ce TID:4df430aa 0x8df58000: Partition PART00
NumSectors=47878
4294856844 PID:4df584ce TID:4df430aa 0x8df58000:
MSPART!PD_OpenPartition: dwStoreId=0008E990, PartName=PART00
4294856882 PID:4df584ce TID:4df430aa 0x8df58000: >>> Loading module
fatfsd.dll at address 0x03EE0000-0x03F04000 (RW data at
0x01FF9000-0x01FF9674)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATFSD.DLL'
4294856924 PID:4df584ce TID:4df430aa 0x8df58000: FSD_MountDisk:
mounting volumes for hDsk=00090050
4294856928 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
access time updates disabled
4294856929 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
event logging enabled
4294856930 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
automatic scanning disabled
4294856930 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
write verify disabled
4294856931 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
extra FAT on format disabled
4294856931 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
force write through enabled
4294856934 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
Codepage = 1
4294856936 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
Number of path cache entries = 50
4294856937 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!InitVolume:
sector 0 byte 0 suspicious (0x0)
4294856938 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!InitVolume:
invalid BPB, volume deemed invalid
4294856946 PID:4df584ce TID:4df430aa 0x8df58000: FATFS: Sec/FAT = 0!!!
4294856946 PID:4df584ce TID:4df430aa 0x8df58000: FATFS: CacheSize =
16!!!
4294856970 PID:4df584ce TID:4df430aa 0x8df58000: >>> Loading module
fatutil.dll at address 0x03EC0000-0x03ED2000 (RW data at
0x01FF6000-0x01FF70C8)
Loaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATUTIL.DLL'
4294857012 PID:4df584ce TID:4df430aa 0x8df58000:
FormatDisk!FormatVolume: New BPB successfully written
4294857083 PID:4df584ce TID:4df430aa 0x8df58000:
FormatDisk!FormatVolume: New FAT #0 successfully written
4294857153 PID:4df584ce TID:4df430aa 0x8df58000:
FormatDisk!FormatVolume: New FAT #1 successfully written
4294857202 PID:4df584ce TID:4df430aa 0x8df58000:
FormatDisk!FormatVolume: New root directory successfully written
4294857202 PID:4df584ce TID:4df430aa 0x8df58000:
FormatDisk!FormatVolume complete.
4294857206 PID:4df584ce TID:4df430aa 0x8df58000: <<< Unloading module
fatutil.dll at address 0x03EC0000-0x03ED2000 (RW data at
0x01FF6000-0x01FF70C8)
Unloaded symbols for
'C:\WINCE420\PUBLIC\CENET42_SIID\RELDIR\HITACHI_PFM-DS11_SH3DEBUG\FATUTIL.DLL'
4294857206 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!CloseVolume:
retaining volume 0x00090540 (following power cycle)
4294857210 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
access time updates disabled
4294857210 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
event logging enabled
4294857211 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
automatic scanning disabled
4294857211 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
write verify disabled
4294857212 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
extra FAT on format disabled
4294857212 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
force write through enabled
4294857215 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
Codepage = 1
4294857217 PID:4df584ce TID:4df430aa 0x8df58000: FATFS!OpenVolume:
Number of path cache entries = 50
4294857225 PID:4df584ce TID:4df430aa 0x8df58000: FATFS: Sec/FAT = 47!!!
4294857226 PID:4df584ce TID:4df430aa 0x8df58000: FATFS: CacheSize =
32!!!
4294857241 PID:8df39802 TID:6df0c56e 0x8def175c: TAPI:AddTapiDevice:
GetDeviceKeys(\NOR Flash) returned 1200
4294857245 PID:8df39802 TID:6df0c56e 0x8def175c: TAPI:OldAddTapiDevice
RegQueryValueEx(Tsp) returned 87
.
- Follow-Ups:
- Re: NOR flash
- From: Steve Maillet \(eMVP\)
- Re: NOR flash
- Prev by Date: Re: Hive based Registry System bootup hangs
- Next by Date: Re: stupid arm asm question
- Previous by thread: Re: Hive based Registry System bootup hangs
- Next by thread: Re: NOR flash
- Index(es):
Loading