|
mini2440的nboot(板子自带的源代码)的问题
[复制链接]
下面是nboot loader.h中的一段定义:
// NAND Boot (loads into SteppingStone) @ Block 0
#define NBOOT_BLOCK 0
#define NBOOT_BLOCK_SIZE 8 /*1 change by capbily for vivi */
#define NBOOT_SECTOR BLOCK_TO_SECTOR(NBOOT_BLOCK)
// TOC @ Block 1
#define TOC_BLOCK 19 /*1 change by capbily for vivi */
#define TOC_BLOCK_SIZE 1
#define TOC_SECTOR BLOCK_TO_SECTOR(TOC_BLOCK)
// Eboot @ Block 2
#define EBOOT_BLOCK 10 /*2 change by capbily for vivi */
#define EBOOT_SECTOR_SIZE (11*PAGES_PER_BLOCK) /*FILE_TO_SECTOR_SIZE(EBOOT_RAM_IMAGE_SIZE)*/
#define EBOOT_BLOCK_SIZE 11 /*SECTOR_TO_BLOCK(EBOOT_SECTOR_SIZE)*/
#define EBOOT_SECTOR BLOCK_TO_SECTOR(EBOOT_BLOCK)
#define RESERVED_BOOT_BLOCKS 0x890// (NBOOT_BLOCK_SIZE + TOC_BLOCK_SIZE + EBOOT_BLOCK_SIZE)
// Images start after OEM Reserved Blocks
#define IMAGE_START_BLOCK RESERVED_BOOT_BLOCKS
#define IMAGE_START_SECTOR BLOCK_TO_SECTOR(IMAGE_START_BLOCK)
红色部分,我感觉不太对,大家看看有没有问题!
|
|