qoriq: set compat_version in board.d
authorRussell Senior <russell@personaltelco.net>
Fri, 1 Dec 2023 21:48:55 +0000 (13:48 -0800)
committerStijn Tintel <stijn@linux-ipv6.be>
Sat, 2 Dec 2023 12:06:41 +0000 (14:06 +0200)
commitc342bdca878837ba02ed09eba7fbe3175e3a3b87
tree75b38ccd43b8ad208da398eddc5d4881b616469c
parent4b4c940fbc8f87b67c6b8c5cca035cfb88478af5
qoriq: set compat_version in board.d

Currently, sysupgrade without the -n option complains:

  # sysupgrade -v tmp/openwrt-qoriq-generic-watchguard_firebox-m300-squashfs-sysupgrade.img.gz
  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: Kernel switched to FIT uImage. Update U-Boot environment.
  upgrade: Reading partition table from bootdisk...
  upgrade: Extract boot sector from the image
  upgrade: Reading partition table from image...
  Image check failed.

So, add the missing 05_compat-version to /etc/board.d/ to allow
sysupgrade to save config without using -f.

Fixes: c4b499bc03ab ("qoriq: use FIT uImage for Firebox M300 kernel")
Signed-off-by: Russell Senior <russell@personaltelco.net>
[drop invalid copyright header, add SPDX license header, shorten commit
subject, add fixes tag]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/qoriq/base-files/etc/board.d/05_compat-version [new file with mode: 0644]