The. bib file is used to guide the WinCE compilation system to generate executable binary files. The addresses used are virtual addresses.
BOOT. BIB
Let's take a look at boot. bib. Boot. bib is used to set the virtual memory allocation in the Eboot program.
; **************************************** ************************************ <Br />; TITLE: BOOT. BIB <br/>; Ethernet Boot Loader Source Module <br/>; **************************************** *********************************** </ p> <p> MEMORY <br/>; name Start Size Type <br/>; ------- -------- ---- <br/> PTS 8c000000 00020000 RESERVED <br/> DRV_GLB 8c020000 00001000 RESERVED <br/> BIN_FS 8c021000 00005000 RESERVED <br/> RAM 8c026000 00006000 RAM <br/> STACK 8c02c000 00004000 RESERVED <br/> EBOOT 8c038000 00020000 RAMIMAGE </p> <p>; 16 MB area used to cache nk. bin while programming boot media. <br/>; TBD: we may need to adjust to 01400000 (20 MB) to cache PPC 2003. <br/> FLSCACHE 8D000000 01000000 RESERVED </p> <p> CONFIG <br/> COMPRESSION = OFF <br/> PROFILE = OFF <br/> KERNELFIXUPS = ON <br/> SRE = ON <br/> ROMSTART = 8c038000 <br/> ROMWIDTH = 32
The RAM region with the starting address 0x8c038000 of EBOOT is used to store the Eboot image (that is, Nboot copies Eboot. nb0 to the RAM region with the starting address 0x8C038000). The size is kb.
The RAM region with the starting address 0x8c000000 of PTS is used to store the page table (the address translation table, including g_oalAddressTable). The size is 128KB.
CONFIG. BIB
Check config. bib again. Config. bib is used to set the virtual memory allocation of the WinCE system.
; NK name <br/> # define nkname nk </p> <p>; NK Start address <br/> # define NKSTART8C200000 <br/> # define NKLEN01D00000 </p> <p> # define RAMSTART8E000000 <br/> # define RAMLEN01F00000 </p> <p>> $ (NKNAME) $ (NKSTART) $ (NKLEN) RAMIMAGE <br/> RAM $ (RAMSTART) $ (RAMLEN) RAM </p> <p>; NK8C200000 01D00000 RAMIMAGE <br/>; RAM 8E000000 01F00000 RAM </p> <p>; common RAM areas <br/> AUD_DMA 8c002000 00002000 RESERVED <br/> DRV_GLB 8c010000 00010000 RESERVED <br/> 20178c022000 00002000 RESERVED <br/> SER_DMA 8c024000 00002000 RESERVED <br/> 8c026000 00002000 RESERVED <br/> SD_DMA 8c028000 00008000 RESERVED <br/> EDBG 8c030000 00020000 RESERVED <br/> CPXIPCHAIN 8c050000 00008000 RESERVED <br/> limit 00004000 RESERVED <br/> DISPLAY metrics 00100000 RESERVED
The RESERVE attribute indicates that the memory of the film is used by BSP, and the system does not need to care about its purpose. RAMIMAGE indicates that it is a piece of memory for storing OS images, while RAM indicates that some pieces of memory are RAM, the system can allocate space and run programs.