Re: Persistent storage on WinCE 5.0



Hi Ashish,
It's also common to use the "AutoFormat" and "AutoPartition" registry keys
instead of the control panel applet. But if you leave these set to 1, I
think they will format everytime.

Best regards,
Gary

"Gary Swalling" <garret.swalling@xxxxxxxxxxxxxxxxxxx> wrote in message
news:eXf6dTRrHHA.3248@xxxxxxxxxxxxxxxxxxxxxxx
Hi Ashish,
To reserve the first 18MB, you'll have to contact the developers of the
block driver or refer to their documentation or the code itself. There is
often a registry key for doing this, but it varies from driver to driver.
You also might be able to reserve the initial area with the partition
manager, but I would consult the company that produced the block driver
for their recommendation.

For example, the FASL FMD uses the CFI to determine the size of the flash
device and assumes it has complete control, so if it is given the wrong
starting address (to reserve inital space), it will try to format past the
end of the flash device.

Your block driver has it's own flash format that it uses to keep track of
allocations on the flash media. To present a block interface (like a hard
disk), the driver has to emulate smaller blocks. Flash erases in large
blocks, but a block driver is expected to rewrite sector-size pieces. So
a block driver for flash will have it's own meta data that it maintains on
the flash media.

The FAT (or TFAT) file system has it's own meta data (FAT table and
directory entries) that it uses to keep track of user data, and thus it's
own format.

Generally speaking, the block driver cannot distinguish between file data
and FAT tables, so there is two layers of format on the same area of
flash.

To do these formats just once, I will usually include the storage manager
control panel applet in my CE image and use this to format the flash
(block driver format) and then partition with the selected file system
(file system format).

I hope this helps.

Best regards,
Gary

"Ashish" <amvyas82@xxxxxxxxx> wrote in message
news:1181611968.052510.31100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Following are the registry setting for our flash driver that we have
got from SDB vendor.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NAND]
"Prefix"="DSK"
"Dll"="nand.dll"
"Index"=dword:1
"Order"=dword:1
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Profile"="NAND"

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NAND]
"DriverPath"="Drivers\\BuiltIn\\NAND"
"LoadFlags"=dword:1
"BootPhase"=dword:1
"Order"=dword:1
"Name"="FLASH DRIVE"
"Folder"="NAND Flash"
"AutoMount"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NAND\FATFS]
"MountAsBootable"=dword:1
"MountAsRoot"=dword:1
"Flags"=dword:00000014
"FormatTFAT"=dword:1
"EnableWriteBack"=dword:1
"CheckForFormat"=dword:1

We are having a working Block driver. We are having FAT file system.
How to configure Block driver not to
use first 18MB?

Can you please explain what is diffrence between formating Flash with
block driver and then with File
system? How to format the remaining portion of Flash using filesystem?
is there any registry settings to do
this?

Thanks!
Ashish

On Jun 11, 9:51 am, "Gary Swalling"
<garret.swall...@xxxxxxxxxxxxxxxxxxx> wrote:
Hi Ashish,
The web page you mentioned says to use a file system mounted as root
directory. Which file system did you choose? This page mentions FMD.
Did
you implement a FMD and link with the FAL library to generate a block
driver? Did you configure your block driver to not use the first 18MB?
Did
you format the flash with the block driver and then with the filesystem?

Best regards,
Gary

"Ashish" <amvya...@xxxxxxxxx> wrote in message

news:1181253275.522172.321470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hi
thanks for the reply! We have Flash memory driver. And our run-time
image is present in the flash memory. But we are not able to store the
user data on flash memory and hence after every cold boot we are
loosing our data.

For example we have 256 flash memory. out of that we 18MB space is
taken over by the run-time image. So how to utilize remaining 238 MB
of flash? Do we have to mount the remaining flash as separate drive?

We also found following link from the MSDN site which says we can
implement "persistent storage" on WinCE 5.0 based device. We tried
this as well but still no luck:(

http://msdn2.microsoft.com/en-us/library/aa916028.aspx

Are we missing anything?

On Jun 6, 8:10 pm, Elias Radi <l...@xxxxxxxxxx> wrote:
Ashish,

Either write your own FlashFS driver or get a third party one.
Datalight FlashFX is an example for 3rd party.
Elias
On Jun 6, 10:36 pm, "Blake" <blake29.ch...@xxxxxxxxx> wrote:

Hi,

Storage memory in \Control Panel\System\Memory Tab is for object
store,
not
for your NAND memory.
You should implement the driver for your NAND flash memory, or
WinCE
cannot
mount your NAND flash.

--
I hope it is useful ^_^

Best Regards,

Blake Chang

"Ashish" <amvya...@xxxxxxxxx> wrote in message

news:1181183099.583504.175510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi there,

We are working on a SDB that has NAND flash memory. We have
flashed
WinCE 5.0 image on NAND memory. But on transfering some files to
the
device (either via Activesync/KITL) files are saved only on RAM
but
not on flash memory.

Also in the system memory \Control Panel\System\Memory Tab we are
able
to see "Storage memory" and "Program Memory". But both are
pointing
to
RAM memory space. No where NAND memory space is shown. (We have
256MB
of NAND flash memory available).

How to make it to store on NAND flash memory?

Thanks
Ashish- Hide quoted text -

- Show quoted text -






.



Relevant Pages

  • Re: Persistent storage on WinCE 5.0
    ... block driver or refer to their documentation or the code itself. ... the FASL FMD uses the CFI to determine the size of the flash ... starting address, it will try to format past the ... We have Flash memory driver. ...
    (microsoft.public.windowsce.embedded)
  • Re: Persistent storage on WinCE 5.0
    ... Following are the registry setting for our flash driver that we have ... We are having a working Block driver. ... We have Flash memory driver. ... WinCE 5.0 image on NAND memory. ...
    (microsoft.public.windowsce.embedded)
  • Re: Persistent storage on WinCE 5.0
    ... driver and I am able to see new "Mounted Volume" in my device. ... FMD driver formated the NK.bin in the flash. ... "Autoformat=1" doesnt format flash every time. ... block driver or refer to their documentation or the code itself. ...
    (microsoft.public.windowsce.embedded)
  • Re: Embeded Video
    ... What is the best/most accessible format to use? ... If you give only one format choice on a page, modern flash flv/swf ... video activity, pay sites, and other special purpose ones may make one ... When there are updated versions of OSs, browsers, or players, issues ...
    (alt.html)
  • Re: Old format version
    ... The people think the Constitution protects their rights; But government sees it as an obstacle to be overcome. ... |>I also use a CF card with a Lexar USB 2.0 Reader that |>supports about 10 different card types. ... |>You might look at www.lexarmedia.com and or Google for |>"compact flash software format" or other terms. ...
    (microsoft.public.windowsxp.hardware)

Loading