How I understand it, is that /etc/config/system only contains a line for option compat_version if it's 1.1 or higher. If your device is 1.0 that line isn't there.
So I had an old backup from before the target went to 1.1 (the switch to DSA) that I partially restored, which removed option compat_version '1.1'.
Ok I fugured it up.
You can't just download the files. Best option is git clone the files, and then execute the first file.
Everything is working fine.
My ER-X have 24.10.rc2
Fri Jan 31 17:29:21 CET 2025 upgrade: The device is supported, but this image is incompatible for sysupgrade based on the image version (1.1->2.0).
Fri Jan 31 17:29:21 CET 2025 upgrade: Partition table has been changed due to kernel size restrictions. Refer to the wiki page for instructions to migrate to the new layout: https://openwrt.org/toh/ubiquiti/edgerouter_x_er-x_ka
Image check failed.
First of all: Thank you very much for all the effort. Very happy with the result.
So I used the migration script, and all seems to have gone well, however there were some things unclear:
Out of precaution I rebooted the ERX, just in case. That might be good advice for others.
I executed this to get scripts to ERX, maybe its useful to decrease migration steps.
urls='
https://raw.githubusercontent.com/darkxst/erx-migration/refs/heads/main/ubnt_erx_migrate.sh
https://raw.githubusercontent.com/darkxst/erx-migration/refs/heads/main/ubnt_erx_stage2.sh
'
cd /tmp
for url in $urls;do
wget "$url" -O "/tmp/${url##*/}"
chmod +x "/tmp/${url##*/}"
done
Did I have to chmod +x ubnt_erx_stage2.sh too ?
Check that the comat version is set to 2: uci get system.@system[0].compat_version
Apart from the typo ^ I was unsure if 2 meant 2.0. So did a cat /proc/mtd to see if it had worked.
A restore from backup set it back to 1.1, and I followed the rest of https://github.com/darkxst/erx-migration. Assuming this was the reason to check and modify compat ?
# uci get system.@system[0].compat_version
1.1
# uci set system.@system[0].compat_version=2.0
# uci commit
# uci get system.@system[0].compat_version
2.0
I made another backup after this, and deleted old backup as compat was not set in it.