none
ROMSTART address RRS feed

  • Question

  • Hello,

     

    I am trying to compile a bootloader (we call it xldr) which will load eboot from sd or nand etc.

    When I use the following xldr.bib file (the ROMSTART and RAMIMAGE start address are 4K aligned) to compile the xldr, then a proper .nb0 file is generated.  By proper, I mean there is a 4K ROMHDR(?) or jump page at the beginning of the .nb0 file and the xldr works fine in this case.

     

    MEMORY

    ;   Name        Start     Size      Type

    ;   ---------------------   --------  --------  ----

        XLDR        402F1000  00014FF8  RAMIMAGE

        RAM         40306000  00004000  RAM

        STACK       4030A000  00001000  RESERVED

     

    CONFIG

        COMPRESSION=OFF

        PROFILE=OFF

        KERNELFIXUPS=ON

        ROMSTART=402F1000

        ROMWIDTH=32

        ROMSIZE=00014FF8           

     

    MODULES

    ; Name    Path                                                             Memory

    ; ------  -----------------------------------------  --------

      nk.exe    $(SG_OUTPUT_ROOT)\platform\$(_TGTPLAT)\target\$(_TGTCPU)\$(WINCEDEBUG)\xldr.exe  XLDR

    However if the ROMSTART and RAMIMAGE start address is changed to 402F0400, then the .nb0 generated will have a 7K jump page and the xldr fails to run.
    Must the ROMSTART and RAMIMAGE start address be 4K aligned in order to generate a proper .nb0 file?   Is there anyway to generate a correct .nb0 file when the ROMSTART and RAMIMAGE start address are not 4K aligned?
    Thanks in advance for any help
    GuoYunWen

    Wednesday, November 23, 2011 2:32 PM

All replies

  • Hi, See if the following thread can answer your question http://social.msdn.microsoft.com/Forums/en-US/winembplatdev/thread/45f3783e-b2bf-4a10-bd82-e7677c19d10e Regards, GSR
    Thursday, November 24, 2011 11:00 AM