ECC errors in UBI RB2011UiAS-2HnD-IN (and solution)

Hi all,

This week, I wanted to upgrade my RB2011UiAS-2HnD-IN to a new version of OpenWRT. I got boot loops whenever I installed a version that used UBI (and not the old yaffs2). So I built a serial cable and saw lots of ECC errors scrolling past the screen. Those errors could be reproduced by ubiformat / ubiattach / ubimkvol / ubidetach / ubiattach (last command would fail with said errors)

It turned out that my unit has a K9F1G08U0E flash chip which does not support sub-page writes (http://lists.infradead.org/pipermail/linux-mtd/2018-January/078664.html). So I edited

target/linux/ar71xx/config-4.9

to include

CONFIG_CMDLINE="ubi.mtd=6,2048 rootfstype=squashfs noinitrd"

and compiled.

This tells the UBI driver not to do sub-page writes (http://linux-mtd.infradead.org/faq/ubi.html#L_force_no_subpage).

The proper fix is, of course, to patch the kernel. The problem is that the patch that I linked does not apply to mainline linux (since it does not have nand_samsung.c (yet).

I hope this post will be useful

Greetings,

Rik.

3 Likes

But is it possible to install the latest openwrt snapshot?

Hello.
Please help me.
I`m follow your instruction and have next error

3.179298] ubi0 error: validate_ec_hdr: bad VID header offset 512, expected 2048
[    3.187079] ubi0 error: validate_ec_hdr: bad EC header
[    3.192390] Erase counter header dump:
[    3.196260]  magic          0x55424923
[    3.200129]  version        1
[    3.203204]  ec             6
[    3.206267]  vid_hdr_offset 512
[    3.209510]  data_offset    2048
[    3.212854]  image_seq      1183732982
[    3.216724]  hdr_crc        0x50a16e98
[    3.220594] erase counter header hexdump:
[    3.224774] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.152 #0
[    3.230800] Stack : 804a76a2 00000032 00000000 00000001 87c2c294 8044abc7 803faa70 00000001
[    3.239489]         804a37e0 00000000 55424923 804a0000 87e12114 800a982c 30203030 20303020
[    3.248189]         30302030 30203030 803fe50c 87c31c74 31203665 800d79dc 202e2e2e 2e2e2e2e
[    3.256890]         2e2e2e2e 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.265590]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.274289]         ...
[    3.276826] Call Trace:
[    3.279365] [<8006b5a0>] show_stack+0x70/0x8c
[    3.283885] [<80295428>] validate_ec_hdr+0x78/0xfc
[    3.288836] [<80295ff0>] ubi_io_read_ec_hdr+0x1c0/0x1f0
[    3.294250] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[    3.299022] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[    3.304449] [<80481dd8>] ubi_init+0x22c/0x3c4
[    3.308956] [<80060adc>] do_one_initcall+0x164/0x198
[    3.314106] [<80469dc0>] kernel_init_freeable+0x210/0x218
[    3.319695] [<8037c1f8>] kernel_init+0x10/0x104
[    3.324401] [<80066358>] ret_from_kernel_thread+0x14/0x1c
[    3.329986] ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0
[    3.336842] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -22
[    3.344174] UBI error: cannot attach mtd6[    3.348511] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    3.356286] Please append a correct "root=" boot option; here are the available partitions:
[    3.364925] 1f00              48 mtdblock0 [    3.369061]  (driver?)
[    3.371515] 1f01               4 mtdblock1 [    3.375648]  (driver?)
[    3.378090] 1f02               4 mtdblock2 [    3.382233]  (driver?)
[    3.384676] 1f03               4 mtdblock3 [    3.388810]  (driver?)
[    3.391263] 1f04             256 mtdblock4 [    3.395395]  (driver?)
[    3.397838] 1f05            3840 mtdblock5 [    3.401981]  (driver?)
[    3.404425] 1f06          126976 mtdblock6 [    3.408557]  (driver?)
[    3.411008] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.420737] Rebooting in 1 seconds..

Can you show your complete dmesg? I'd like to see the kernel commandline.

After compilation I install using below instructions (mikrotik is the router and eniac is the desktop):

Put resulting for example in ~/Downloads/mikrotik/:

openwrt-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf
openwrt-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin

Connect mikrotik to spare eth1 device, configure
eniac# ifconfig eth1 10.0.0.1 up

Then run dnsmasq

eniac# dnsmasq -i eth1 --dhcp-range=10.0.0.10,10.0.0.20 --dhcp-boot=openwrt-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf --enable-tftp --tftp-root=/home/rsnel/Downloads/mikrotik/ -d -u rsnel -p0 -K --log-dhcp --bootp-dynamic

Connect this port to port1 of mikrotik and instruct mikrotik to boot from
ethernet (either via RS232 or hold reset button before powerup until beep)

connect to 192.168.1.1 (default IP of mikrotik) with ssh and download
sysupgrade.bin

eniac# nc -l -p 9999 < openwrt-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin

mikrotik# nc 192.168.1.2 9999 > sysupgrade.bin
mikrotik# sysupgrade sysupgrade.bin

thank you for reply.
i am doing all as you describe and as write in manual
this is my dmesg

RouterBOOT booter 3.41

RouterBoard 2011UiAS-2HnD

CPU frequency: 600 MHz
 Memory speed: 200 MHz
  Memory size: 128 MiB
    NAND size: 128 MiB

Press any key within 2 seconds to enter setup..

loading kernel... OK
setting up elf image... OK
jumping to kernel code


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 4.9.152 (osboxes@osboxes) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7676-cddd7b4c77) ) #0 Wed Jan 30 12:21:02 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 3
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: lcd_ctrl=84 parts=1 boot_part_size=4194304 gpio=249403 HZ=300000000 mem=128M kmac=B8:69:F4:A1:DA:C8 board=2011r5 board=2011r5 ver=3.41 hw_opt=00718004 boot=1 mlc=11 console=ttyS0,115200 ubi.mtd=6,2048 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124948K/131072K available (3204K kernel code, 140K rwdata, 780K rodata, 220K init, 201K bss, 6124K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:600.000MHz, DDR:400.000MHz, AHB:400.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008861] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.081948] pid_max: default: 32768 minimum: 301
[    0.087297] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094815] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105714] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116911] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.124392] NET: Registered protocol family 16
[    0.134199] MIPS: machine is Mikrotik RouterBOARD 2011UiAS-2HnD
[    0.640771] clocksource: Switched to clocksource MIPS
[    0.647630] NET: Registered protocol family 2
[    0.653421] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.661391] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.668615] TCP: Hash tables configured (established 1024 bind 1024)
[    0.675927] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.682601] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.689941] NET: Registered protocol family 1
[    0.699582] Crashlog allocated RAM at address 0x3f00000
[    0.706969] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.720955] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.727570] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.748474] io scheduler noop registered
[    0.752973] io scheduler deadline registered (default)
[    0.759107] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.766766] console [ttyS0] disabled
 0.790985] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.800787] console [ttyS0] enabled
[    0.800787] console [ttyS0] enabled
[    0.808331] bootconsole [early0] disabled
[    0.808331] bootconsole [early0] disabled
[    0.820315] m25p80 spi0.0: found w25x05, expected m25p80
[    0.836761] m25p80 spi0.0: w25x05 (64 Kbytes)
[    0.841757] Creating 4 MTD partitions on "spi0.0":
[    0.846719] 0x000000000000-0x00000000c000 : "routerboot"
[    0.854206] 0x00000000c000-0x00000000d000 : "hard_config"
[    0.861919] 0x00000000d000-0x00000000e000 : "bios"
[    0.868888] 0x00000000e000-0x00000000f000 : "soft_config"
[    0.877884] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.884499] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.889272] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.897138] Scanning device for bad blocks
[    0.906777] random: fast init done
[    1.042382] Creating 3 MTD partitions on "ar934x-nfc":
[    1.047711] 0x000000000000-0x000000040000 : "booter"
[    1.054759] 0x000000040000-0x000000400000 : "kernel"
[    1.062061] 0x000000400000-0x000008000000 : "ubi"
[    1.072484] libphy: Fixed MDIO Bus: probed
[    1.089659] libphy: ag71xx_mdio: probed
[    1.102670] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.829174] libphy: ag71xx_mdio: probed
[    2.462229] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    2.473947] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    3.102538] ag71xx-mdio.1: Found an AR934X built-in switch
[    3.154952] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    3.162043] NET: Registered protocol family 17
[    3.166704] 8021q: 802.1Q VLAN Support v1.8
[    3.175069] ubi0: attaching mtd6
[    3.601909] __nand_correct_data: uncorrectable ECC error
[    3.607447] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:0, read only 64 bytes, retry
[    3.619787] __nand_correct_data: uncorrectable ECC error
[    3.625312] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:0, read only 64 bytes, retry
[    3.637643] __nand_correct_data: uncorrectable ECC error
[    3.643169] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:0, read only 64 bytes, retry
[    3.655501] __nand_correct_data: uncorrectable ECC error
[    3.661026] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:0, read 64 bytes
[    3.671454] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.152 #0
[    3.677475] Stack : 804a76a2 00000032 00000000 00000001 87c2c294 8044abc7 803faa70 00000001
[    3.686174]         804a37e0 02120000 00000000 00000000 87dc1a00 800a982c 00000000 00000001
[    3.694874]         ffffffb3 87ccd000 803fe50c 87c31c34 00000000 800d79dc 00000000 00000000
[    3.703574]         87dc1a00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.712274]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.720974]         ...
[    3.723511] Call Trace:
[    3.726049] [<8006b5a0>] show_stack+0x70/0x8c
[    3.730557] [<80295b58>] ubi_io_read+0x26c/0x310
[    3.735345] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[    3.740661] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[    3.745451] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[    3.750873] [<80481dd8>] ubi_init+0x22c/0x3c4
[    3.755372] [<80060adc>] do_one_initcall+0x164/0x198
[    3.760509] [<80469dc0>] kernel_init_freeable+0x210/0x218
[    3.766115] [<8037c1f8>] kernel_init+0x10/0x104
[    3.770826] [<80066358>] ret_from_kernel_thread+0x14/0x1c
[    3.777363] __nand_correct_data: uncorrectable ECC error
[    3.782893] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:512, read only 64 bytes, retry
[    3.795705] __nand_correct_data: uncorrectable ECC error
[    3.801233] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:512, read only 64 bytes, retry
[    3.814049] __nand_correct_data: uncorrectable ECC error
[    3.819556] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:512, read only 64 bytes, retry
[    3.832376] __nand_correct_data: uncorrectable ECC error
[    3.837878] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 265:512, read 64 bytes
[    3.848494] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.152 #0
[    3.854524] Stack : 804a76a2 00000032 00000000 00000001 87c2c294 8044abc7 803faa70 00000001
[    3.863241]         804a37e0 02120200 00000200 00000000 87dc1c00 800a982c 00000000 00000001
[    3.871950]         ffffffb3 87ccd000 803fe50c 87c31c34 00000000 800d79dc 00000200 00000000
[    3.880641]         87dc1c00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.889341]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.898041]         ...
[    3.900578] Call Trace:
[    3.903126] [<8006b5a0>] show_stack+0x70/0x8c
[    3.907634] [<80295b58>] ubi_io_read+0x26c/0x310
[    3.912422] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[    3.917826] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[    3.922617] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[    3.928018] [<80481dd8>] ubi_init+0x22c/0x3c4
[    3.932533] [<80060adc>] do_one_initcall+0x164/0x198
[    3.937663] [<80469dc0>] kernel_init_freeable+0x210/0x218
[    3.943265] [<8037c1f8>] kernel_init+0x10/0x104
[    3.947954] [<80066358>] ret_from_kernel_thread+0x14/0x1c
[    3.977344] __nand_correct_data: uncorrectable ECC error
[    3.982883] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:0, read only 64 bytes, retry
[    3.995221] __nand_correct_data: uncorrectable ECC error
[    4.000727] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:0, read only 64 bytes, retry
[    4.013067] __nand_correct_data: uncorrectable ECC error
[    4.018575] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:0, read only 64 bytes, retry
[    4.030914] __nand_correct_data: uncorrectable ECC error
[    4.036424] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:0, read 64 bytes
[    4.046857] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.152 #0
[    4.052882] Stack : 804a76a2 00000032 00000000 00000001 87c2c294 8044abc7 803faa70 00000001
[    4.061589]         804a37e0 02140000 00000000 00000000 87dc1a00 800a982c 00000000 00000001
[    4.070279]         ffffffb3 87ccd000 803fe50c 87c31c34 00000000 800d79dc 00000000 00000000
[    4.078980]         87dc1a00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.087679]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.096380]         ...
[    4.098917] Call Trace:
[    4.101461] [<8006b5a0>] show_stack+0x70/0x8c
[    4.105972] [<80295b58>] ubi_io_read+0x26c/0x310
[    4.110746] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[    4.116071] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[    4.120856] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[    4.126261] [<80481dd8>] ubi_init+0x22c/0x3c4
[    4.130772] [<80060adc>] do_one_initcall+0x164/0x198
[    4.135904] [<80469dc0>] kernel_init_freeable+0x210/0x218
[    4.141504] [<8037c1f8>] kernel_init+0x10/0x104
[    4.146199] [<80066358>] ret_from_kernel_thread+0x14/0x1c
[    4.152753] __nand_correct_data: uncorrectable ECC error
[    4.158268] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:512, read only 64 bytes, retry
[    4.171111] __nand_correct_data: uncorrectable ECC error
[    4.176621] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:512, read only 64 bytes, retry
[    4.189440] __nand_correct_data: uncorrectable ECC error
[    4.194961] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:512, read only 64 bytes, retry
[    4.207773] __nand_correct_data: uncorrectable ECC error
[    4.213292] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 266:512, read 64 bytes
[    4.223900] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.152 #0
[    4.229921] Stack : 804a76a2 00000032 00000000 00000001 87c2c294 8044abc7 803faa70 00000001
[    4.238621]         804a37e0 02140200 00000200 00000000 87dc1c00 800a982c 00000000 00000001
[    4.247320]         ffffffb3 87ccd000 803fe50c 87c31c34 00000000 800d79dc 00000200 00000000
[    4.256020]         87dc1c00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.264720]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.273421]         ...

.................................................

[   14.931995] random: crng init done
[   15.415324] ubi0: scanning is finished
[   15.419475] ubi0 error: ubi_read_volume_table: the layout volume was not found
[   15.427227] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -22
[   15.434617] UBI error: cannot attach mtd6[   15.438961] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[   15.446740] Please append a correct "root=" boot option; here are the available partitions:
[   15.455380] 1f00              48 mtdblock0 [   15.459516]  (driver?)
[   15.461970] 1f01               4 mtdblock1 [   15.466101]  (driver?)
[   15.468545] 1f02               4 mtdblock2 [   15.472687]  (driver?)
[   15.475130] 1f03               4 mtdblock3 [   15.479263]  (driver?)
[   15.481716] 1f04             256 mtdblock4 [   15.485850]  (driver?)
[   15.488292] 1f05            3840 mtdblock5 [   15.492435]  (driver?)
[   15.494878] 1f06          126976 mtdblock6 [   15.499012]  (driver?)
[   15.501463] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   15.519905] Rebooting in 1 seconds..

I see that you have the correct kernel commandline.

You should boot from ethernet using openwrt-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf. If you boot this way, the mikrotik runs it's root filesystem from RAM. Then you do sysupgrade to install to flash memory. (during install, the ubi.mtd=6,2048 is also needed)

yes, i did boot from openwrt-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf
when i run sysupgrade

`

[   84.885391] Call Trace:
[   84.887927] [<8006b5a0>] show_stack+0x70/0x8c
[   84.892453] [<80295b58>] ubi_io_read+0x26c/0x310
[   84.897230] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   84.902556] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   84.907326] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   84.912743] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   84.917789] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   84.927406] __nand_correct_data: uncorrectable ECC error
[   84.932952] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 291:512, read only 64 bytes, retry
[   84.945768] __nand_correct_data: uncorrectable ECC error
[   84.951290] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 291:512, read only 64 bytes, retry
[   84.964110] __nand_correct_data: uncorrectable ECC error
[   84.969618] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 291:512, read only 64 bytes, retry
[   84.982992] __nand_correct_data: uncorrectable ECC error
[   84.988500] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 291:512, read 64 bytes
[   84.999125] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   85.005598] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   85.014297]         806737e0 02460200 00000200 00000000 87228000 800a982c 00000000 00000001
[   85.022998]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   85.031707]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.040398]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.049107]         ...
[   85.051654] Call Trace:
[   85.054189] [<8006b5a0>] show_stack+0x70/0x8c
[   85.058699] [<80295b58>] ubi_io_read+0x26c/0x310
[   85.063490] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   85.068892] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   85.073683] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   85.079080] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   85.084147] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   85.093751] __nand_correct_data: uncorrectable ECC error
[   85.099265] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:0, read only 64 bytes, retry
[   85.112438] __nand_correct_data: uncorrectable ECC error
[   85.117943] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:0, read only 64 bytes, retry
[   85.130286] __nand_correct_data: uncorrectable ECC error
[   85.135809] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:0, read only 64 bytes, retry
[   85.148140] __nand_correct_data: uncorrectable ECC error
[   85.153665] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:0, read 64 bytes
[   85.164205] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   85.170678] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   85.179394]         806737e0 02480000 00000000 00000000 87228600 800a982c 00000000 00000001
[   85.188104]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000000 00000000
[   85.196804]         87228600 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.205513]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.214213]         ...
[   85.216750] Call Trace:
[   85.219289] [<8006b5a0>] show_stack+0x70/0x8c
[   85.223816] [<80295b58>] ubi_io_read+0x26c/0x310
[   85.228587] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   85.233914] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   85.238685] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   85.244102] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   85.249153] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   85.258775] __nand_correct_data: uncorrectable ECC error
[   85.264317] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:512, read only 64 bytes, retry
[   85.277137] __nand_correct_data: uncorrectable ECC error
[   85.282657] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:512, read only 64 bytes, retry
[   85.295478] __nand_correct_data: uncorrectable ECC error
[   85.301000] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:512, read only 64 bytes, retry
[   85.313819] __nand_correct_data: uncorrectable ECC error
[   85.319327] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 292:512, read 64 bytes
[   85.329943] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   85.336419] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   85.345119]         806737e0 02480200 00000200 00000000 87228000 800a982c 00000000 00000001
[   85.353819]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   85.362528]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.371237]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.379927]         ...
[   85.382474] Call Trace:
[   85.385011] [<8006b5a0>] show_stack+0x70/0x8c
[   85.389520] [<80295b58>] ubi_io_read+0x26c/0x310
[   85.394310] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   85.399714] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   85.404504] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   85.409901] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   85.414968] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   85.424573] __nand_correct_data: uncorrectable ECC error
[   85.430086] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:0, read only 64 bytes, retry
[   85.442437] __nand_correct_data: uncorrectable ECC error
[   85.447938] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:0, read only 64 bytes, retry
[   85.460279] __nand_correct_data: uncorrectable ECC error
[   85.465811] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:0, read only 64 bytes, retry
[   85.478147] __nand_correct_data: uncorrectable ECC error
[   85.483672] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:0, read 64 bytes
[   85.494098] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   85.500567] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   85.509266]         806737e0 024a0000 00000000 00000000 87228600 800a982c 00000000 00000001
[   85.517966]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000000 00000000
[   85.526666]         87228600 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.535375]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.544084]         ...
[   85.546622] Call Trace:
[   85.549158] [<8006b5a0>] show_stack+0x70/0x8c
[   85.553682] [<80295b58>] ubi_io_read+0x26c/0x310
[   85.558459] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   85.563786] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   85.568557] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   85.573974] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   85.579029] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   85.588637] __nand_correct_data: uncorrectable ECC error
[   85.594178] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:512, read only 64 bytes, retry
[   85.606999] __nand_correct_data: uncorrectable ECC error
[   85.612520] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:512, read only 64 bytes, retry
[   85.626164] __nand_correct_data: uncorrectable ECC error
[   85.631690] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:512, read only 64 bytes, retry
[   85.644506] __nand_correct_data: uncorrectable ECC error
[   85.650014] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 293:512, read 64 bytes
[   85.660629] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   85.667107] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   85.675815]         806737e0 024a0200 00000200 00000000 87228000 800a982c 00000000 00000001
[   85.684514]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   85.693224]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.701924]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.710614]         ...
[   85.713161] Call Trace:
[   85.715698] [<8006b5a0>] show_stack+0x70/0x8c
[   85.720206] [<80295b58>] ubi_io_read+0x26c/0x310
[   85.724998] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   85.730400] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   85.735192] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   85.740597] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   85.745663] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   85.755270] __nand_correct_data: uncorrectable ECC error
[   85.760808] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:0, read only 64 bytes, retry
[   85.773152] __nand_correct_data: uncorrectable ECC error
[   85.778661] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:0, read only 64 bytes, retry
[   85.791003] __nand_correct_data: uncorrectable ECC error
[   85.796510] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:0, read only 64 bytes, retry
[   85.808848] __nand_correct_data: uncorrectable ECC error
[   85.814376] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:0, read 64 bytes
[   85.824802] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   85.831277] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   85.839971]         806737e0 024c0000 00000000 00000000 87228600 800a982c 00000000 00000001
[   85.848671]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000000 00000000
[   85.857371]         87228600 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.866079]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   85.874780]         ...
[   85.877317] Call Trace:
[   85.879853] [<8006b5a0>] show_stack+0x70/0x8c
[   85.884379] [<80295b58>] ubi_io_read+0x26c/0x310
[   85.889155] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   85.894481] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   85.899252] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   85.904675] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   85.909726] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   85.919393] __nand_correct_data: uncorrectable ECC error
[   85.924936] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:512, read only 64 bytes, retry
[   85.937757] __nand_correct_data: uncorrectable ECC error
[   85.943284] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:512, read only 64 bytes, retry
[   85.956098] __nand_correct_data: uncorrectable ECC error
[   85.961619] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:512, read only 64 bytes, retry
[   85.974440] __nand_correct_data: uncorrectable ECC error
[   85.979947] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 294:512, read 64 bytes
[   85.990562] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   85.997040] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   86.005739]         806737e0 024c0200 00000200 00000000 87228000 800a982c 00000000 00000001
[   86.014439]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   86.023149]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.031858]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.040549]         ...
[   86.043095] Call Trace:
[   86.045632] [<8006b5a0>] show_stack+0x70/0x8c
[   86.050140] [<80295b58>] ubi_io_read+0x26c/0x310
[   86.054932] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   86.060335] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   86.065131] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   86.070531] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   86.075601] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   86.108838] __nand_correct_data: uncorrectable ECC error
[   86.114379] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:0, read only 64 bytes, retry
[   86.126718] __nand_correct_data: uncorrectable ECC error
[   86.132243] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:0, read only 64 bytes, retry
[   86.145396] __nand_correct_data: uncorrectable ECC error
[   86.150922] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:0, read only 64 bytes, retry
[   86.163258] __nand_correct_data: uncorrectable ECC error
[   86.168761] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:0, read 64 bytes
[   86.179199] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   86.185675] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   86.194383]         806737e0 024e0000 00000000 00000000 87228600 800a982c 00000000 00000001
[   86.203083]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000000 00000000
[   86.211792]         87228600 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.220484]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.229183]         ...
[   86.231730] Call Trace:
[   86.234266] [<8006b5a0>] show_stack+0x70/0x8c
[   86.238775] [<80295b58>] ubi_io_read+0x26c/0x310
[   86.243567] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   86.248880] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   86.253671] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   86.259076] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   86.264144] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   86.273752] __nand_correct_data: uncorrectable ECC error
[   86.279262] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:512, read only 64 bytes, retry
[   86.292093] __nand_correct_data: uncorrectable ECC error
[   86.297597] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:512, read only 64 bytes, retry
[   86.310419] __nand_correct_data: uncorrectable ECC error
[   86.315939] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:512, read only 64 bytes, retry
[   86.328757] __nand_correct_data: uncorrectable ECC error
[   86.334280] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 295:512, read 64 bytes
[   86.344885] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   86.351360] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   86.360053]         806737e0 024e0200 00000200 00000000 87228000 800a982c 00000000 00000001
[   86.368753]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   86.377453]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.386163]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.394863]         ...
[   86.397401] Call Trace:
[   86.399937] [<8006b5a0>] show_stack+0x70/0x8c
[   86.404463] [<80295b58>] ubi_io_read+0x26c/0x310
[   86.409238] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   86.414655] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   86.419424] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   86.424842] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   86.429888] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   86.439497] __nand_correct_data: uncorrectable ECC error
[   86.445038] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:0, read only 64 bytes, retry
[   86.457378] __nand_correct_data: uncorrectable ECC error
[   86.462896] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:0, read only 64 bytes, retry
[   86.475236] __nand_correct_data: uncorrectable ECC error
[   86.480740] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:0, read only 64 bytes, retry
[   86.493081] __nand_correct_data: uncorrectable ECC error
[   86.498587] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:0, read 64 bytes
[   86.509024] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   86.515501] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   86.524201]         806737e0 02500000 00000000 00000000 87228600 800a982c 00000000 00000001
[   86.532901]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000000 00000000
[   86.541610]         87228600 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.550301]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.559011]         ...
[   86.561556] Call Trace:
[   86.564093] [<8006b5a0>] show_stack+0x70/0x8c
[   86.568602] [<80295b58>] ubi_io_read+0x26c/0x310
[   86.573395] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   86.578705] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   86.583497] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   86.588894] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   86.593961] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   86.603568] __nand_correct_data: uncorrectable ECC error
[   86.609079] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:512, read only 64 bytes, retry
[   86.621909] __nand_correct_data: uncorrectable ECC error
[   86.627416] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:512, read only 64 bytes, retry
[   86.640241] __nand_correct_data: uncorrectable ECC error
[   86.645767] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:512, read only 64 bytes, retry
[   86.659401] __nand_correct_data: uncorrectable ECC error
[   86.664926] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 296:512, read 64 bytes
[   86.675687] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   86.682176] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   86.690889]         806737e0 02500200 00000200 00000000 87228000 800a982c 00000000 00000001
[   86.699584]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   86.708284]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.716993]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.725702]         ...
[   86.728239] Call Trace:
[   86.730791] [<8006b5a0>] show_stack+0x70/0x8c
[   86.735306] [<80295b58>] ubi_io_read+0x26c/0x310
[   86.740078] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   86.745494] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   86.750273] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   86.755688] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   86.760741] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   86.770362] __nand_correct_data: uncorrectable ECC error
[   86.775906] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:0, read only 64 bytes, retry
[   86.788244] __nand_correct_data: uncorrectable ECC error
[   86.793766] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:0, read only 64 bytes, retry
[   86.806098] __nand_correct_data: uncorrectable ECC error
[   86.811619] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:0, read only 64 bytes, retry
[   86.823958] __nand_correct_data: uncorrectable ECC error
[   86.829464] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:0, read 64 bytes
[   86.839900] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   86.846376] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   86.855076]         806737e0 02520000 00000000 00000000 87228600 800a982c 00000000 00000001
[   86.863776]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000000 00000000
[   86.872485]         87228600 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.881185]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   86.889876]         ...
[   86.892423] Call Trace:
[   86.894959] [<8006b5a0>] show_stack+0x70/0x8c
[   86.899467] [<80295b58>] ubi_io_read+0x26c/0x310
[   86.904258] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   86.909572] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   86.914362] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   86.919760] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   86.924827] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   86.934434] __nand_correct_data: uncorrectable ECC error
[   86.939946] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:512, read only 64 bytes, retry
[   86.952782] __nand_correct_data: uncorrectable ECC error
[   86.958290] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:512, read only 64 bytes, retry
[   86.971120] __nand_correct_data: uncorrectable ECC error
[   86.976623] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:512, read only 64 bytes, retry
[   86.989442] __nand_correct_data: uncorrectable ECC error
[   86.994962] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 297:512, read 64 bytes
[   87.005570] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   87.012045] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   87.020737]         806737e0 02520200 00000200 00000000 87228000 800a982c 00000000 00000001
[   87.029438]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   87.038138]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   87.046847]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   87.055546]         ...
[   87.058083] Call Trace:
[   87.060621] [<8006b5a0>] show_stack+0x70/0x8c
[   87.065146] [<80295b58>] ubi_io_read+0x26c/0x310
[   87.069922] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   87.075338] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   87.080107] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   87.085525] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   87.090572] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   87.100182] __nand_correct_data: uncorrectable ECC error
[   87.105721] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:0, read only 64 bytes, retry
[   87.118061] __nand_correct_data: uncorrectable ECC error
[   87.123585] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:0, read only 64 bytes, retry
[   87.135916] __nand_correct_data: uncorrectable ECC error
[   87.141444] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:0, read only 64 bytes, retry
[   87.154334] __nand_correct_data: uncorrectable ECC error
[   87.159847] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:0, read 64 bytes
[   87.170292] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   87.176771] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   87.185476]         806737e0 02540000 00000000 00000000 87228600 800a982c 00000000 00000001
[   87.194176]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000000 00000000
[   87.202876]         87228600 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   87.211577]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   87.220267]         ...
[   87.222814] Call Trace:
[   87.225350] [<8006b5a0>] show_stack+0x70/0x8c
[   87.229859] [<80295b58>] ubi_io_read+0x26c/0x310
[   87.234649] [<80295ebc>] ubi_io_read_ec_hdr+0x8c/0x1f0
[   87.239962] [<8029adc8>] ubi_attach+0x2f4/0x12fc
[   87.244754] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   87.250151] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   87.255218] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   87.265631] __nand_correct_data: uncorrectable ECC error
[   87.271167] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:512, read only 64 bytes, retry
[   87.283990] __nand_correct_data: uncorrectable ECC error
[   87.289497] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:512, read only 64 bytes, retry
[   87.302319] __nand_correct_data: uncorrectable ECC error
[   87.307829] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:512, read only 64 bytes, retry
[   87.320650] __nand_correct_data: uncorrectable ECC error
[   87.326170] ubi0 error: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 298:512, read 64 bytes
[   87.336776] CPU: 0 PID: 1537 Comm: ubiattach Not tainted 4.9.152 #0
[   87.343253] Stack : 806776a2 00000037 00000000 00000001 87cfa1e4 8044abc7 803faac0 00000601
[   87.351953]         806737e0 02540200 00000200 00000000 87228000 800a982c 00000000 00000001
[   87.360644]         ffffffb3 86cf8000 803fe55c 86ec1c5c 00000000 800d79dc 00000200 00000000
[   87.369344]         87228000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   87.378052]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   87.386762]         ...
[   87.389299] Call Trace:
[   87.391848] [<8006b5a0>] show_stack+0x70/0x8c
[   87.396354] [<80295b58>] ubi_io_read+0x26c/0x310
[   87.401144] [<802960b4>] ubi_io_read_vid_hdr+0x94/0x1f8
[   87.406548] [<8029afc0>] ubi_attach+0x4ec/0x12fc
[   87.411337] [<80290240>] ubi_attach_mtd_dev+0x6ac/0xb10
[   87.416735] [<80290e70>] ctrl_cdev_ioctl+0xfc/0x1c4
[   87.421811] [<8012cbe4>] vfs_ioctl+0x28/0x40
[   88.598149] ubi0: scanning is finished
[   88.602316] ubi0 error: ubi_read_volume_table: the layout volume was not found
[   88.610042] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -22
ubiattach: error!: cannot attach mtd6
           error 22 (Invalid argument)
