typedef struct _TOC {
DWORD dwSignature;
// How to boot the images in this TOC.
// This could be moved into the image descriptor if desired,
// but I prefer to conserve space.
BOOT_CFG BootCfg;
// Array of Image Descriptors.
IMAGE_DESCRIPTOR id[MAX_TOC_DESCRIPTORS];
引用 21 楼 haiou_arm 的回复:
typedef struct _TOC {
? ? DWORD? ? ? ? ? ? ? dwSignature;
? ? // How to boot the images in this TOC.
? ? // This could be moved into the image descriptor if desired,
? ? // but I prefer to conserve space.
? ? BOOT_CFG? ? ? ? ? ? BootCfg;
引用 23 楼 hao507 的回复:
引用 21 楼 haiou_arm 的回复:
typedef struct _TOC {
? ? DWORD? ? ? ? ? ? ? dwSignature;
? ? // How to boot the images in this TOC.
? ? // This could be moved into the image descriptor if desired,
? ? // but I prefer to conserve space.
? ? BOOT_CFG? ? ? ? ? ? BootCfg;
#define NKNAME NK
#define NKSTART 80100000
;gao0129
#define NKLEN 03F00000 ; 63MB (Max size, to match image_cfg.* files. This will be auto-sized)
;#define NKLEN 02800000 ; 40MB
#define RAMNAME RAM
;gao0129
#define RAMSTART 84000000
#define RAMLEN 01D00000 ; 29MB (Will be auto-sized from the end of NK)
;#define RAMSTART 82900000
;#define RAMLEN 03600000 ; 54MB
;-----------------------------------------------------
; NAME ADDRESS SIZE TYPE
;-----------------------------------------------------
$(NKNAME) $(NKSTART) $(NKLEN) RAMIMAGE
$(RAMNAME) $(RAMSTART) $(RAMLEN) RAM
ENDIF
IF IMGMULTIXIP
#define CHAIN_ADDRESS 823FC000
#define CHAIN_LENGTH 00004000
;-----------------------------------------------------
; NAME ADDRESS SIZE TYPE
;-----------------------------------------------------
XIPKERNEL 80100000 00300000 RAMIMAGE
NK 80400000 01FFC000 NANDIMAGE
CHAIN $(CHAIN_ADDRESS) $(CHAIN_LENGTH) RESERVED
RAM 80400000 06400000 RAM