I compiled openwrt for a new device and the initramfs is booted successfully all functions is working properly but when I try to install permanently flashing factory file on the nand flash I get ( uncorrectable ECC error) the nand flash is ( hynix H27U518S2CT ) ( nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16 )
when I reflash the device by the original image the device boot normally so the nand flash is in good condition , I think the problem with the nand driver specially ( subpages ecc corrections )
I also tried ( nand-ecc-mode = "soft") option in my dts file got also error.
any advice will be appreciated
thanks .
here is my log
[ 0.439753] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x76
[ 0.446266] nand: Hynix NAND 64MiB 3,3V 8-bit
[ 0.450713] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[ 0.458318] Scanning device for bad blocks
[ 0.494709] random: fast init done
[ 0.680229] random: crng init done
[ 0.704264] Bad eraseblock 3674 at 0x000003968000
[ 0.732519] 2 fixed-partitions partitions found on MTD device ar934x-nand
[ 0.739435] Creating 2 MTD partitions on "ar934x-nand":
[ 0.744771] 0x000000000000-0x000000400000 : "kernel"
[ 0.750947] 0x000000400000-0x000001400000 : "rootfs"
[ 0.757593] mtd: device 11 (rootfs) set to be root filesystem
[ 0.765165] __nand_correct_data: uncorrectable ECC error
[ 0.770619] mtdsplit: error occured while reading from "rootfs"
[ 0.777709] libphy: Fixed MDIO Bus: probed
[ 1.101936] libphy: ag71xx_mdio: probed
[ 1.107224] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 1.117093] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[ 1.126041] NET: Registered protocol family 10
[ 1.136461] Segment Routing with IPv6
[ 1.140393] NET: Registered protocol family 17
[ 1.145040] 8021q: 802.1Q VLAN Support v1.8
[ 1.152768] PCI host bridge /ahb/pcie-controller@180c0000 ranges:
[ 1.159036] MEM 0x0000000010000000..0x0000000013ffffff
[ 1.164371] IO 0x0000000000000000..0x0000000000000000
[ 1.169911] PCI host bridge to bus 0000:00
[ 1.174127] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 1.181131] pci_bus 0000:00: root bus resource [io 0x0000]
[ 1.186805] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.193715] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.203557] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 1.211055] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 1.221565] __nand_correct_data: uncorrectable ECC error
[ 1.227030] print_req_error: I/O error, dev mtdblock11, sector 0
[ 1.233196] SQUASHFS error: squashfs_read_data failed to read block 0x0
[ 1.239963] squashfs: SQUASHFS error: unable to read squashfs_super_block
^[[ 1.247201] VFS: Cannot open root device "(null)" or unknown-block(31,11): error -5
[ 1.255020] Please append a correct "root=" boot option; here are the available partitions:
[ 1.263520] 1f00 256 mtdblock0
[ 1.263524] (driver?)
[ 1.270190] 1f01 64 mtdblock1
[ 1.270193] (driver?)
[ 1.276861] 1f02 64 mtdblock2
[ 1.276864] (driver?)
[ 1.283552] 1f03 64 mtdblock3
[ 1.283555] (driver?)
[ 1.290229] 1f04 64 mtdblock4
[ 1.290232] (driver?)
[ 1.296899] 1f06 1 mtdblock6
[ 1.296901] (driver?)
[ 1.303554] 1f07 2 mtdblock7
[ 1.303557] (driver?)
[ 1.310222] 1f08 64 mtdblock8
[ 1.310225] (driver?)
[ 1.316892] 1f09 64 mtdblock9
[ 1.316895] (driver?)
[ 1.323567] 1f0a 4096 mtdblock10
[ 1.323570] (driver?)
[ 1.330329] 1f0b 16384 mtdblock11
[ 1.330332] (driver?)
[ 1.337084] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,11)
[ 1.346825] Rebooting in 1 seconds..