ubiformat: mtd6 (nand), size 130023424 bytes (124.0 MiB), 992 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseb[   89.535602] __nand_correct_data: uncorrectable ECC error
lock 189 -- 19 %[   89.542665] __nand_correct_data: uncorrectable ECC error
libs[   89.549552] __nand_correct_data: uncorrectable ECC error
can: scanning er[   89.556506] __nand_correct_data: uncorrectable ECC error
libscan: scanning eraseblock[   89.907400] __nand_correct_data: uncorrectable ECC error
 264 -- 26 % com[   89.914439] __nand_correct_data: uncorrectable ECC error
libscan:[   89.921330] __nand_correct_data: uncorrectable ECC error
 scanning eraseb[   89.928239] __nand_correct_data: uncorrectable ECC error
lock 265 -- 26 %[   89.935181] __nand_correct_data: uncorrectable ECC error
libs[   89.942103] __nand_correct_data: uncorrectable ECC error
can: scanning er[   89.948999] __nand_correct_data: uncorrectable ECC error
aseblock 266 -- [   89.955950] __nand_correct_data: uncorrectable ECC error
libscan: scanning eraseblock[   89.970259] __nand_correct_data: uncorrectable ECC error
 268 -- 27 % com[   89.976984] __nand_correct_data: uncorrectable ECC error
