|
本帖最后由 vpei 于 2022-10-17 00:56 编辑
Image check failed:
Sun Aug 22 13:52:52 HKT 2021 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).Sun Aug 22 13:52:52 HKT 2021 upgrade: Config cannot be migrated from swconfig to DSAImage check failed.
这个强制升级,没有问题,之前编译的固件都没有这种情况,这两天编译的出现这种情况。请问怎么解决。
Telnet路由器,执行uci set system.@system[0].compat_version="1.1",再上传固件包就正常。只是每次都要这样,也不能算解决,怎么从编译时就给解决掉这个问题。
完全解决: 编译时修改文件/openwrt/target/linux/ramips/image/mt7621.mk,1.1 改成 1.0 这样升级时就不会提示验证失败。
官方解释页面:https://openwrt.org/docs/guide-q ... pgrade_keepsettingsdefine Device/dsa-migration
- define Device/dsa-migration
- DEVICE_COMPAT_VERSION := 1.1
- DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
- endef
复制代码 修改为:
- define Device/dsa-migration
- DEVICE_COMPAT_VERSION := 1.0
- DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
- endef
复制代码
上面改麻烦,在rc.local文件的最后一行exit 0上面添加,再把/etc/rc.local放到openwrt/files/etc/rc.local,每次编译都把这行命令加进去,这样只要一开机,就会把硬件版本号给改一致了,下次再升级固件就不提示错误。
- uci set system.@system[0].compat_version="1.1"
- uci commit system
复制代码 |
|