|
在飞凌OK6410+WINCE6.0的平台上加入开机LOGO,开机LOGO图片下载到NANDFLASH进去后,系统可以启动。,但是,再次启动系统却发现存储LOGO图片的数据NANDFLASH被清除了。难道,启动NK.BIN系统还清除存储LOGO的空间?保存BIN文件地址的BLOCK参数在loader.h文件中设置:
#define STEPPINGSTONE_SIZE (0x2000) //< S3C6410 support 8kbytes Steppingstone
// NAND Boot (loads into SteppingStone) @ Block 0
#define NBOOT_BLOCK 0
#define NBOOT_BLOCK_SIZE 1
#define NBOOT_SECTOR BLOCK_TO_SECTOR(NBOOT_BLOCK)
// TOC @ Block 1
#define TOC_BLOCK 1
#define TOC_BLOCK_SIZE 1
#define TOC_SECTOR BLOCK_TO_SECTOR(TOC_BLOCK)
#define TOC_BADBLOCK_SECTOR (BLOCK_TO_SECTOR(TOC_BLOCK+1)-1)
// Eboot @ Block 2
#define EBOOT_BLOCK 2
#define EBOOT_SECTOR_SIZE FILE_TO_SECTOR_SIZE(EBOOT_RAM_IMAGE_SIZE)
#define EBOOT_BLOCK_SIZE SECTOR_TO_BLOCK(EBOOT_SECTOR_SIZE)
#define EBOOT_SECTOR BLOCK_TO_SECTOR(EBOOT_BLOCK)
//---->add bu lishengwu
//#define LOGO_BLOCK EBOOT_BLOCK + EBOOT_BLOCK_SIZE
#define LOGO_BLOCK 5
#define LOGO_BLOCK_SIZE 8
//#define LOGO_SECTOR_SIZE BLOCK_TO_SECTOR(LOGO_BLOCK_SIZE)
#define LOGO_SECTOR BLOCK_TO_SECTOR(LOGO_BLOCK)
//
#define RESERVED_BOOT_BLOCKS (NBOOT_BLOCK_SIZE + TOC_BLOCK_SIZE + EBOOT_BLOCK_SIZE + LOGO_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)
请飞凌的技术人员帮忙解决啊!!!急!!!!!!! |
|