[PATCH v2 0/3] mikrotik: make soft_config partition writable

Oskari Lemmela oskari at lemmela.net
Tue Jan 4 11:41:23 PST 2022


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 in all
targets with mikrotik devices.

In some of mikrotik devices parent mtd device is read-only.
It makes soft_config read-only, so changing it to writable.

v2 changes:
  - Collect Tested-by tags
  - Reword commit messages

Oskari Lemmela (3):
  generic: platform/mikrotik: allow soft_config writes without 4k
    sectors
  mikrotik: add support for mtd erase of varying sizes
  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