Re: FlashROM as a disk in CE 5.0



Hi Gary,

Now i am able to loading the stratad.dll but after that i am getting some
errors related to block signature.Please see the errors and give me an idea
to resolve these errors.

0x83fc8994: >>> Loading module coredll.dll at address 0x03EF0000-0x03FF3000
(RW data at 0x01FFE000-0x01FFF7A5)
0x83fc8994: >>> Loading module filesys.exe at address 0x04010000-0x0409F000
0x83fc8994: CertMod.dll not found, using old OEM Trust Model
0x83fc8994: FileSystem Starting - starting with clean file system
0x83fc8994: FS: initializing ROM/RAM file system
0x83fc8994: SC_CreateAPIHandle: pvData == NULL
0x83fc8994: FS: Registering file system ROM, index 2, flags 0x00000031
0x83fc8994: FS: Mount complete (ROM, index 2, flags 0x00000031)
0x83fc8994: >>> Loading module eventlog.dll at address 0x02C70000-0x02C92000
(RW data at 0x01E5F000-0x01E5F8AC)
0x83fc8994: EventLog:: EventLogInit() called
0x83fc8994: OEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35
0x83fc8994: Succeeded on CheckFile
0x83fc8994: RestoreFile(0xc3fb1f3a) called fDelete = TRUE
0x83fc8994: >>> Loading module fsdmgr.dll at address 0x03BA0000-0x03BCE000
(RW data at 0x01FCA000-0x01FCA808)
0x83fc8994: FS: Registering file system StoreMgr, index 3, flags 0x00000001
0x83fc8994: >>> Loading module ceddk.dll at address 0x03AB0000-0x03AB9000
(RW data at 0x01FBA000-0x01FBA0C4)
0x83fc8994: >>> Loading module stratad.dll at address 0x01190000-0x011A6000
0x83fc8994: VerifySignatures: invalid block detected, calling FMD_EraseBlock
0x83fc8994: STRATA Error: Block 0 locked ... Lower flash.
0x83fc8994: STRATA Error: Block 0 locked ... Upper flash.
0x83fc8994: FMD_EraseBlock: Unable to whack block signature
0x83fc8994: VerifySignatures: error in FMD_EraseBlock, bailing
0x83fc8994: ERROR: FMD_Init: Error while trying to verify block signatures.
0x83fc8994: FLASHDRV.DLL:Unable to initialize FLASH Media Driver (FMD).
0x83fc8994: Invalid handle: Set=1 Method=2
0x83fc8994: FLASHDRV.DLL:CP_StopCompactor() - Unable to suspend compactor
thread!!!
0x83fc8994: FLASHDRV.DLL:CP_DeinitCompactor() - Unable to stop compactor,
CP_StopCompactor() failed
0x83fc8994: Deleting an uninitialized critical section, ignored!
0x83fc8994: Deleting an uninitialized critical section, ignored!
0x83fc8994: >>> Loading module mspart.dll at address 0x03B90000-0x03B9E000
(RW data at 0x01FC8000-0x01FC84AC)
0x83fc8994: Loading partition driver mspart.dll hModule=83FA8E9C
0x83fc8994: Driver mspart.dll loaded
0x83fc8994: CStore Destructor(000B0F80)
0x83fc8994: <<< Unloading module mspart.dll at address 0x03B90000-0x03B9E000
(RW data at 0x01FC8000-0x01FC84AC)
0x83fc8994: <<< Unloading module stratad.dll at address 0x01190000-0x011A6000
0x83fc8994: <<< Unloading module ceddk.dll at address 0x03AB0000-0x03AB9000
(RW data at 0x01FBA000-0x01FBA0C4)

Thanks,
Gouri.

"Gary Swalling" wrote:

Hi Gouri,
Are you saying that you set a breakpoint in FMD_Init and didn't hit it
because the FMD is not getting loaded?
In that case, your MemSize and MemLength aren't being looked at yet.

You mentioned that you included FAT and it looks like you selected TFAT
format. Have you included TFAT? I think that at least in CE 4.2, TFAT
required an additional dll. Maybe you could check the makeimg output for
the TFAT dll.

Also, I would check reginit.ini and ce.bib in the flatrelease directory to
make sure your reg and bib changes got included.

If all the components are included correctly, you should be able to see
FMD_Init getting called.

Regards,
Gary

"gouri" <gouri@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5D4F26C5-F93C-46ED-A72A-102EB2C79B5E@xxxxxxxxxxxxxxxx
Hi Gary Swalling,

I have build the Image in Debug mode and i have captured the Debug
messages but in driver loading list i didn't find the stratad.dll.I have
Enabled the following in the Build options.

1.Enable CE target control support (SYSGEN_SHELL=1)
2.Enable Eboot Space in memory(IMAGEBOOT=1)
3.Enable full kernal mode (IMAGENOTALLKMODE=1)
4.Enable kernal debugger (IMAGENODEBUGGER=1)
5.Runtime image can be larger than 32 MB.

