Welcome! Log In Create A New Profile

Advanced

Uncorrectable ECC error

Posted by lille 
Uncorrectable ECC error
January 25, 2018 05:57AM
Hi,

if I do a blkid, I do get these errors

root@nws:~# blkid
[18327.978487] __nand_correct_data: uncorrectable ECC error
[18327.983891] __nand_correct_data: uncorrectable ECC error
[18327.989228] blk_update_request: I/O error, dev mtdblock5, sector 0
[18327.996072] __nand_correct_data: uncorrectable ECC error
[18328.002917] __nand_correct_data: uncorrectable ECC error
[18328.008257] blk_update_request: I/O error, dev mtdblock5, sector 0
[18328.014463] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[18328.109550] __nand_correct_data: uncorrectable ECC error
[18328.114921] __nand_correct_data: uncorrectable ECC error
[18328.120988] blk_update_request: I/O error, dev mtdblock6, sector 512
[18328.127604] __nand_correct_data: uncorrectable ECC error
[18328.133624] __nand_correct_data: uncorrectable ECC error
[18328.138960] blk_update_request: I/O error, dev mtdblock6, sector 512
[18328.145340] Buffer I/O error on dev mtdblock6, logical block 64, async page read
/dev/sda1: LABEL="rootfs" UUID="9fa5b89f-03c0-4fdf-a026-860cf6c673de" TYPE="ext4" PARTUUID="cc74c377-01"
root@nws:~#

What's wrong here? Is this EMC troubles maybe?



Edited 1 time(s). Last edit at 01/25/2018 06:13AM by lille.
Re: Uncorrectable ECC error
January 25, 2018 09:14AM
lille,

> What's wrong here? Is this EMC troubles maybe?

There is nothing wrong. blkid always spits out error like that if the mtdblock devices are not defined. If you do fdisk, you will see that they are not. Which kernel are you running?

uname -a

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Uncorrectable ECC error
January 25, 2018 10:58AM
thank you for the clarification. i was assuming not seeing this 'ecc error' message before when i looked at the dmesg output. maybe I'm just wrong with this assumption.

[Thu Jan 25 09:48:25 2018] __nand_correct_data: uncorrectable ECC error
[Thu Jan 25 09:48:25 2018] __nand_correct_data: uncorrectable ECC error
[Thu Jan 25 09:48:25 2018] blk_update_request: I/O error, dev mtdblock5, sector 0
[Thu Jan 25 09:48:25 2018] __nand_correct_data: uncorrectable ECC error
[Thu Jan 25 09:48:25 2018] __nand_correct_data: uncorrectable ECC error
[Thu Jan 25 09:48:25 2018] blk_update_request: I/O error, dev mtdblock5, sector 0
[Thu Jan 25 09:48:25 2018] Buffer I/O error on dev mtdblock5, logical block 0, async page read

my machine is on kernel

root@nws:~# uname -a
Linux nws 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux


root@nws:~# fdisk -l
Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size [  163.783886] __nand_correct_data: uncorrectable ECC error
(minimum/optimal[  163.789431] __nand_correct_data: uncorrectable ECC error
): 512 bytes / 5[  163.796074] blk_update_request: I/O error, dev mtdblock5, sector 0
12 bytes


Disk /dev/mtdblock[  163.805053] __nand_correct_data: uncorrectable ECC error
1: 512 KiB, 5242[  163.811881] __nand_correct_data: uncorrectable ECC error
88 bytes, 1024 s[  163.818578] blk_update_request: I/O error, dev mtdblock5, sector 0
[  163.826166] Buffer I/O error on dev mtdblock5, logical block 0, async page read
ectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock3: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock4: 10 MiB, 10485760 bytes, 20480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




Disk /dev/mtdblock6: 47.8 MiB, 50069504 bytes, 97792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock7: 10 MiB, 10485760 bytes, 20480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock8: 47.8 MiB, 50069504 bytes, 97792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Re: Uncorrectable ECC error
January 25, 2018 01:27PM
lille,

Ah. I was expected to see undefined mtd block devices, where blkid would spit out errors no matter what.

However, this kernel version has mtd block device built in. So the other mtds are OK, but not mtd5. That's not very good, it is a real problem.

Which box is this? please post the entire log of

dmesg
cat /proc/mtd

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 01/25/2018 01:28PM by bodhi.
Re: Uncorrectable ECC error
January 25, 2018 09:33PM
bodhi, it's a ZyXEL NSA325 v2

root@cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"
root@nws:~#

this box did not run 3 weeks in total, you could call it new :( wtf
Re: Uncorrectable ECC error
January 26, 2018 02:34AM
lille,

> this box did not run 3 weeks in total, you could
> call it new :( wtf

You could obmit that part of NAND in mtd definition like I do. If you don't plan to go back to stock, then no worry. Just define it like this. Note that the second partition is not used either, I included it for illustration purpose.

fw_setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)'

The result is

fw_printenv mtdparts

mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Uncorrectable ECC error
September 17, 2018 10:31AM
I see exactly the same error on my NSA325v2

[  160.603907] __nand_correct_data: uncorrectable ECC error
[  160.609263] __nand_correct_data: uncorrectable ECC error
[  160.623771] print_req_error: I/O error, dev mtdblock5, sector 0
[  160.634636] __nand_correct_data: uncorrectable ECC error
[  160.639977] __nand_correct_data: uncorrectable ECC error
[  160.663770] print_req_error: I/O error, dev mtdblock5, sector 0
[  160.669726] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Is it safe to ignore or is there any way to fix it? I not plan to go back to stock again.
Re: Uncorrectable ECC error
September 17, 2018 04:50PM
sebr,

> I see exactly the same error on my NSA325v2
>
> 
> [  160.603907] __nand_correct_data: uncorrectable
> ECC error
> [  160.609263] __nand_correct_data: uncorrectable
> ECC error
> [  160.623771] print_req_error: I/O error, dev
> mtdblock5, sector 0
> [  160.634636] __nand_correct_data: uncorrectable
> ECC error
> [  160.639977] __nand_correct_data: uncorrectable
> ECC error
> [  160.663770] print_req_error: I/O error, dev
> mtdblock5, sector 0
> [  160.669726] Buffer I/O error on dev mtdblock5,
> logical block 0, async page read
> 
>
> Is it safe to ignore or is there any way to fix
> it? I not plan to go back to stock again.

This error could occur if you executing some command such as blkid, and in that case it is perfectly normal. If you keep seeing it without doing anything that tries to read the mtd partitions then it is not good.

However, I've seen this error bfore on my box too. What I did was to make the box ignoring it altogether by redefine the mtdparts:

fw_setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)'

So I don't care to see the rest of the mtds except for u-boot and u-boot envs region. I could try to fix it, but thinking I would never need to boot back to stock, so chose to not worry about it now.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 09/17/2018 04:53PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: