Re: How does one build an image to be stored in flash, running from ram?

From: K. S. Huang (ks_huang_at_AlphaNetworks.com_remove.this)
Date: 06/30/04


Date: Wed, 30 Jun 2004 13:45:12 +0800

you could refer the Bootloader of Lubbuck (\wince420\platform\xsc1bd\eboot)
it provides the ability to write Ram-based image into Flash

"remcow" <whybcuz@yahoo.com>
???????:8bd95f81.0406291231.53d5c18d@posting.google.com...
> Hi all
> I am trying to build an image to be stored in flash but to be running
> from ram (to get rid of the running speed hit you get by running it in
> place).
>
> I have the following configurations in my config.bib:
> NK 80080000 01F80000 RAMIMAGE
> .
> .
> ROMOFFSET=BFD0000 ; a flashed image, but running out of ram at
> 8c050000
>
> This builds an image fine.
>
> My bootloader is based on the library microsoft provides and,
> somewhere during download, calls OEMIsFlashAddr (dwImageStart)
> This decides whether to start erasing flash, etc if true.
>
> dwImageStart points to the image start in RAM so it will not flash my
> image but just load it where it would normally run out of.
>
> What do I have to do to make this image be programmed to flash? Do I
> have to modify their lib source in the common directories? Building
> stuff in these directories, I get a warning that I am doing something
> that one cannot include in a customer release -- they clearly don't
> want you to touch their stuff, unless for debug.
>
> Or do I modify my OEMIsFlashAddr to calculate what the offset is
> (based on this global ROMHDR struct) and thus signal that this image
> is supposed to go to flash? If so, how to I tell the library about
> this offset?
>
> Or do I have to not use uSoft's lib and spin my own to make this
> happen?
>
> Once this image has been flashed, my intent is to make the bootloader
> (when just booting) look at the ROMHDR in flash and where the image
> actually belongs, copy it to ram and step into it. Once I get an image
> in flash, I'll be golden because that should be easy.
>
> Appreciate any light shed on this.
> Regards,
> Remco



Relevant Pages

  • Re: How to update OS image(nk.bin) while the OS is running?
    ... flash to ram without any processing. ... For saving the image to flash, you'll need some sort of driver, yes. ... Exactly what support is needed also depends on what the bootloader ... and a new NK.bin both stored in USB disk, when the OS is running, I ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Relocate from nor to ddr CE 5.0
    ... That is the job of the bootloader; nothing special on the part of Platform ... targeted to flash, and if it is then the bootloader programs it. ... to run in RAM, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Bootloader Placement
    ... data on an MMC card to see whether an update of the flash is necessary and, ... which has the bootloader code as part of it. ... the copy from flash to RAM on startup won't know how much there is to copy. ... and force a hardware reset. ...
    (comp.arch.embedded)
  • XIP - Execute in Place (For Bootloader)
    ... I was trying to bypass Boot ROM and Branch to Bootloader's entry point ... then the bootloader will not get copied to the RAM from the Flash. ...
    (comp.arch.embedded)
  • Re: How to run from RAM???
    ... But, you were talking about running from RAM, not FLASH. ... > Does this imply that a bootloader will be required, ... >> Embedded newsgroups? ...
    (microsoft.public.windowsce.platbuilder)