config.bib如下
- Assembly code
IF IMGMULTIXIP !#define NKNAME NK#define RAMNAME RAM#define NKSTART 80100000IF SMDK6410_X5D#define NKLEN 02100000 ; 33MB#define RAMSTART 82200000#define RAMLEN 01300000 ; 19MB (Will be auto-sized from the end of NK)ELSE#define NKLEN 04F00000 ; 79MB (Max size, to match image_cfg.* files. This will be auto-sized)#define RAMSTART 85000000#define RAMLEN 09500000 ; 13MB (Will be auto-sized from the end of NK)ENDIF SMDK6410_X5D; Single XIP;-----------------------------------------------------; NAME ADDRESS SIZE TYPE;----------------------------------------------------- $(NKNAME) $(NKSTART) $(NKLEN) RAMIMAGE $(RAMNAME) $(RAMSTART) $(RAMLEN) RAMENDIFIF IMGMULTIXIP#define NKNAME XIPKERNEL#define SYSTEMNAME NK#define RAMNAME RAMIF IMGPROFILER#define NKSTART 80100000#define NKLEN 00600000#define SYSTEMSTART 80700000#define SYSTEMLEN 038FC000#define RAMSTART 80400000#define RAMLEN 06100000ELSE#define NKSTART 80100000#define NKLEN 00300000#define SYSTEMSTART 80400000#define SYSTEMLEN 03BFC000#define RAMSTART 80400000#define RAMLEN 06100000ENDIF#define CHAINSTART 83FFC000#define CHAINLEN 00004000; Multiple XIP;-----------------------------------------------------; NAME ADDRESS SIZE TYPE;----------------------------------------------------- $(NKNAME) $(NKSTART) $(NKLEN) RAMIMAGE $(SYSTEMNAME) $(SYSTEMSTART) $(SYSTEMLEN) NANDIMAGE $(RAMNAME) $(RAMSTART) $(RAMLEN) RAM CHAIN $(CHAINSTART) $(CHAINLEN) RESERVEDENDIF ; Common RAM areas AUD_DMA 80002000 00002000 RESERVED TEMPS 80010000 00010000 RESERVED ARGS 80020800 00000800 RESERVED DBGSER_DMA 80022000 00002000 RESERVED SER_DMA 80024000 00002000 RESERVED IR_DMA 80026000 00002000 RESERVED SLEEP 80028000 00002000 RESERVED EDBG 80030000 00020000 RESERVEDIF SMDK6410_X5D CMM 83500000 00300000 RESERVED; FIMG_BUF 82800000 00800000 RESERVED DISPLAY 83800000 00400000 RESERVED MFC_JPEG 83C00000 00400000 RESERVEDELSE CMM 86500000 00300000 RESERVED DISPLAY 86800000 00C00000 RESERVED MFC_JPEG 87400000 00C00000 RESERVED; CMM 8E500000 00300000 RESERVED; DISPLAY 8E800000 00C00000 RESERVED; MFC_JPEG 8F400000 00C00000 RESERVEDENDIF SMDK6410_X5DCONFIG ; Other System Configuration for making image COMPRESSION=ON ; Binary compression for minimizing download transfer data KERNELFIXUPS=ON ; Kernel address fixup AUTOSIZE=ON ; ROM and RAM size will be resizing automatically for padding regionIF IMGMULTIXIP ROM_AUTOSIZE=OFF ; you can measure how much rom is needed to each binary image if you set this flag as ON RAM_AUTOSIZE=OFF ; RAM size will be resizing automatically only when ROM_AUTOSIZE is ON DLLADDR_AUTOSIZE=ON XIPSCHAIN=$(CHAINSTART) AUTOSIZE_ROMGAP=10000 AUTOSIZE_DLLADDRGAP=0 AUTOSIZE_DLLDATAADDRGAP=0 AUTOSIZE_DLLCODEADDRGAP=0;; ROMFLAGS is a bitmask of options for the kernel; ROMFLAGS 0x0000; ROMFLAGS 0x0001 Disallow Paging; ROMFLAGS 0x0010 Trust Module only; ROMFLAGS=0 ELSEIF IMGTRUSTROMONLY ROMFLAGS=10ELSE ROMFLAGS=00ENDIF ; END of IMGTRUSTROMONLY ROMSTART = $(NKSTART) ROMWIDTH = 32 ROMSIZE = $(NKLEN)ENDIF ; END of IMGMULTIXIPIF IMGPROFILER PROFILE=ONELSE PROFILE=OFFENDIFIF IMGMULTIXIP#include "$(_TARGETPLATROOT)\FILES\MultipleXIP.bib"ENDIF