Same issue with both openwrt factory & sysupgrade files.
Trying to do sysupgrade. Get warnings below... Had same prob before, just needed change v1 to v2, easy & fast. all red warnings disappeared instantly!
I dont remember which file i modified last time to make that change...((((
LUCI:
trying to upgrade router image..netgear nighthawk x4s d7800.. the image is the correct one but getting error message that it is incompatible basedbon image version (1.0>2.0). i have to go into nano file & change 1 to 2. i have done it before. but what nano file? also says 'sysupgrade does not work due to rootfs ubi partition size change'...' the device is supported nut this image is incompatible for sysupgrade based on image version (1.0 > 2.0)..
Sysupgrading from which version to which version?
Unless you have some corruption or have otherwise manually altered the system compatibility version, this should not need to be touched.
This warning is telling you that you might need to do a full factory flash again due to a major underlying change.
Making the warning “go away” by messing with the version variables is a recipe for disaster…
There is also the possibility that you have already done the proper upgrade with a factory image earlier, causing the compat_version setting to be bumped to 2.0 required by the newer partition structure, but you have then restored your old settings, and the old value (1.0) of compat_version option in /etc/config/system has been restored along the other settings. That may cause you a bogus warning. (which I have got e.g. with E8450/RT3200: Belkin RT3200/Linksys E8450 WiFi AX discussion - #4317 by hnyman)
Note that the D7800 change has been done in 2022, and is present in 22.03, 23.05, 24.10 and development master.
You should have encountered the "bogus value" problem only if you have restored a really old backup. Or have manually screwed the /etc/config/system config file.
So, the key question is still: from which version you are upgrading to which? And have you restored ancient backups or modified the /etc/config/system otherwise?
hello. this is a different computer, so the value was never touched here. i am using the latest sysupgrade available on openwrt, fresh download.
no, i have not modified file, actually, it doesnt exist...
sudo nano /etc/config/system.
sudo cat /etc/config/system.
"no such file or directory".
I checked old computer where i had same problem before. but command also yields "no such file directory".
maybe i reinstalled os on old computer...dont recall.
The message provided by sysupgrade is correct and very intentional, you need to proceed accordingly. There is no bug- or need to change here, nor a requirement for manual compat version bumping.
Simply, had same issue a few months ago. Went into an unknown file, changed the 1 to 2, the sysupgrade & factory image uploads in admin worked perfectly - all warnings gone by modifying the 1 file...1 #.
nothing else i can add.
Dont know what file is related to the warnings in orig post above.
Such a simple fix...if can deterrmine which file.
No need to make it more complicated than it is, truly.
but to a different comp than the comp used last time where had exact same issue.
I'm guessing the "/etc" file, if it was an "/etc" file, is saved on my comp, not in openwrt admin....I'm a beginner... meaning using a different lap would be significant.
Edit it directly in the router's file system, from the SSH console/terminal, text editor...
(and no 'sudo', as you have been told already)
The whole discussion is weird, as you seemed to start semi-knowledgeable, mentioning nano etc. But then it has converted to strange questions from you, and so far you have not answered the basic question that which OpenWrt version you are currently running and to which one you are trying to upgrade. That has impact on editing the value, i.e. what is the correct value and should you edit it at all...
PS.
Also the "recovery mode" sounds peculiar. Not quite sure what you mean by that. To my knowledge there is no special recovery mode for D7800 (or R7800), but I have only used R7800, so no on-hand experience from D7800.
Never force-upgrade, unless you really know what you're doing, have cross-checked everything (including the correct image file/ sha256sum and upgrade procedure) three times, fully understand each step and are well-rested, not in a hurry and not intoxicated.
Force-upgrading is not a normal approach, but it is sometimes necessary - it happens, rarely, but eventually. Sysupgrade and the compat message should already give you a first hint about it, then it's time to step back and to inform yourself, thoroughly, first - before anything else.
ar71xx --> ath79 was such an instance, migrations from swconfig --> DSA, requirements to manually change (u-)boot commands (read a larger area for the kernel), mtd --> ubi/ changing ECC methods (e8540/ rt3200 comes to mind), image meta-data, …
So yes, there are several instance where force-upgrading is required. But there is a higher risk involved, with force-upgrading all normal security mechanisms are ignored, force-upgrade will happily flash your Bob Marley CD, kill the router and fail with -ENOSPACE, so double-, triple- quadruple check what you need to do, exactly.
Still unsure what you are exactly doing...
But still,
if you are using the OEM TFTP recovery flash mode, (which is the only recovery mode for D7800 & R7800 that I know), just flash the OpenWrt factory image and be happy. No need to touch the compat_version variable in /etc/config/system, as it is set by the new firmware.
If you restore config from an older backup after flashing a new firmware, you can overwrite the compat_version option in /etc/config/system file, so please make note of the current value (set by the new firmware) before the restore action, and then after restore please edit that setting to match the value expected by the new firmware.
factory and sysupgrade images have the same functionality, so no need to flash sysupgrade again after flashing the OpenWrt factory image.