Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit
Memory Mappings
Memory Mappings
The first important adaptation task revolves around the definition of memory mappings for the boot loader. The standard BSPs included in Windows Embedded CE define the memory configuration in a .bib file, located in a boot loader subdirectory, such as %_WINCEROOT%PlatformArubaboardSrcBoot loaderEbootEboot.bib. The following listing shows an example of an Eboot.bib file, which you can customize to meet your specific requirements.
MEMORY
; Name Start Size Type
; ------- -------- -------- ----
; Reserve some RAM before Eboot.
; This memory will be used later.
DRV_GLB A0008000 00001000 RESERVED ; Driver globals; 4 KB is sufficient.
EBOOT A0030000 00020000 RAMIMAGE ; Set aside 128 KB for loader; finalize later.
RAM A0050000 00010000 RAM ; Free RAM; finalize later.
CONFIG
COMPRESSION=OFF
PROFILE=OFF
KERNELFIXUPS=ON
; These configuration options cause the .nb0 file to be created.
; An .nb0 file may be directly written to flash memory and then
; booted. Because the loader is linked to execute from RAM,
; the following configuration options
; must match the RAMIMAGE section.
ROMSTART=A0030000
ROMWIDTH=32
ROMSIZE=20000
MODULES
; Name Path Memory Type
; ----------- --------------------------------------------- -----------
nk.exe $(_TARGETPLATROOT)target$(_TGTCPU)$(WINCEDEBUG)EBOOT.exe EBOOT
- Shared Interrupt Mappings
- Flash Memory Support
- Reorganize Platform Memory Mappings
- System Memory Mapping
- EVENT MEMORY SIZE
- 12.2.1 Port-Mapped vs. Memory-Mapped I
- Displaying Free and Used Memory with free
- 2.3.1. Flash Memory
- 2.3.5. Memory Space
- 2.3.7. Process Virtual Memory
- 9.3. MEMORY MANAGEMENT IN CHORUS
- 1.3.10 EEPROM Data Memory