RE: Dynamically partitoning flash memory from Bootloader.



Hi,

You have to do some work at the E-boot.

I could find some E-boot source somewhere in the bulverde 4.2 bsp, having
the option of,

"Program RAM Image into Flash(Enabled)".

This one actuallly donwloads the Nk.bin RAMIMAGE (Write Image to flash
disabled), in to the RAM, Creates a partition in the flash (one for storing
NK.BIN and the createas a partition with the remaining freespace for
filesystem mounting) and finally copies the entire NK.BIN from RAM to this
partition.

The next time you boot your board, the bootloader checks for valid
partition, and then copies the entire RAMIMAGE stored in flash to RAM and
jump to the image...

If you could tweak this source, you can get the size from the user and then
create the partition of that size and then proceed.

Hope this helps..
--
Ramesh.c
Innovate Sofware Solutions.
Bangalore.


"jipinjose@xxxxxxxxx" wrote:

hi ,
We are using WinCE 6.0 on PXA320 processor.I need to dynamically
resize the storage space using FMD driver based on the image size.
That is, instead of keeping the FMD size constant, it should be varied
accoring to the size of the OS image. For an example if the total
flash size 512MB and if the size of the OS image is 20MB then the rest
492MB should be utilized for storage and if I change the size of the
OS image to 30MB then the storage memory should be 482MB, so that no
flash memory is wasted. The size of the image will be given by the
user at bootloader.Can anybody help me in this and we are using a NAND
flash. Thanks in advance.

Regards
Joseph


.



Relevant Pages

  • XIP vs RAM
    ... Maybe the system can even get away with the next small size RAM ... Does anyone know if/what the premimum of the "K" Strata FLASH is? ... Also what are the steps needed to transition to a XIP OS? ... >>> My bootloader create a BINFS partition and an EXTENDED partition on ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Flash for persistent storage and hive based registry
    ... > from Flash as opposed to RAM. ... Yes, Flash is slower than RAM, no question. ... In fact, since BinFS is already running, the ... >>> My bootloader create a BINFS partition and an EXTENDED partition on ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Performance and Flash Pipelining on TI 28F12 DSPs
    ... > of "critical code" we could move to RAM. ... > from internal flash? ... Since the external RAM is as big as the internal flash, ... the timers and all other interrupts are shut off, ...
    (comp.dsp)
  • Re: Using flash disk partition
    ... The boot partition APIs are callable from the ... flash memory as a store. ... section of flash that you want to devote to filesystem? ... you want without conflicting with the code trying to execute ...
    (microsoft.public.windowsce.embedded)
  • Re: [ANNOUNCE] Ramback: faster than a speeding bullet
    ... The fact is, enterprise scale ramdisks are here now, while ... enterprise scale flash is not. ... does not approach the write performance of RAM, ... My goal is not to replace RAM with flash, but disk with flash. ...
    (Linux-Kernel)

Loading