Re: FlashROM as a disk in CE 5.0

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



I am now running the Debug image and get the following output:

4294786851 PID:a7f5e93e TID:a7f6af6a 0x87fa3a88:
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\StrataFMD\BusPrefix) returned 2

I don't know what this means? Besides that I put in a breakpoint in the
FMD_Init() in the fmd.cpp file, but it never gets there. I also listed the
loadded DLLs and did not find any stratad.dll listed, but only the
fatfsd.dll, mspart.dll and the fsdmgr.dll

Please, give me some hints about where to go from here.

"Rolf" <rk1@xxxxxxxxxxxxxx> wrote in message
news:uL8P6DkfGHA.1320@xxxxxxxxxxxxxxxxxxxxxxx
Compiling in release mode. You are right, no stratad.dll loaded. No
messages related to flash found. Added "SYSGEN_MSFLASH_STRATAD=1" to the
"WINCE500\PLATFORM\Test\Test.bat", but same behaviour.
Will try to build debug and look for messages related to flash.

Thanks,
Rolf
"Anthony Pellerin" <apellerin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:OCc5vjafGHA.4864@xxxxxxxxxxxxxxxxxxxxxxx
could you provide more info (did you compile in debug? what are the
messages related to flash? is your DLL loaded...) ?

HTH

--
--
--
----------------------------------------------------------------
Anthony Pellerin (eMVP)
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
"Rolf" <rk1@xxxxxxxxxxxxxx> a écrit dans le message de news:
%23$9Mm%23WfGHA.2188@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I wish to use the upper half of a flashROM (of 64MB) as a FAT-disk in CE
5.0. I have the following settings in Platform.reg (based on the
registry settings found in the
...\PUBLIC\COMMON\OAK\DRIVERS\BLOCK\MSFLASHFMD\STRATA\STRATAD\stratad.reg),
but after booting the new image there are no folder for the flashROM
disk. I have added the module "RAM and ROM File System" to the project
and added the settings below in the Platform.reg file. I have also
modified the Config.bib and oemaddrtab_cfg.inc. Anything else that need
to be done or that is not correct?


Thanks in advance for any help,

Rolf


; -----------------------------------------------------------------------------
; Platform.reg : Intel strata flashROM definitions for use of upper 32
MB as disk
; -----------------------------------------------------------------------------
[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}"
; The flash is 64 MB starting at 92500000,
; the upper 32 MB is used as disk, starting at 94500000
"MemBase"=dword:94500000
; Testing with only 8 MB as the size of the disk part (to be increased
to 32 MB when working)
"MemLen"=dword:800000

; 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"
"PartitionDriver"="mspart.dll"
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"MountFlags"=dword:0

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



; -----------------------------------------------------------------------------
; Config.bib : With definitions for use of upper 32 MB as flashROM disk
; -----------------------------------------------------------------------------

IF IMGFLASH !

IF SDRAM_SIZE_64_MB

#define NKRAM_SIZE 00F00000 ; 15MB SDRAM

ELSE

#define NKRAM_SIZE 04F00000 ; 79MB SDRAM

ENDIF



ELSE ;IMGFLASH

IF SDRAM_SIZE_64_MB

#define NKRAM_SIZE 03F00000 ; 63MB SDRAM

ELSE

#define NKRAM_SIZE 07F00000 ; 127MB SDRAM

ENDIF



ENDIF ;IMGFLASH



MEMORY



IF IMGFLASH!



; Name Start Size Type

; ------- -------- -------- ----

RSVD 80000000 000FF000 RESERVED

ARGS 800FF000 00001000 RESERVED

NK 80100000 03000000 RAMIMAGE

RAM 83100000 $(NKRAM_SIZE) RAM

ENDIF



IF IMGFLASH

IF BUILD_ROM_BIN

RSVD 80000000 000FF000 RESERVED

ARGS 800FF000 00001000 RESERVED

NK 92600000 01FE0000 RAMIMAGE ;Locate above EBOT
image and configuration block

RAM 80100000 $(NKRAM_SIZE) RAM

ENDIF



IF BUILD_ROM_NB0

RSVD 80000000 000FF000 RESERVED

ARGS 800FF000 00001000 RESERVED

NK 92500000 01FF0000 RAMIMAGE ;Replace EBOOT Image

RAM 80100000 $(NKRAM_SIZE) RAM

ENDIF

ENDIF



; Reserve ZBANK virtual block (No physical memory

; is required to back this virtual range).

;

ZBANK 96500000 00100000 RESERVED





CONFIG



IF IMGFLASH

ROMSTART=92500000

ROMWIDTH=32

ROMSIZE=01FF0000

ELSE

AUTOSIZE = ON

ENDIF



KERNELFIXUPS=ON



; @CESYSGEN IF !NK_NKNOCOMP

COMPRESSION=ON

; @CESYSGEN ENDIF !NK_NKNOCOMP

; @CESYSGEN IF NK_NKNOCOMP

COMPRESSION=OFF

; @CESYSGEN ENDIF NK_NKNOCOMP



IF IMGPROFILER

PROFILE=ON

