Config.bib Checklist

The following is a complete checklist of items that must appear in Config.bib to produce a multiple XIP image:

  • Define the XIP. All XIP regions must be in the order in which they appear in Config.bib.

  • Establish the XIP chain by adding the following lines to the MEMORY section from the sample Config.bib. The reserve section for the chain file must be the first region in the image.

    #define XIPLOC_PHYSICAL A02C0000  ;  Location of the chain
    RESERVE  $(XIPLOC_PHYSICAL)   00002000   ;   CHAIN
    pdwXIPLoc 00000000 $(XIPLOC_PHYSICAL) FIXUPVAR
    
  • Set the following lines in Config.bib in the CONFIG section.

    XIPSCHAIN= $(XIPLOC_PHYSICAL)
    
  • Define the required fixup variables in the MEMORY section: pdwXIPLoc. This is defined in the sample Config.bib.

  • Reserve a region of RAM for that code and set the fixup variable to point to it if you are using a RAM region for the flash code like the sample OAL does.

    FLASHFN    8c082000  00001000  RESERVED
    dwFshFnRsvd 00000000 8c082000 FIXUPVAR
    

    Fix the dwFshFnRsvd variable so that it is up to the same address as the region reserved for the chain file. In the code, add the value of ROM_CHAIN_OFFSET to the variable in order to dereference the chain location. This should look like dwFshFnRsvd += ROM_CHAIN_OFFSET in the code.

If you begin with the sample Config.bib, most of the work is done for you.

See Also

Building an Image with Multiple XIP Regions

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.