Re: SOS!!Boot Loader StartUp Function !!



baddg wrote:
I know that bootloader can be run as different stage.For instance,stage
1 to init the cpu (asm code)and stage 2 to do sth else(c code).I was
told recently that at the end of stage1 run in flash ,stage2 code was
copy to RAM and JUMP to that address .So Bootloader stage 2 can be run
in RAM.I wonder How WinCE Bootloader deal with it?
If you want to jump to RAM you had better copy the RAMIMAGE section into RAM first, it will not magically move itself out of flash.


question2:In Eboot.bib file,

; Name Start Size Type
; ------- -------- -------- ----
STACK 80000000 00010000 RESERVED
RAM 80010000 00010000 RAM
EBOOT 80020000 00040000 RAMIMAGE
RSVD 80060000 0009F000 RESERVED
ARGS 80FF0000 00001000 RESERVED
the flash starts at 0x0000,0000 and the size of it is 32M
the RAM starts at 0xA000,0000 and the size of it is 64M
In g_oalAddressTable,
DCD 0x80000000, 0xA0000000, 64 why the size of RAMIMAGE is 256K?what does this mean?
help me.

Read about it in the help files here:
Developing an Operating System > Build System > OS Design Configuration Files > Run-Time Image Configuration Files > Binary Image Builder File

Look at the MEMORY SECTION information.

256K is used as RAMIMAGE space, this is where the code and initialized static data live for your eboot image. It is 256K because eboot probably fits into 256K.

Geoff
--
.



Relevant Pages

  • Unhandled exception in romimage.exe
    ... EBOOT 80030000 00040000 RAMIMAGE ... This works OK but if I change the RAM Size to 0001E000 I get a unhandled exception in Romimage.exe and everything crashes. ... I would like to change the RAM size to 00020000 which should be legal in my book but whenever I set anything above 1E000 Romimage crashes. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: lots of easy questions about eboot/nk startup
    ... >space when copying NK in RAM or if it can be overwritten. ... not when loading from flash ... maintain eboot space ... >6/ MAybe you should maintain a download support in eboot ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Problem with loading OS
    ... IF IMGFLASH! ... USBDMA 8BE00000 00200000 RAM ... 256KB area is reserved for EBoot ... message to the serial debug port. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Minimum startup
    ... - The ARM vectors can be relocated to high memory, ... and your RAM section would start wherever physical RAM is located on ... Now, if your loader is actually going to be copied to and run from SDRAM, ... then your RAMIMAGE section should be using SDRAM physical addresses. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: X-loader vs eboot - Question
    ... If you know your board will fit eboot then yes, ... First few lines of eboot would initialize RAM, then load itself into RAM and execute from RAM, then load NK.BIN from NAND into RAM and jump to the start of NK. ... Then if you have JTAG going you already have all necessary initialization code for your board, so you can move that into eboot. ... Having the x-loader source will definitely help with setting up JTAG, but asking if somebody can send you the code sounds like a breach of license. ...
    (microsoft.public.windowsce.embedded)