openwrtv3/target/linux
Fabio Bettoni ddc11c3932 ar71xx/ath79: fix mtd corruption
In commit fec8fe8069 ("kernel: bump 4.9 to 4.9.116") [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.

While at it, also apply the same fix for target ath79,
which suffers the same issue.

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: fec8fe8069 ("kernel: bump 4.9 to 4.9.116")
Signed-off-by: Fabio Bettoni <fbettoni@gmail.com>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2018-10-17 18:55:37 +02:00
..
adm5120 kernel: bump 3.18 to 3.18.123 2018-09-26 15:54:18 +02:00
adm8668 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
apm821xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
ar7 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
ar71xx ar71xx/ath79: fix mtd corruption 2018-10-17 18:55:37 +02:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
at91 kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
ath25 ath25: drop 4.9 kernel support 2018-05-22 07:20:13 +02:00
ath79 ar71xx/ath79: fix mtd corruption 2018-10-17 18:55:37 +02:00
au1000 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
bcm53xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
brcm47xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
brcm63xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
brcm2708 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
cns3xxx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
gemini kernel: remove DEVMEM and DEVKMEM from target's config 2018-07-07 18:19:39 +02:00
generic kernel: bump 4.14 to 4.14.76 2018-10-16 10:08:56 +02:00
imx6 imx6: use BUILD_DEVICES in uboot-imx6 for mx6cuboxi 2018-09-05 10:00:01 +02:00
ipq40xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
ipq806x treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
ixp4xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
kirkwood treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
lantiq treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
layerscape kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
malta treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
mcs814x kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
mediatek treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
mpc85xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
mvebu treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
mxs kernel: bump 4.14 to 4.14.75 2018-10-10 14:45:11 +02:00
octeon octeon: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
octeontx kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
omap treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 2018-01-15 13:13:34 +01:00
orion treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
oxnas kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
pistachio kernel: bump 4.14 to 4.14.70 2018-09-17 15:47:44 +02:00
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
rb532 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
samsung kernel: add CONFIG_CC_OPTIMIZE_FOR_* to the default config 2018-10-15 12:54:00 +02:00
sunxi treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
uml treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
x86 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
xburst kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
zynq zynq: kernel: select FPGA-related configs 2018-09-22 21:20:55 +02:00
Makefile