TI中文支持网
TI专业的中文技术问题搜集分享网站

内核Kernel 0的分区第一个Block被擦除(128Kbyte),在uboot中查看全是0xff

开发环境: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被擦除 如下图:

Chris Meng:

你好,

会否被标记为坏块了?

sir sanmaoljh:

回复 Chris Meng:

在uboot如下操作,显示没有坏块,所以不是被标记为坏块了,不知道为什么,总有一批主机出现系统不能起来,拿回来查看就是内核中第一个block被擦除

TI8168_EVM2fs#nand bad

Device 0 bad blocks:TI8168_EVM2fs#

赞(0)
未经允许不得转载:TI中文支持网 » 内核Kernel 0的分区第一个Block被擦除(128Kbyte),在uboot中查看全是0xff
分享到: 更多 (0)