Re: URGENT: dont know how to add FLASHDRV.DLL.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You're not running from flash, are you? And do the addresses you 've listed
in your .reg file correspond to the addresses where your flash resides?

--
Dean Ramsier - eMVP
BSQUARE Corporation


"gd.shukla" <gdshukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D09D7BF9-E82E-4CE1-A002-EF69A4075F49@xxxxxxxxxxxxxxxx
> The registry for stratad.reg are as follows:
> [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:00000000
> ; "MemLen"=dword:00000000
> ; START AFTER of 2 MB
> "MemBase"=dword:9A900000
> ; "MemLen"=dword:00200000
> "MemLen"=dword:01000000
>
> ; Support XIP in IMGFS
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\IMGFS]
> "XIP"=dword:1
>
> ; Override names in default profile
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
> "Name"="MSFLASH for STRATAFLASH"
> "Folder"="NOR Flash"
> "DefaultFileSystem"="FATFS"
> "FileSystem"="fatfsd.dll"
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
> "DriverPath"="Drivers\\BuiltIn\\StrataFMD"
> ; LoadFlags 0x01 == load synchronously
> "LoadFlags"=dword:1
> "Order"=dword:0
> "BootPhase"=dword:0
>
> ---------------------------
> The driver is going into FMD_Init, then FMD_OEMIOControl and then
> FMD_GetInfo. When it returns from FMD_GetInfo it generates an exception in
> filesys.exe
>
> The log is given below :
> 0x83fc6000: INFO: FMD_Init: Flash Address=0x9a900000 Length=0x1000000.
> 0x83fc6000: -FMD_Init
> 0x83fc6000: +FMD_OEMIoControl, dwIoControlCode: 71f8c
> 0x83fc6000: -FMD_OEMIoControl
> 0x83fc6000: +FMD_GetInfo
> 0x83fc6000: FMD_GetInfo: flashType: 1, dwNumBlocks: 80, dwBytesPerBlock:
> 20000, dwDataBytesPerSector: 1000, wSectorsPerBlock: 1f
> 0x83fc6000: -FMD_GetInfo
> 0x83fc6000: Data Abort: Thread=83fc6000 Proc=80e866f0 'filesys.exe'
> 0x83fc6000: AKY=00000003 PC=8016fb40(NK.EXE+0x0006fb40)
> RA=8016f92c(NK.EXE+0x0006f92c) BVA=05fdb000 FSR=00000406
> 0x83fc6000: RaiseException: Thread=83fc6000 Proc=80e866f0 'filesys.exe'
> 0x83fc6000: AKY=00000003 PC=03f64768(coredll.dll+0x00034768)
> RA=80116e94(NK.EXE+0x00016e94) BVA=00000000 FSR=00000000
> 0x83fc6000: Loading partition driver mspart.dll hModule=83FA6E64
> 0x83fc6000: Driver mspart.dll loaded
> 0x83fc6000: CStore Destructor(000B09D0)
>
> after that it continues loading the rest of the drivers and the OS.
> Please suggest something.
> Thanks in advance.
> --
> GD Shukla
>
>
> "Dean Ramsier" wrote:
>
>> Post your registry settings
>>
>> --
>> Dean Ramsier - eMVP
>> BSQUARE Corporation
>>
>>
>> "gd.shukla" <gdshukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:37C5DE78-9D20-457E-A676-2A095954B5A3@xxxxxxxxxxxxxxxx
>> > Thanks for your reply.
>> > we reffered the log on web where it calls function
>> > FLASHDRV.DLL:BuildupMappingInfo() after FMD_getinfo. So we thought it
>> > might
>> > be required. According to windows ce docs, we have added fal.lib as
>> > TargetLib
>> > in sources file for stratad project. We are getting stratad.dll
>> > properly.
>> >
>> > Our problem is that while booting, windows ce calls FMD_init,
>> > FMD_getinfo
>> > and then it stops.It does not give any message. It comes out properly
>> > from
>> > FMD_getinfo. I think that hereafter it should go for formatting disk.
>> > Are
>> > we
>> > missing any dll / component / settings?
>> > --
>> > GD Shukla
>> >
>> >
>> > "Dean Ramsier" wrote:
>> >
>> >> Where is the reference to flashdrv coming from? You shouldn't need
>> >> any
>> >> such
>> >> driver, stratad should be sufficient by itself. Is it in your
>> >> registry
>> >> somewhere?
>> >>
>> >> --
>> >> Dean Ramsier - eMVP
>> >> BSQUARE Corporation
>> >>
>> >>
>> >> "gd.shukla" <gdshukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> news:BF928861-CDD7-4681-822C-828765CA7398@xxxxxxxxxxxxxxxx
>> >> > Hi
>> >> > I am working on MainstonwII BSP and we are implementing file system
>> >> > for
>> >> > Strata Flash. We have included the stratad.dll into our image and it
>> >> > is
>> >> > working but the file system filesys.exe crashes after FMD_GetInfo.
>> >> > it
>> >> > seems
>> >> > it requires FLASHDRV.DLL but we dont know how to add FLASHDRV.DLL.
>> >> > Also we have added FATFSD.DLL.
>> >> > Can anyone please suggest how to build FLASHDRV.DLL.
>> >> > Is there any other DLL required too?
>> >> > Thanks in advance.
>> >> > --
>> >> > GD Shukla
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


.