nand中间出现坏块,无法正常启动内…
我板子的启动过程如下:
..showlogo..
Flash:
NAND:
In:
Out:
Err:
*************show logo***************Hit any key to stop
autoboot:
NAND read: device 0 offset 0x900000, size 0x300000
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
get_format
-------- 0 --------
Wrong Image Format for bootm command
ERROR: can't get kernel image!
分析:uboot能够正常启动,但是从这句“NAND read: device 0 offset
0x900000, size 0x300000
”可以看出在nand中0x900000出开始读kernel到内存时,出错,问题应该出在这段nand中,幸亏uboot能正常启动,那就好说了,直接重新给nand分区,然后修改uboot启动后设置启动参数,就可以搞定了。
值得注意的是:nand分区在linux内核中修改,/arch/arm/plat-s3c24xx/common-smdk.c
板子原来的分区如下:
struct mtd_partition s3c_partition_info[] = {