Re: Using flash disk partition
- From: kris <kris@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 9 Jan 2009 06:31:01 -0800
Thanks, but in order to create a partition, I have to be able to 'see' my
flash memory as a store (I think). Scanning my system, using
FindFirstStore(), FindNextStore(), etc... doesn't report my flash memory...
--
kris @ signum
"Dean Ramsier" wrote:
Try this - don't use "Uboot" APIs to make the partitions - the CE OS isn't.
likely to understand those partition types. Instead, use the CE boot
partition APIs to create the partitions. That, in combination with the
flash driver that you'll have to provide in CE, will give you what you need
for the OS to see the partition, format the filesystem on top of it, and use
it.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"kris" <kris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0BC1D0CD-E7B7-4BAC-B4D5-B7919D11B7E4@xxxxxxxxxxxxxxxx
On th falsh device I have created following partitions using UBoot:
Nr | Name | Start | Size | Type | FS | Flags
--------------------------------------------------------------------------
0 | U-Boot | 0 | 768 KiB | U-Boot | | fixed
1 | NVRAM | 768 KiB | 512 KiB | NVRAM | | fixed
2 | EBoot | 1280 KiB | 1 MiB | WinCE-EBoot | |
3 | Registry | 2304 KiB | 1 MiB | WinCE-Registry | |
4 | Kernel | 3328 KiB | 20 MiB | WinCE-Kernel | |
5 | lclDisk1 | 23808 KiB | 32 MiB | Filesystem | Unknown |
The device boots correctly using this partition table. Except partition 5,
intended as flash disk is nowhere to be found in the system after booting.
I
know the device isn't correctly formatted, but before I get there I must
be
able to 'see' the device first
regards,
Kris
--
kris @ signum
"Paul G. Tobey [eMVP]" wrote:
You need to back up and tell us what you've done. What partition?
You've
already built a flash driver for your OS and configured it to handle the
section of flash that you want to devote to filesystem? If that's the
case,
reviewing the serial debug messages from a DEBUG build of the OS should
tell
you whether your driver is being loaded and, if so, what its problem is.
Paul T.
"kris" <kris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:72BD7234-C485-48D7-96ED-4E80BB98773C@xxxxxxxxxxxxxxxx
This is just my point. I don't need to see the partition at boot ime. I
just
can't seem to find the partition from within the OS and consequently
can't
format it.
--
kris @ signum
"Chris Tacke, eMVP" wrote:
Why does you bootoader eed to see partitions? Typically it just finds
the
CE image, moves it to RAM and then launches Use the OS to find and
format
any partitions - after it, it's an OS.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"kris" <kris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5CFB5B32-E4EF-4F94-B9B8-1E6EC3010F37@xxxxxxxxxxxxxxxx
Thanks for your help.
I see that my version of UBoot does not support a FAT-like
filesystem.
This
is probably the reason why the flash disk isn't mounted in the first
place.
Is this assertion correct?.
Secondly, I'll have to look for a way to exclude simultaneous access
to
the
different flash devices.
regards,
Kris
--
kris @ signum
"Paul G. Tobey [eMVP]" wrote:
You need to be aware that a single flash part can't be
simultaneously
used
to execute code in-place (the instructions being executed are in
flash),
and
to read/write to the part as filesystem. Various companies have
come
up
with solutions to this problem. Intel's Persistent Storage Manager
was
available for a long time. It arranged things so that, when the
filesystem
needed to be accessed, it was the only code running and so that it
was
running from RAM, not directly from flash, at that moment.
Datalight
has
a
flash filesystem driver that does something similar, I think. If
you
have
64MB organized as two separate flash chips, you can use one as
in-place
execution linear flash (where the contents of the nk.bin file go),
and
the
other as filesystem. Microsoft's flash driver, documented in the
PB
help,
should work for that. Alternatively, you could arrange things so
that
you
are *NOT* executing the OS code from flash at all. If your
bootloader
copied the contents of some section of flash to RAM on startup and
executed
the OS from there (RAM), then you could use the remaining flash for
anything
you want without conflicting with the code trying to execute there,
too
(and
then use the MS flash driver).
Paul T.
"kris" <kris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EA010342-10E6-4E03-BECA-DDDC7FFB877D@xxxxxxxxxxxxxxxx
Hello everybody,
I 'm using an ARM based board running WinCE6.0 and 64MB of flash.
Since
the
enire system uses less than 32MB of the boards Flash, I wonder if
I
can
use a
partition on the same flash device as flash disk for storing
non-volatile
data. Using Uboot, I created this partition as file system
(however
Uboot
supports only following filesystem formats: JFFS2, CRAMFS,
INITRD,
FlashFX,
YAFFS, Unknown) in the free area. First of all I'm not sure wich
of
these
to
use (and I don't seem to find any documentation on the different
filesystems). Second, if the partition is created, how can I
instruct
WinCE
to 'mount' the partition as drive? What are the required settings
in
Platformbuilder to access the drive?
Regards,
Kris Demets
--
kris @ signum
- Follow-Ups:
- Re: Using flash disk partition
- From: Dean Ramsier
- Re: Using flash disk partition
- References:
- Using flash disk partition
- From: kris
- Re: Using flash disk partition
- From: Paul G. Tobey [eMVP]
- Re: Using flash disk partition
- From: kris
- Re: Using flash disk partition
- From: Chris Tacke, eMVP
- Re: Using flash disk partition
- From: kris
- Re: Using flash disk partition
- From: Paul G. Tobey [eMVP]
- Re: Using flash disk partition
- From: kris
- Re: Using flash disk partition
- From: Dean Ramsier
- Using flash disk partition
- Prev by Date: Re: Programatically WPA2-PSK with AES not configuring.
- Next by Date: Re: VS2005 CF3.5
- Previous by thread: Re: Using flash disk partition
- Next by thread: Re: Using flash disk partition
- Index(es):
Relevant Pages
|