aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
authorLech Perczak <lech.perczak@gmail.com>2023-05-02 00:51:49 +0200
committerChristian Lamparter <chunkeey@gmail.com>2023-05-14 00:08:35 +0200
commit4f1b2cee3e6795d595ebfe201e0926456783c676 (patch)
treebd0078bac7a930c7cc5593703bc0f43938aac895 /target/linux/ath79
parent8125729c7cf4e56b214d5ffa797040c47f451a87 (diff)
downloadupstream-4f1b2cee3e6795d595ebfe201e0926456783c676.tar.gz
upstream-4f1b2cee3e6795d595ebfe201e0926456783c676.tar.bz2
upstream-4f1b2cee3e6795d595ebfe201e0926456783c676.zip
ath79: set 2048B ECC size for Mikrotik boards using soft ECC
Two Mikrotik board families (SXT 5nD R2 and Routerboard 92x are using software ECC on NAND. Some of them use chips capable of subpage write, others do not - within the same family, and a common block size is required for UBI, to avoid mounting errors. Set the ECC step size explicitly for them to 2048B, so UBI can mount existing volumes without problems, at the same time allowing to unlocking subpage write functionality, reuqired for Meraki MR18. Fixes: 6561ca1fa51 ("ath79: ar934x: fix mounting issues if subpage is not supported") Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Diffstat (limited to 'target/linux/ath79')
-rw-r--r--target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd-r2.dts1
-rw-r--r--target/linux/ath79/dts/qca9558_mikrotik_routerboard-92x.dtsi1
2 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd-r2.dts b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd-r2.dts
index c8b1183d70..a448532034 100644
--- a/target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd-r2.dts
+++ b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd-r2.dts
@@ -87,6 +87,7 @@
status = "okay";
nand-ecc-mode = "soft";
+ nand-ecc-step-size = <2048>;
qca,nand-swap-dma;
qca,nand-scan-fixup;
diff --git a/target/linux/ath79/dts/qca9558_mikrotik_routerboard-92x.dtsi b/target/linux/ath79/dts/qca9558_mikrotik_routerboard-92x.dtsi
index 7b7e3a65f8..d668259b1b 100644
--- a/target/linux/ath79/dts/qca9558_mikrotik_routerboard-92x.dtsi
+++ b/target/linux/ath79/dts/qca9558_mikrotik_routerboard-92x.dtsi
@@ -150,6 +150,7 @@
status = "okay";
nand-ecc-mode = "soft";
+ nand-ecc-step-size = <2048>;
qca,nand-swap-dma;
qca,nand-scan-fixup;