ath79-tiny: enable 4k sectors
authorPaul Fertser <fercerpav@gmail.com>
Tue, 26 Nov 2019 13:01:11 +0000 (16:01 +0300)
committerPetr Štetiar <ynezz@true.cz>
Thu, 19 Dec 2019 21:41:57 +0000 (22:41 +0100)
This enables using 4kiB sectors as erase blocks for 4MiB NOR flash ICs
that support it.

Writeable jffs2 overlay used to store settings requires a partition with
at least 5 erase blocks, so using small sectors is essential for devices
with 4MiB flash.

Sysupgrading a device running firmware without this feature will likely
not allow to preserve configs automatically but since ath79 is
considered to be in a "technology preview" state it shouldn't be a
problem.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
target/linux/ath79/tiny/config-default

index 90cd5534c796d74c9bb059b5bf07216a3beeec09..9b845abbff77de3538adc71af04055c855ed7030 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_LEDS_RESET=y
+CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
 CONFIG_NET_DSA=y
 CONFIG_NET_DSA_MV88E6060=y
 CONFIG_NET_DSA_TAG_TRAILER=y