openwrt/target/linux
Koen Vandeputte 6561ca1fa5 ath79: ar934x: fix mounting issues if subpage is not supported
Currently, the option to disable subpage writing is only set
when a HW ECC engine is used.

Some boards lack a HW ECC engine and use software for that.
In this case, this NAND option does not get set when the NAND chip
does not support it, resulting in mounting errors.

Move the setting of this option to a generic init location so it
gets set for all types where required.

While at it, also OR the option instead of just setting it
so we don't overwrite potential flags being set somewhere else.

Before:

[    1.681273] UBI: auto-attach mtd2
[    1.684669] ubi0: attaching mtd2
[    1.688877] ubi0 error: validate_ec_hdr: bad VID header offset 2048, expected 512
[    1.696469] ubi0 error: validate_ec_hdr: bad EC header
[    1.701712] Erase counter header dump:
[    1.705512]  magic          0x55424923
[    1.709322]  version        1
[    1.712330]  ec             1
[    1.715331]  vid_hdr_offset 2048
[    1.718610]  data_offset    4096
[    1.721880]  image_seq      1462320675
[    1.725680]  hdr_crc        0x12255a15

After:

    1.680917] UBI: auto-attach mtd2
[    1.684308] ubi0: attaching mtd2
[    2.954504] random: crng init done
[    3.142813] ubi0: scanning is finished
[    3.163455] ubi0: attached mtd2 (name "ubi", size 124 MiB)
[    3.169069] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.176037] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.182942] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.190013] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[    3.196102] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    3.203434] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1462320675
[    3.212700] ubi0: available PEBs: 0, total reserved PEBs: 992, PEBs reserved for bad PEB handling: 20
[    3.222124] ubi0: background thread "ubi_bgt0d" started, PID 317
[    3.230246] block ubiblock0_1: created from ubi0:1(rootfs)
[    3.235819] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    3.256830] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2021-06-21 10:48:27 +02:00
..
apm821xx apm821xx: move CONFIG_REGULATOR to target config 2021-06-13 11:32:49 +02:00
arc770 treewide: do not quote compatible in shell scripts 2021-06-06 19:17:47 +02:00
archs38 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
at91 kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
ath79 ath79: ar934x: fix mounting issues if subpage is not supported 2021-06-21 10:48:27 +02:00
bcm27xx kernel: bump 5.4 to 5.4.121 2021-05-23 15:09:06 +02:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-12 21:09:11 +01:00
bcm53xx kernel: bump 5.4 to 5.4.118 2021-05-23 15:09:06 +02:00
bcm63xx bcm63xx: drop USB LEDs for Technicolor TG582N / ADB P.DG A4001N 2021-06-05 23:39:14 +02:00
bcm4908 bcm4908: add kmod-gpio-button-hotplug 2021-06-21 09:12:59 +02:00
bmips bmips: remove duplicated brcmnand patch 2021-05-17 12:25:34 +02:00
gemini base-files: generate network config with "device" options 2021-05-27 10:58:49 +02:00
generic kernel: disable CONFIG_PCIE_BUS_PERFORMANCE 2021-06-18 14:33:30 +02:00
imx6 imx6: image: drop BOOT_SCRIPT and fix DEVICE_NAME 2021-05-26 14:12:46 +02:00
ipq40xx ipq40xx: add uboot-envtools to default packages 2021-06-06 00:26:13 +02:00
ipq806x ipq806x: fix LAN and WAN port assignments on TP-Link AD7200 2021-06-06 00:26:13 +02:00
ipq807x treewide: remove redundant ubifs kconfig symbols 2021-04-21 10:31:07 +01:00
kirkwood treewide: do not quote compatible in shell scripts 2021-06-06 19:17:47 +02:00
lantiq treewide: remove "+" sign for increment with macaddr_add 2021-06-05 23:54:37 +02:00
layerscape generic: backport at803x fixes 2021-06-08 00:38:28 +02:00
malta treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mediatek kernel: bump 5.4 to 5.4.124 2021-06-06 00:25:25 +02:00
mpc85xx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mvebu mvebu: armada-37xx: remove ethernet alias patch 2021-06-06 00:26:13 +02:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
octeon octeon: use shared function for platform_copy_config() 2021-05-17 01:01:32 +02:00
octeontx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
omap kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
oxnas treewide: remove redundant ubifs kconfig symbols 2021-04-21 10:31:07 +01:00
pistachio treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ramips ramips: clean up dlink_dir-8xx-r1 recipe 2021-06-20 17:29:52 +02:00
realtek base-files: generate network config with "device" options 2021-05-27 10:58:49 +02:00
rockchip kernel: bump 5.10 to 5.10.43 2021-06-14 01:36:36 +02:00
sunxi linux-firmware: update to version 20210315 and trim down broadcom FW 2021-06-06 00:26:13 +02:00
tegra kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
uml treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
x86 x86: add upgrade support to diag.sh 2021-06-10 10:34:44 +02:00
zynq kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00