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
- Next message: Arun: "Colour and Graphics toolbar NOT displayed Problem in WinCE .NET 4.2"
- Previous message: PrasadBM: "Re: Interfacing HCI Transport to use MS bluetooth stack."
- In reply to: remcow: "How does one build an image to be stored in flash, running from ram?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Arun: "Colour and Graphics toolbar NOT displayed Problem in WinCE .NET 4.2"
- Previous message: PrasadBM: "Re: Interfacing HCI Transport to use MS bluetooth stack."
- In reply to: remcow: "How does one build an image to be stored in flash, running from ram?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|