libscan:[   89.983913] __nand_correct_data: uncorrectable ECC error
 scanning eraseb[   89.990807] __nand_correct_data: uncorrectable ECC error
lock 269 -- 27 %[   89.997724] __nand_correct_data: uncorrectable ECC error
libs[   90.004665] __nand_correct_data: uncorrectable ECC error
can: scanning er[   90.011585] __nand_correct_data: uncorrectable ECC error
aseblock 270 -- [   90.018484] __nand_correct_data: uncorrectable ECC error
[   90.025468] __nand_correct_data: uncorrectable ECC error
libscan: scannin[   90.032360] __nand_correct_data: uncorrectable ECC error
g eraseblock 271[   90.039258] __nand_correct_data: uncorrectable ECC error
 -- 27 % complet[   90.046206] __nand_correct_data: uncorrectable ECC error
libscan: sca[   90.053125] __nand_correct_data: uncorrectable ECC error
nning eraseblock[   90.060022] __nand_correct_data: uncorrectable ECC error
 272 -- 27 % com[   90.066974] __nand_correct_data: uncorrectable ECC error
libs[   90.078456] __nand_correct_data: uncorrectable ECC error
can: scanning er[   90.085151] __nand_correct_data: uncorrectable ECC error
aseblock 274 -- [   90.092067] __nand_correct_data: uncorrectable ECC error
libscan: scanning eraseblock 991 -- 100 % complete  
ubiformat: 962 eraseblocks have valid erase counter, mean value is 1
ubiformat: warning!: 30 of 992 eraseblocks contain non-UBI data
ubiformat: forma[   98.350971] ubi0: attaching mtd6te  
ubiformat: formatting eraseblock 991 -- 100 % complete  
[  100.023427] ubi0: scanning is finished
[  100.044953] ubi0: attached mtd6 (name "ubi", size 124 MiB)
[  100.050627] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[  100.057766] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[  100.064694] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[  100.071706] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[  100.077908] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[  100.085385] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 2013996895
[  100.094831] ubi0: available PEBs: 968, total reserved PEBs: 24, PEBs reserved for bad PEB handling: 20
[  100.108973] ubi0: background thread "ubi_bgt0d" started, PID 1547
UBI device number 0, total 992 LEBs (127991808 bytes, 122.0 MiB), available 968 LEBs (124895232 bytes, 119.1 MiB), LEB size 129024 bytes (126.0 KiB)
Volume ID 0, size 12 LEBs (1548288 bytes, 1.4 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "none", alignment 1
Volume ID 1, size 16 LEBs (2064384 bytes, 1.9 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 121282560
Volume ID 2, size 940 LEBs (121282560 bytes, 115.6 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[  101.883748] reboot: Restarting system
`Preformatted text`

@PisemNet Please use "Preformatted text </>" for logs, scripts, configs and general console output.
grafik

Please edit your posting accordingly.

Thanks.

to: rsnel: mate I have same problem (lot of ECC errors):

ubi0 warning: 0x802a2c80: error -77 (ECC error) while reading 64 bytes from PEB 311:512, read only 64 bytes, retry

any chance you would you be so kind and share that image you compiled? I'm a bit low on skills with compiling :smile:

Hi,

I have some images available at:

https://penta.snel.it/~rsnel/mikrotik/

Greetings,

Rik.

1 Like

Sweet, its working :), now gonna add the rest packages...
Thanks much :slight_smile:

1 Like

Here is a patch to fix this issue in the current snapshots. Porting the patch was easy, since the snapshots are based on linux kernel 4.14.x.

https://penta.snel.it/~rsnel/mikrotik/0001-mtd-samsung-Disable-subpage-writes-on-E-die-NAND.patch

Note that, before I could sysupgrade, I had to change te contents of /tmp/sysinfo/boardname from unknown to rb-2011uias-2hnd.

fyi,
I pushed a fix today for Mikrotik board detection.

It think this issue will be addressed by it.

There is also a patch in 19.07 which addresses the NAND issue, but I didn't push it to master as it was flagged as source-only

Regards,

Koen

3 Likes

Hi Koen,

Thanks for your response. The patch from 19.07 disables subpage writes for all chips, while 'my' patch only disables subpage writes for affected chips (but the penalty for unaffected devices is very small). I'm looking forward to the new release.

Greetings,

Rik.

@rsnel, I've installed the openwrt 19 from your images here (the 18 version doesn't work here).
Everything is going fine so far, however I'm having a hard time here with OpenVPN (kmod-tun package).
The installed version of package *kernel* is not compatible, require 4.14.125-1-a97bc8b3ā€¦ while 4.14.136-1-6111847dā€¦ is installed.

Any advice? I'm only running OpenWRT on this device because of some OpenVPN functionalities.

I've tried running sysupgrade -n inside it, to the 18.06.4 image, but it doesn't work, the router keeps getting kernel panic and rebooting.

Thanks,
Marcelo

Hi Marcelo,

Ik have added kmod-tun to my build. Please try to install:

https://penta.snel.it/~rsnel/mikrotik/pre-19.x-kernel-4.14/kmod-tun_4.14.136-1_mips_24kc.ipk

Note that current git master does not need additional patches anymore. The maintainer added the ECC fix! So you can build your own images following this guide:

https://openwrt.org/docs/guide-developer/quickstart-build-images

Greetings,

Rik.

@rsnel, thanks for sharing. If you don't mind, I wanted to ask a few more questions before proceeding as I think I need to decide wether to compile my own version or not.

1 - What is the difference between your pre-18 and your pre-19? I am trying to figure here, why your pre-19 works and why your pre-18 doesn't work. Objective here is to understand if a custom built one at home from git master will work on my device.

2 - The problem that I see in keeping using your pre-19, is that if I need more kernel drivers, I'm screewed and will need to keep bothering you to provide me the packages. If I build my own custom from the git master, will it be able to use packages for kernel drivers from OpenWRT archives/downloads, or will I have to maintain a local repository with those packages? By following the link you've pointed on building the image, will I have all the packages for the modules built? I don't see any mention on the ipks generated... only elf and sysupgrade-bin.

3 - Can you share your config file for pre-19 so that I can use it on git master to build my image? This way I am trying to prevent any possible issues with my configuration once I am sure your pre-19 works. Will this config work on the git master?

Thanks, and sorry for 2 thousand questions.
Marcelo

Hi Marcelo,

  1. pre-0.18 is git master from about a year ago (when I started this topic), it has kernel boot parameters to make it work on my router, I don't know why it wouldn't work on your device, I used it for a year

  2. yes, ipk's will also be generated, mine appear in /targets/ar71xx/mikrotik/packages

  3. I have published the configfile I used at https://penta.snel.it/~rsnel/mikrotik/pre-19.x-kernel-4.14/dotconfig

I hope openwrt will start publishing official images for our hardware again (the images from june dont have the ECC fix)

Greetings,

Rik.

I will try to build it here... will let you know... I think I got some ideas.

actually, I was on Breaking Barrier before, and it had to be custom built also, because of the 0x600000 patch...

@rsnel

Hi Rik,

At the core of this issue, you are absolutely correct.
The problem is that Mikrotik has the habit to use other chips suddenly withour prior notice or even detectable in a product version string or so.

So your fix is spot-on today .. but could cause issues on another identical device (but with another flash chip) tomorrow.

Hence the choice for the bazooka-fix. :slight_smile:

Regards,

Koen

1 Like