Hi, All
My system configuration EP9315(ARM9)+WINCE50 with 32MB Norflash, part of it
is used to store nk.bin, and the remaind is used as flash disk with HIVE
saved in it. The related registry are following
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NORFlash]
"Dll"="ep93xxnorflash.dll"
"Order"=dword:2
"Prefix"="DSK"
"Ioctl"=dword:4
"Profile"="MSFlash"
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
; Override names in default profile
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"Name"="EM9000 NOR Flash"
"Folder"="NOR Flash"
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"MountAsBootable"=dword:1
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
"FriendlyName"="TFAT FileSystem"
"Dll"="fatfsd.dll"
;Flags registry subkey
;
; FATFS_TFAT_ALWAYS | FATFS_TFAT_NONATOMIC_SECTOR | FATFS_WFWS_NOWRITETHRU |
; FATFS_ENABLE_BACKUP_FAT | FATFS_DISABLE_AUTOSCAN
;
"Flags"=dword:00290014
"Paging"=dword:1
"EnableCache"=dword:1 ;improving performance for registry hive file on
TFAT volume
"EnableWriteBack"=dword:1 ;improving performance for registry hive file
on TFAT volume
"EnableFatCacheWarm"=dword:1 ;improving performance for registry hive file
on TFAT volume
"FatCacheSize"=dword:0 ;improving performance for registry hive file on
TFAT volume
"EnableDataCacheWarm"=dword:1 ;improving performance for registry hive
file on TFAT volume
"DataCacheSize"=dword:0 ;improving performance for registry hive file on
TFAT volume
"FormatTfat"=dword:1 ;format the volume as TFAT on auto-format
;not use any more for CE5.0
; "CacheSize"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
"DriverPath"="Drivers\\BuiltIn\\NORFlash"
"LoadFlags"=dword:1
"Order"=dword:0
[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="HiveRegistry\\system.hv"
"ProfileDir"="HiveRegistry"
"Flags"=dword:1
"RegistryFlags"=dword:1
; END HIVE BOOT SECTION
The problem is that the flash disk size may miss 252KB if the power is off
during file copy opration. And with many 252KB-missed events, the norflash
disk is corrupted. It's appreciated for any advises. Thanks!
Cheng Shi
Emtronix
5# Gaopeng Dadao, Chengdu
China 610041
86-28-86180660
www.emtronix.com