This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: R: Define Flash partition for WinCE storage


On 03/16/2010 07:08 AM, Stefano Mora wrote:


On 03/16/2010 05:55 AM, Stefano Mora wrote:
Hi all,
I have a board with RedBoot + WinCE.

What kind of a board is this?

It is a SODIMM board based on iMX25 and 2GB of Flash memory



I defined a Flash partition for wince and a 64MB partition
for storage.
WinCE mounts correctly the 64MB storage partition.

RedBoot>   fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0x00000000  0x00000000  0x00040000  0x00000000
wince             0x00040000  0x80100000  0x01F00000  0xFFFFFFFF
storage           0x01F40000  0x82000000  0x04000000  0xFFFFFFFF
FIS directory     0x07F60000  0x07F60000  0x0001F000  0x00000000
RedBoot config    0x07F7F000  0x07F7F000  0x00001000  0x00000000
RedBoot>

How can i define a 1GB Storage size?

You'd have to have a 1GB device on your hardware platform - do you?

Yes, of course :-)

Not according to RedBoot - it thinks that your FLASH is only 128MB. What sort of FLASH chip(s) do you have that make up 1GB?



Do I need to define a RAM (Mem addr) size with the same
size of the storage area?? I have not so much RAM !?!?!

No these are not related.  The 'Mem addr' is simply the RAM
address that RedBoot will load an image into by default (when
the -b option is not used with 'fis load')

So instead of:


RedBoot> fis create -b 0x82000000 -r 0x82000000 -l 0x04000000 -s 0 -f 0x01f40000 storage

i need to type:

RedBoot> fis create -b 0x82000000 -r 0x82000000 -l 0x40000000 -s 0 -f 0x01f40000 storage

I guess i should have problems with the locations of the RedBoot config&  FIS directory partitions ...
Maybe I could choose a different range of Flash addresses:

RedBoot> fis create -b 0x82000000 -r 0x82000000 -l 0x04000000 -s 0 -f 0x10000000 storage

First of all, it's poor form to mess with the actual FLASH addresses - RedBoot will handle that just fine for you, allocating the image you want (based on size, etc) automatically from the free/available space.

Get the basic FLASH layout working first - you'll have to
rebuild RedBoot to fix this.  Once that's going, the rest
will fall into place.

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]