[PATCH 0/3] mikrotik: make soft_config partition writable
Oskari Lemmela
oskari at lemmela.net
Mon Dec 20 23:45:58 PST 2021
In order to change boot loader variables in small soft_config partition
SPI NOR need to support erasing 4k blocks.
Adding support for variable size erase blocks and enable it to all
targets which has mikrotik devices.
In some of mikrotik devices parent mtd device is read-only.
It makes soft_config read-only, so changing it to writable.
Variable size erase blocks could be used to replace
MTD_SPI_NOR_USE_4K_SECTORS_LIMIT patch too.
Oskari Lemmela (3):
generic: platform/mikrotik: make soft_config writable without 4K
sectors
mikrotik: enable variable size erase
mikrotik: make soft_config writable
.../ar9344_mikrotik_routerboard-sxt-5n.dtsi | 1 -
.../dts/qca9533_mikrotik_routerboard-16m.dtsi | 1 -
...6_mikrotik_routerboard-wap-g-5hact2hnd.dts | 1 -
target/linux/ath79/mikrotik/config-default | 1 +
target/linux/generic/config-5.10 | 1 +
.../drivers/platform/mikrotik/rb_softconfig.c | 17 +-
...support-for-minor-aligned-partitions.patch | 397 ++++++++++++++++++
target/linux/ipq40xx/mikrotik/config-default | 1 +
target/linux/ramips/dts/mt7621_mikrotik.dtsi | 1 -
target/linux/ramips/mt7621/config-5.10 | 1 +
10 files changed, 404 insertions(+), 18 deletions(-)
create mode 100644 target/linux/generic/pending-5.10/402-mtd-spi-nor-write-support-for-minor-aligned-partitions.patch
--
2.25.1
More information about the openwrt-devel
mailing list