Hello,
i was using in kernel 3.5.1 the ecc layout as suggested here:
http://processors.wiki.ti.com/index.php/DM365_Nand_ECC_layout
Both u-boot and kernel are set up accordingly.
Now, moving to kernel 3.16.2.
Once ported the patch, as in the link, i have ECC errors (BADMSG -74) trying to mount rootfs, in particular at first reads after first UBI resize / attach.
I tried also jffs2 rootfs, seems can't boot with it also.
Image
0x000004300000-0x000007f00000 : "update" davinci_nand davinci_nand.0: controller rev. 2.5 registering micrel driver/s omap_rtc da830-rtc: rtc core: registered da830-rtc as rtc0 da830-rtc: RTC power up reset detected da830-rtc: already running TCP: cubic registered NET: Registered protocol family 17 Key type dns_resolver registered UBI: attaching mtd6 to ubi0 UBI: scanning is finished UBI: volume 0 ("rootfs") re-sized from 243 to 456 LEBs UBI: attached mtd6 (name "rootfs", size 60 MiB) to ubi0 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 480, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 2110385134 UBI: available PEBs: 0, total reserved PEBs: 480, PEBs reserved for bad PEB handling: 20 UBI: background thread "ubi_bgt0d" started, PID 934 davinci_emac_init *** input: gpio-keys as /devices/platform/gpio-keys.0/input/input0 omap_rtc da830-rtc: setting system clock to 2014-10-04 22:32:37 UTC (1412461957) ecc_failed !! UBI warning: ubi_io_read: error -74 (ECC error) while reading 4096 bytes from PEB 2:4096, read only 4096 bytes, retry ecc_failed !! UBI warning: ubi_io_read: error -74 (ECC error) while reading 4096 bytes from PEB 2:4096, read only 4096 bytes, retry ecc_failed !! UBI warning: ubi_io_read: error -74 (ECC error) while reading 4096 bytes from PEB 2:4096, read only 4096 bytes, retry ecc_failed !!
Every help is appreciated
Thanks