uboot启动linux内核时输出Verifying Checksum ... Bad Data CRC解决方法

本文介绍了在Uboot启动Linux内核时遇到的'Verifying Checksum ... Bad Data CRC'错误,分析了问题可能出在nand flash烧写上。通过查看uboot输出,发现在启动信息中有提示适合的大小是2M并包含16个坏块。了解到每个擦除块大小为128k,16个坏块占用的空间导致了问题。通过调整uboot中的kernel分区到12M并重新烧写,成功解决了启动问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

先贴出笔者在uboot启动linux时的错误输出

<span style="font-size:18px;">NAND read: device 0 offset 0xa0000, size 0x400000
size adjusted to 0x200000 (16 bad blocks)
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 30000000 ...
   Image Name:   Linux-3.17.2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2624776 Bytes = 2.5 MiB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!</span>
在内核中搜索Verifying Checksum , 在image.c中有这样一段:

<span style="font-size:18px;">if (verify) {
		puts("   Verifying Checksum ... ");
		if (!image_check_dcrc(rd_hdr)) {
			puts("Bad Data CRC\n");
			bootstage_error(BOOTSTAGE_ID_RD_CHECKSUM);
		
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值