ELSE

PROFILE=OFF

ENDIF



;

; ROMFLAGS is a bitmask of options for the kernel

; ROMFLAGS 0x0001 Disallow Paging

; ROMFLAGS 0x0002 Not all KMode

; ROMFLAGS 0x0010 Trust Module only

;

IF IMGTRUSTROMONLY

IF IMGNOTALLKMODE

ROMFLAGS=12

ELSE

ROMFLAGS=10

ENDIF

ELSE

IF IMGNOTALLKMODE

ROMFLAGS=02

ELSE

ROMFLAGS=00

ENDIF

ENDIF

; -----------------------------------------------------------------------------



; -----------------------------------------------------------------------------
; oemaddrtab_cfg.inc : With definitions for use of upper 32 MB as
flashROM disk
; -----------------------------------------------------------------------------

ALIGN

g_oalAddressTable



IF :DEF: SDRAM_SIZE_64_MB

DCD 0x80000000, 0xA0000000, 64 ; SANDGATEII: SDRAM
(64MB).

ELSE

DCD 0x80000000, 0xA0000000, 128 ; SANDGATEII: SDRAM
(128MB).

ENDIF

DCD 0x88000000, 0x5C000000, 1 ; BULVERDE: Internal SRAM
(64KB bank 0).

DCD 0x88100000, 0x58000000, 1 ; BULVERDE: Internal
memory PM registers.

DCD 0x88200000, 0x4C000000, 1 ; BULVERDE: USB host
controller.

DCD 0x88300000, 0x48000000, 1 ; BULVERDE: Memory
controller.

DCD 0x88400000, 0x44000000, 1 ; BULVERDE: LCD
controller.

DCD 0x88500000, 0x40000000, 32 ; BULVERDE: Memory-mapped
registers (peripherals).

; DCD 0x86500000, 0x3C000000, 64 ; BULVERDE: PCMCIA S1
common memory space.

; DCD 0x8A500000, 0x38000000, 32 ; BULVERDE: PCMCIA S1
attribute memory space.

; DCD 0x8C500000, 0x30000000, 32 ; BULVERDE: PCMCIA S1
I/O space.

DCD 0x8A500000, 0x2C000000, 64 ; BULVERDE: PCMCIA S0
common memory space.

DCD 0x8E500000, 0x28000000, 32 ; BULVERDE: PCMCIA S0
attribute memory space.

DCD 0x90500000, 0x20000000, 32 ; BULVERDE: PCMCIA S0 I/O
space.

DCD 0x96500000, 0xE0000000, 1 ; SANDGATEII: Zero-bank
(in reserved slot - no physical memory required).

DCD 0x96600000, 0x14000000, 64 ; SANDGATEII: nCS5:
eXpansion board header.

DCD 0x9A600000, 0x10000000, 1 ; SANDGATEII: nCS4:
USB2.0/IDE controller.

DCD 0x9A700000, 0x0C000000, 1 ; SANDGATEII: nCS3: SMSC
91C111 Ethernet controller.

DCD 0x9A800000, 0x0A000000, 1 ; SANDGATEII: nCS2 (upper
half): Board registers (CPLD).

DCD 0x9A900000, 0x04000000, 32 ; SANDGATEII: nCS1:
Secondary flash (32MB).

DCD 0x94500000, 0x02000000, 32 ; SANDGATEII: nCS0: Disk
Flash (32MB).

DCD 0x92500000, 0x00000000, 32 ; SANDGATEII: nCS0: Boot
Flash (32MB).

DCD 0x9F900000, 0x50000000, 1 ; BULVERDE: Camera
peripheral interface.



DCD 0x00000000, 0x00000000, 0 ; end of table

; -----------------------------------------------------------------------------










.



Relevant Pages

  • Re: FlashROM as a disk in CE 5.0
    ... RAM 83100000 $RAM ... Reserve ZBANK virtual block (No physical memory ... Memory-mapped registers. ... attribute memory space. ...
    (microsoft.public.windowsce.embedded)
  • Re: FlashROM as a disk in CE 5.0
    ... The flash is 64 MB starting at 92500000, ... RAM 83100000 $RAM ... Reserve ZBANK virtual block (No physical memory ... attribute memory space. ...
    (microsoft.public.windowsce.embedded)
  • Re: FlashROM as a disk in CE 5.0
    ... Will try to build debug and look for messages related to flash. ... RAM 83100000 $RAM ... Reserve ZBANK virtual block (No physical memory ... attribute memory space. ...
    (microsoft.public.windowsce.embedded)
  • RE: FlashROM as as a FAT-disk in CE 5.0?
    ... You need a flash media driver: ... Eboot.bib and virtual memory map and possibly ... RAM 83100000 $RAM ... Reserve ZBANK virtual block (No physical memory ...
    (microsoft.public.windowsce.platbuilder)
  • 128MB SDRAM Configuration
    ... RAM 83100000 04FFFFFF RAM ... Reserve ZBANK virtual block (No physical memory ... Memory-mapped registers. ... memory space. ...
    (microsoft.public.windowsce.platbuilder)