1. 程式人生 > >移植u-boot-2011.03到S3C2440(utu2440)的方法與步驟###8. u-boot引導啟動nand flash中核心和根檔案系統cramfs和使用者檔案系統yaffs2支援

移植u-boot-2011.03到S3C2440(utu2440)的方法與步驟###8. u-boot引導啟動nand flash中核心和根檔案系統cramfs和使用者檔案系統yaffs2支援

rivers/rtc/hctosys.c: unable to open rtc device (rtc0)

uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 0

Buffer I/O error on device mtdblock2, logical block 0

uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 0

Buffer I/O error on device mtdblock2, logical block 0

end_request: I/O error, dev mtdblock2, sector 8

Buffer I/O error on device mtdblock2, logical block 1

end_request: I/O error, dev mtdblock2, sector 8

Buffer I/O error on device mtdblock2, logical block 1

uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 16

Buffer I/O error on device mtdblock2, logical block 2

uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 16

Buffer I/O error on device mtdblock2, logical block 2

uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 24

Buffer I/O error on device mtdblock2, logical block 3

uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 24

Buffer I/O error on device mtdblock2, logical block 3

uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 0

FAT: unable to read boot sector

VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)

Please append a correct "root=" boot option; here are the available partitions:

1f00             384 mtdblock0 (driver?)

1f01            2048 mtdblock1 (driver?)

1f02            2048 mtdblock2 (driver?)

1f03           61056 mtdblock3 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

Backtrace: 

[<c0026908>] (dump_backtrace+0x0/0x12c) from [<c0026a4c>] (dump_stack+0x18/0x1c)

 r7:c3809000 r6:c001e8d0 r5:c03958fc r4:c3809007

[<c0026a34>] (dump_stack+0x0/0x1c) from [<c0033b6c>] (panic+0x40/0x118)

[<c0033b2c>] (panic+0x0/0x118) from [<c0008d78>] (mount_block_root+0xfc/0x24c)

 r3:00000000 r2:20000013 r1:c381df54 r0:c0315f3c

[<c0008c7c>] (mount_block_root+0x0/0x24c) from [<c0008f94>] (mount_root+0xcc/0xec)

[<c0008ec8>] (mount_root+0x0/0xec) from [<c00090ac>] (prepare_namespace+0xf8/0x194)

 r6:c03952c4 r5:c001e888 r4:c001e88c

[<c0008fb4>] (prepare_namespace+0x0/0x194) from [<c0008a2c>] (kernel_init+0xc8/0xf4)

 r6:c001d44c r5:c001d0fc r4:c03952b8

[<c0008964>] (kernel_init+0x0/0xf4) from [<c003617c>] (do_exit+0x0/0x670)

 r6:00000000 r5:00000000 r4:00000000

開始以為是u-boot的啟動引數不對所致,但改來改去,終是這個錯誤。後面在網上找到了解決方法,原因不是u-boot的啟動引數導致的,而是自己移植的linux核心中NAND FLASH的ECC所致。