and i have modified the Project.bib and project.reg as i said earlier.But
why it is not coming in the loading list i didn't get.Am i missing
anything.Please help me.

Thnaks,
Gouri.
"Gary Swalling" wrote:

Hi Gouri,
Have you tried debugging FMD_Init to see if the flash driver is being
loaded? And if so, what registry values it finds for MemBase and
MemLength?

Regards,
Gary

"Bruce Eitman [eMVP]" <beitman.nospam@xxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:uDuVgPzMHHA.3668@xxxxxxxxxxxxxxxxxxxxxxx
What about size, did you change that?

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"gouri" <gouri@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:33D85E34-9653-4766-8733-BC080ED7D8F8@xxxxxxxxxxxxxxxx
Hi bruce,

I tried this option but still there no nor flash folder.I
have
one
doubt here actually we have to use Uncached vertually address only
right.Here
BE400000 is Uncached equivalent value of cached 9E400000.

Can anybody help me please.

Thanks,
Gouri.

"Bruce Eitman [eMVP]" wrote:

Change MemBase and MemLength to match what you put in
OEMAddressTable?

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"gouri" <gouri@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0ACA7842-3E06-4EE7-81A3-6F18C2EC1ACF@xxxxxxxxxxxxxxxx
Hi experts,

Currently workin on proving FMD support for Intel Strata NOR
flash
(K3
family of 32 MB) on pxa27x
platform with WinCE 5.0 .I amfacing a strange problem , wherein
i
not
able to mount the FAT
partition. The driver i am using is the sampe FMD code given by
Microsoft for
NOR flashes( strata folder in MSFLASHFMD).I am not able mount
the
"NOR
folder" at boot time.

for this i have included the SYSGEN_MSFLASH_STRATAD=1 in the
environmental variables and
i included the stratad.dll in project.bib like

stratad.dll $(_FLATRELEASEDIR)\stratad.dll
NK
SH.

I have added the Registry settings to Project.reg file like

[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:BE400000
"MemLen"=dword: 001E0000
"Index"=dword:1
"BlockSize"=dword:20000
"WriteBufferSize"=dword:20
"SectorSize"=dword:200
"IsPairedFlash"=dword:1


; Override names in default profile
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"Name"="MSFLASH for STRATAFLASH"
"Folder"="NOR Flash"
"DefaultFileSystem"="FATFS"
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"PartitionDriver"="mspart.dll"
"BootPhase"=dword:0
"MountFlags"=dword:2


[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
"DriverPath"="Drivers\\BuiltIn\\StrataFMD"
; LoadFlags 0x01 == load synchronously
"LoadFlags"=dword:1
"Order"=dword:0
"BootPhase"=dword:0


[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="Documents and Settings\\system.hv"
"ProfileDir"="Documents and Settings"
"Flags"=dword:1


[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
"Dll"="fatfsd.dll"
"Flags"=dword:00100024
"Util"="fatutil.dll"
"Paging"=dword:1
"CacheSize"=dword:0
"FormatTfat"=dword:1

I have updated the oemaddrtab_cfg.inc to

DCD 0x9CA00000, 0x00000000, 26 ; MAINSTONEII: nCS0: Boot
Flash
(26MB).

DCD 0x9E400000, 0x01A00000, 6 ; MAINSTONEII: nCS0:
Storage (
6MB).

Now i am downloading the Image to Flash.But i didn't find any Nor
flash
folder and i didn't find the anything
in the Storage manager applet which is in Control panel.

And one more thing i have added Fat file system and Partition
driver
to my
OS.If i add the Hive registry to os
Image is not Up thats why i have removed Hive registry i didn't
find
any
Nor
flash folder and i didn't find the anything
in the Storage manager applet which is in Control panel.

Is there anything is missed.Please help me in this regard.

Thanks,

Gouri.











.



Relevant Pages

  • Re: Ho to run CF driver before reading hive-based registry
    ... BOOT SECTION": ... so I had to rewrite the driver for it. ... The problem is now the hive-based registry. ... FileSystem Starting - starting with clean file system ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Ho to run CF driver before reading hive-based registry
    ... Did you place all the registry settings related to your CF driver inside ... ; END HIVE BOOT SECTION ... The problem is now the hive-based registry. ... FileSystem Starting - starting with clean file system ...
    (microsoft.public.windowsce.platbuilder)
  • Re: FlashROM as a disk in CE 5.0
    ... Have you tried debugging FMD_Init to see if the flash driver is being ... what registry values it finds for MemBase and MemLength? ... NOR flashes(strata folder in MSFLASHFMD).I am not able mount the ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Ho to run CF driver before reading hive-based registry
    ... Did you read the documentation for hive registry? ... Are those settings included in the boot hive? ... ; MMC Storage Class Driver ... FileSystem Starting - starting with clean file system ...
    (microsoft.public.windowsce.platbuilder)
  • Re: NOR Flash Driver
    ... messages to the driver to find out what is going on. ... address and/or size that you put in the registry are wrong. ... > not see "NOR FLASH" Folder being created. ...
    (microsoft.public.windowsce.platbuilder)