openwrt/target/linux
Fabio Bettoni 486dc7583d ar71xx: fix mtd corruption
In commit 9e1530b2a3 ("kernel: bump 4.9 to 4.9.117 for 18.06") [1], the following patch for removed:
- 403-mtd_fix_cfi_cmdset_0002_status_check.patch

This patch contained fixes for both write and erase functions.

While the chip-detects for erase got fixed upstream [2],
some modifications are still required, even with the fixes applied.

Not doing so results in following errors seen:

Collected errors:
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/luci-lib-ip.list: I/O error.
 * opkg_install_pkg: Failed to extract data files for luci-lib-ip. Package debris may remain!
 * opkg_install_cmd: Cannot install package luci-ssl.
 * opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: I/O error.

[    0.780920] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    8.406396] jffs2: notice: (415) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.423476] mount_root: switching to jffs2 overlay
[  270.902671] jffs2: Write of 1989 bytes at 0x005ce6f8 failed. returned -5, retlen 962
[  270.931965] jffs2: Write of 1989 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.939631] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero
[  270.950397] jffs2: Write of 68 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.957838] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero
[  270.968584] jffs2: Write of 68 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.976027] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero
[  270.986735] jffs2: Write of 68 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.994225] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero

[1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=fec8fe806963c96a6506c2aebc3572d3a11f285f
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.9.133&id=a0239d83e1cb60de5e78452d4708c083b9e3dcbe

Fixes: 9e1530b2a3 ("kernel: bump 4.9 to 4.9.117 for 18.06")
Signed-off-by: Fabio Bettoni <fbettoni@gmail.com>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2018-10-17 18:56:56 +02:00
..
apm821xx kernel: bump 4.14 to 4.14.76 2018-10-15 16:54:30 +02:00
ar7 kernel: remove linux 3.18 support 2018-08-08 09:54:51 +02:00
ar71xx ar71xx: fix mtd corruption 2018-10-17 18:56:56 +02:00
arc770 arc770: remove source-only 2018-05-24 17:24:30 +02:00
archs38 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
armvirt kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
at91 kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
ath25 ath25: Do not build images for ubnt2 and ubnt5 2018-08-12 11:32:57 +02:00
bcm53xx kernel: bump 4.14 to 4.14.72 2018-09-26 15:55:23 +02:00
brcm47xx kernel: bump 4.14 to 4.14.71 2018-09-21 13:23:59 +02:00
brcm63xx kernel: bump 4.14 to 4.14.60 for 18.06 2018-08-06 07:30:41 +02:00
brcm2708 kernel: bump 4.9 to 4.9.133 2018-10-15 16:54:30 +02:00
cns3xxx kernel: bump 4.14 to 4.14.67 2018-08-28 23:06:48 +02:00
gemini kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
generic kernel: bump 4.14 to 4.14.76 2018-10-15 16:54:30 +02:00
imx6 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
ipq40xx kernel: bump 4.14 to 4.14.72 2018-09-26 15:55:23 +02:00
ipq806x kernel: bump 4.14 to 4.14.75 2018-10-10 14:46:25 +02:00
ixp4xx kernel: bump 4.9 to 4.9.127 for 18.06 2018-09-17 15:47:44 +02:00
kirkwood kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
lantiq kernel: bump 4.14 to 4.14.75 2018-10-10 14:46:25 +02:00
layerscape kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
malta malta: bump tp v4.14 2018-01-09 10:26:16 +01:00
mediatek kernel: bump 4.14 to 4.14.76 2018-10-15 16:54:30 +02:00
mpc85xx mpc85xx: add migration script for TP-Link TL-WDR4900 v1 WLAN PCI paths 2018-09-04 21:28:52 +02:00
mvebu kerneL: bump 4.14 to 4.14.73 2018-10-02 13:44:45 +02:00
mxs kernel: bump 4.14 to 4.14.75 2018-10-10 14:46:25 +02:00
octeon kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
octeontx kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
omap kernel: enable EXPORTFS by default 2018-05-24 17:24:31 +02:00
orion orion: remove linux 4.4 support 2018-04-19 14:38:57 +02:00
oxnas kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
pistachio kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
ramips kernel: bump 4.14 to 4.14.75 2018-10-10 14:46:25 +02:00
rb532 treewide: move nand_do_upgrade call to platform_do_upgrade 2018-02-16 14:44:02 +01:00
sunxi kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
uml kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
x86 kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
Makefile