内核版本3.8.13 mtd-utils版本1.4.8
UBI文件系统挂载报错:
[ 7.829420] UBI: default fastmap WL pool size: 25
[ 7.834487] UBI: attaching mtd9 to ubi0
[ 7.838701] UBI: >>>ubi_attach_mtd_dev 1
[ 7.838701][ 7.844741] UBI: >>>ubi_attach_mtd_dev 2
[ 7.844741][ 7.850960] UBI: >>>ubi_attach_mtd_dev 3
[ 7.850960][ 10.095548] ecc unrecoverable error
[ 10.099587] ecc unrecoverable error
[ 10.103585] ecc unrecoverable error
[ 10.107576] ecc unrecoverable error
[ 10.111375] UBI warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 542:0, read only 64 bytes, retry
[ 10.125588] ecc unrecoverable error
[ 10.129581] ecc unrecoverable error
[ 10.133575] ecc unrecoverable error
[ 10.137570] ecc unrecoverable error
[ 10.141365] UBI warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 542:0, read only 64 bytes, retry
其中PEB542:0中的542对应的是ubi image文件大小.
以下是最后的打印信息
[ 482.316156] UBI warning: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 1599:2048, read only 512 bytes, retry
[ 482.330961] ecc unrecoverable error
[ 482.334997] ecc unrecoverable error
[ 482.338985] ecc unrecoverable error
[ 482.342980] ecc unrecoverable error
[ 482.346773] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 1599:2048, read 512 bytes
[ 482.358042] [<c0010503>] (unwind_backtrace+0x1/0x8a) from [<c023ab41>] (ubi_io_read+0x155/0x1ec)
[ 482.367459] [<c023ab41>] (ubi_io_read+0x155/0x1ec) from [<c023aec7>] (ubi_io_read_vid_hdr+0x4f/0x16c)
[ 482.377342] [<c023aec7>] (ubi_io_read_vid_hdr+0x4f/0x16c) from [<c023e179>] (scan_peb+0x169/0x4b8)
[ 482.386946] [<c023e179>] (scan_peb+0x169/0x4b8) from [<c023e51b>] (scan_all+0x53/0x7ea)
[ 482.395541] [<c023e51b>] (scan_all+0x53/0x7ea) from [<c023ef6d>] (ubi_attach+0x13d/0x214)
[ 482.404325] [<c023ef6d>] (ubi_attach+0x13d/0x214) from [<c023700b>] (ubi_attach_mtd_dev+0x53d/0x9d2)
[ 482.414127] [<c023700b>] (ubi_attach_mtd_dev+0x53d/0x9d2) from [<c0669beb>] (ubi_init+0x13f/0x200)
[ 482.423730] [<c0669beb>] (ubi_init+0x13f/0x200) from [<c0008661>] (do_one_initcall+0x65/0xf0)
[ 482.432878] [<c0008661>] (do_one_initcall+0x65/0xf0) from [<c065265d>] (kernel_init_freeable+0xb9/0x14c)
[ 482.443039] [<c065265d>] (kernel_init_freeable+0xb9/0x14c) from [<c039b23b>] (kernel_init+0x7/0x90)
[ 482.452735] [<c039b23b>] (kernel_init+0x7/0x90) from [<c000c5f9>] (ret_from_fork+0x11/0x38)
[ 482.461669] UBI: scanning is finished
[ 482.510370] UBI error: vtbl_check: too large reserved_pebs 1652, good PEBs 1600
[ 482.518222] UBI error: vtbl_check: volume table check failed: record 0, error 9
[ 482.526033] Volume table record 0 dump:
[ 482.530170] reserved_pebs 1652
[ 482.533749] alignment 1
[ 482.537054] data_pad 0
[ 482.540358] vol_type 1
[ 482.543660] upd_marker 0
[ 482.546961] name_len 6
[ 482.550264] name rootfs
[ 482.554027] crc 0xd8b5446f
[ 482.559529] UBI error: ubi_attach_mtd_dev: failed to attach mtd9, error -22
[ 482.567132] UBI error: ubi_init: cannot attach mtd9
[ 482.626002] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 482.632587] davinci_mdio 4a101000.mdio: detected phy mask fffffff5
[ 482.642394] libphy: 4a101000.mdio: probed
[ 482.646819] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver unknown
[ 482.655408] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver unknown
[ 482.664470] Detected MACID = f4:5e:ab:58:90:2c
[ 482.669369] cpsw 4a100000.ethernet: NAPI disabled
[ 482.677252] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 482.696107] ALSA device list:
[ 482.699315] No soundcards found.
[ 482.703555] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[ 482.711593] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[ 482.720008] Please append a correct "root=" boot option; here are the available partitions:
[ 482.728831] 1f00 128 mtdblock0 (driver?)
[ 482.734176] 1f01 128 mtdblock1 (driver?)
[ 482.739514] 1f02 128 mtdblock2 (driver?)
[ 482.744835] 1f03 128 mtdblock3 (driver?)
[ 482.750155] 1f04 256 mtdblock4 (driver?)
[ 482.755495] 1f05 1024 mtdblock5 (driver?)
[ 482.760829] 1f06 128 mtdblock6 (driver?)
[ 482.766149] 1f07 128 mtdblock7 (driver?)
[ 482.771471] 1f08 5120 mtdblock8 (driver?)
[ 482.776807] 1f09 204800 mtdblock9 (driver?)
[ 482.782142] Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 482.790868] [<c0010503>] (unwind_backtrace+0x1/0x8a) from [<c039e3a1>] (panic+0x51/0x144)
[ 482.799464] [<c039e3a1>] (panic+0x51/0x144) from [<c0652937>] (mount_block_root+0x127/0x160)
[ 482.808319] [<c0652937>] (mount_block_root+0x127/0x160) from [<c0652af9>] (prepare_namespace+0x4d/0x114)
[ 482.818266] [<c0652af9>] (prepare_namespace+0x4d/0x114) from [<c039b23b>] (kernel_init+0x7/0x90)
[ 482.827495] [<c039b23b>] (kernel_init+0x7/0x90) from [<c000c5f9>] (ret_from_fork+0x11/0x38)
user4725089:
我之前遇到类似的,是因为我制作 UBI 文件的时候参数设置错了 ,特别是在 mkfs.ubifs 的时候,-m -e -c 的几个参数,这几个参数,要根据你的 NAND FLASH 的实际,来设置的。
Jian Zhou:
回复 user4725089:
请问有参考过这篇文档么?
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/59921.aspx
user5060203:
请问你解决了吗 我也遇到同样的问题 如果解决了知道我下好吗