Книга: 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

Оглавление книги


Генерация: 0.062. Запросов К БД/Cache: 0 / 0
поделиться
Вверх Вниз