ath79: mikrotik: set compat version for NAND devices
authorRobert Marko <robimarko@gmail.com>
Wed, 19 Jun 2024 10:15:16 +0000 (12:15 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 19 Jun 2024 10:26:19 +0000 (12:26 +0200)
commit070b87e7ac48c8fcb48f7275658ccb9b5affc123
tree4888bcc8a6cd6efb9bc8c2f684e65c04306b6757
parentc24c3da00b2741b60a800891e1006fde3d9f76ae
ath79: mikrotik: set compat version for NAND devices

Currently, trying to upgrade on a MikroTik NAND device will force you to
use sysupgrade -n due to:
upgrade: The device is supported, but the config is incompatible to the new image (1.0->1.1). Please upgrade without keeping config (sysupgrade -n).
upgrade: NAND images switched to yafut. If running older image, reinstall from initramfs.

So instead of having users manually set the new compat version lets do
what other targets do and set it for all NAND devices after good boot.

Link: https://github.com/openwrt/openwrt/pull/15754
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/mikrotik/base-files/etc/board.d/05_compat-version [new file with mode: 0644]