Re: NO Flash - TFAT file system integration
- From: "Henrik Viklund" <henrik.viklund@xxxxxxxxx>
- Date: 10 Jul 2006 12:02:36 -0700
Geez, Alexander! That's a LOT of questions! Next time, try splitting
them up into a couple of post, and I think you'll have better luck
getting them answered. Just to answer a few of your questions:
alexquisi@xxxxxxxxxxxx wrote:
I want to use TFAT for the storage (2). To carry out this, I integrated
the FMD provided in PB at
'C:\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\BLOCK\MSFLASHFMD\FASL' in our
BSP.
Question: I followed the instructions from one of the articles written
by Steve Maillet in MSDN to create the copy in my BSP. It worked fine,
but I read that with PB 5.0 you can do now some similar using the
instructions in the help titled 'Cloning a Catalog Item'.
Never tried it. Is the second one the way to go when cloning items now?
To clone a catalog item, you obviously need a catalog item to clone,
and as far as I know FASL (aka Spansion/AMD/Fujitsu) dosn't have a
catalog item defined for it. But if it had, you oculd have done that
instead, yes.
My current registry settings are:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FASLD]
"Dll"="fasld.dll"
"Order"=dword:2
"Prefix"="DSK"
"Ioctl"=dword:4
"Profile"="MSFlash"
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"MemBase"=dword: 19400000; yes, it uses physical addresses
"MemLen"=dword: 6800000; 104 MB (2)
; Override names in default profile
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"Name"="MSFLASH for FASL FLASH"
"Folder"="NOR Flash"
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
"DriverPath"="Drivers\\BuiltIn\\FASLD"
; LoadFlags 0x01 == load synchronously
"LoadFlags"=dword:1
"Order"=dword:0
So far, it seems to be working (?). I can see the applet in the control
panel of my board. I could use the format option and finally create a
new partition.
I can see now the 'NOR Flash' folder in my system and I already stored
some files there, and after cold boot they are still there.
Question: that is my current state. Is it Ok what I did?
The only thing you might want to try is to remove the "AutoLoad"
section. "AutoLoad" entry in Storage Manager is usually only used to
load stand-alone (monolitic) drivers. Since you put the block driver
under "BuiltIn" the block driver is allready automatically loaded by
device.exe at startup. Since you have specified the block driver guid
IClass the storage manager will be notified when the driver loads and
it in turn will set up everything else that is defined by its Profile.
Q: is there a way that I can include in the storage area the upper 3 MBNo, at least not without using multiple partitions. What you can do is
(4)?
shift things around in the flash to creata a large continous flash file
system area.
Now I'm checking some registry settings that could be useful. For
example:
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"Name"="MSFLASH for FASL FLASH"
"Folder"="NOR Flash"
;Automatically Mounts each detected partition (if FSD driver is
available)
; "AutoMount"=dword:1
;Automatically partitions the store with largest creatable
partition (???)
; "AutoPart"=dword:1
;Formats the store automatically
; "AutoFormat"=dword:1
As far as I know, with them I can do the formating and/or handling of
partition (?) after (the first) booting, so I would avoid to do it
manually (as I did it above).
Q: Am I right? It would be very useful in mass production.
Yes.
For the 'HIVE BOOT SECTION' tag, I don't get the concept of using itWhen using hive based registry, you need to load it from some sort of
for "starting drivers in the first boot phase...". May anybody explain
me that, please?
persistant storage, right? Since you need information from the registry
on where to find the registry hive, what block driver and partition
driver etc. to load, you can't store that information in the hive based
part of the registry, because it has not yet been loaded. So, what the
HIVE BOOT SECTION tag denotes is that this part of the registry won't
be part of the hive, but will be present at startup, before actually
having loaded the registry hive.
Henrik Viklund
http://www.addlogic.se
.
- Follow-Ups:
- Re: NO Flash - TFAT file system integration
- From: alexquisi
- Re: NO Flash - TFAT file system integration
- References:
- NO Flash - TFAT file system integration
- From: alexquisi
- NO Flash - TFAT file system integration
- Prev by Date: Code Space Full
- Next by Date: Re: Code Space Full
- Previous by thread: NO Flash - TFAT file system integration
- Next by thread: Re: NO Flash - TFAT file system integration
- Index(es):
Relevant Pages
|