开发环境:TI的dm8168+dvrrdk4.0.2
下面是nand分区表,系统跑起来后,过大概1个月或者2个月左右,时间随机,就出现
内核Kernel 0的分区第一个Block被擦除(128Kbyte),在uboot中查看全是0xff,
应用程序没有调用擦除flash动作,在系统脚本中也没有去调用擦除动作
为什么会擦除内核分区中的第一个block呢?
请问下怎么回事?有谁遇到过类似问题?
"Kernel 1"和"File System 1"做为备份使用
static struct mtd_partition ti816x_nand_partitions[] = {
/* All the partition sizes are listed in terms of NAND block size */
{
.name = "U-Boot",
.offset = 0, /* Offset = 0x0 */
.size = 8 * NAND_BLOCK_SIZE,
},
{
.name = "U-Boot Env",
.offset = MTDPART_OFS_APPEND, /* Offset = 0x100000 */
.size = 8 * NAND_BLOCK_SIZE,
},
{
.name = "Kernel 0",
.offset = MTDPART_OFS_APPEND, /* Offset = 0x120000 */
.size = 32 * NAND_BLOCK_SIZE,
},
{
.name = "File System 0",
.offset = MTDPART_OFS_APPEND, /* Offset = 0x520000 */
.size = 880 * NAND_BLOCK_SIZE,
},
{
.name = "Kernel 1",
.offset = MTDPART_OFS_APPEND, /* Offset = 0x120000 */
.size = 32 * NAND_BLOCK_SIZE,
},
{
.name = "File System 1",
.offset = MTDPART_OFS_APPEND, /* Offset = 0x520000 */
.size = 880 * NAND_BLOCK_SIZE,
},
{
.name = "Reserved",
.offset = MTDPART_OFS_APPEND, /* Offset = 0xFF20000 */
.size = MTDPART_SIZ_FULL,
},
};
uboot提示内核格式不对 如下图:
在uboot中检测发现内核数据的第一个block被擦除 如下图:

