Can not update from 15.05 | NAS

Hello,

i sucessfully installed openwrt version 15.05 on my old NAS using this guide:

https://groenholdt.net/tag_nas_index.html
and this:
https://forum.archive.openwrt.org/viewtopic.php?id=58358

The thing is that i can not update to the lastes 18.06.1 release.

What i have done:
Installed openwrt 15.01 linke in the first link with the image of the 2nd link.

Devices boots up with 15.01 and now i want to update. If i use LuCI it uploades and reboots but comes back on with 15.01, so i tried to do the update on CLI:

root@OpenWrt:~# sh -x /sbin/sysupgrade /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar
+ . /lib/functions.sh
+ N=

+ _C=0
+ NO_EXPORT=1
+ LOAD_STATE=1
+ LIST_SEP=
+ reset_cb
+ [ -z  -a -f /lib/config/uci.sh ]
+ . /lib/config/uci.sh
+ CONFIG_APPEND=
+ . /lib/functions/system.sh
+ RAMFS_COPY_BIN=
+ RAMFS_COPY_DATA=
+ export MTD_CONFIG_ARGS=
+ export INTERACTIVE=0
+ export VERBOSE=1
+ export SAVE_CONFIG=1
+ export SAVE_OVERLAY=0
+ export DELAY=
+ export CONF_IMAGE=
+ export CONF_BACKUP_LIST=0
+ export CONF_BACKUP=
+ export CONF_RESTORE=
+ export NEED_IMAGE=
+ export HELP=0
+ export FORCE=0
+ export TEST=0
+ [ -n /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar ]
+ break
+ export CONFFILES=/tmp/sysupgrade.conffiles
+ export CONF_TAR=/tmp/sysupgrade.tgz
+ export ARGV=/root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar
+ export ARGC=1
+ [ -z /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar -a -z  -o 0 -gt 0 ]
+ [ -n /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar -a -n  ]
+ [  = - ]
+ sysupgrade_image_check=platform_check_image
+ [ 0 = 0 -o ! -d /overlay/etc ]
+ sysupgrade_init_conffiles=add_uci_conffiles
+ include /lib/upgrade
+ local file
+ ls /lib/upgrade/common.sh /lib/upgrade/luci-add-conffiles.sh /lib/upgrade/nand.sh /lib/upgrade/platform.sh
+ . /lib/upgrade/common.sh
+ RAM_ROOT=/tmp/root
+ [ -x /usr/bin/ldd ]
+ . /lib/upgrade/luci-add-conffiles.sh
+ sysupgrade_init_conffiles=add_uci_conffiles add_luci_conffiles
+ . /lib/upgrade/nand.sh
+ . /lib/functions.sh
+ N=

+ _C=0
+ NO_EXPORT=1
+ LOAD_STATE=1
+ LIST_SEP=
+ reset_cb
+ [ -z  -a -f /lib/config/uci.sh ]
+ . /lib/config/uci.sh
+ CONFIG_APPEND=
+ CI_KERNPART=kernel
+ CI_UBIPART=ubi
+ append sysupgrade_pre_upgrade nand_upgrade_stage1
+ local var=sysupgrade_pre_upgrade
+ local value=nand_upgrade_stage1
+ local sep=
+ eval export -n -- "sysupgrade_pre_upgrade=${sysupgrade_pre_upgrade:+${sysupgrade_pre_upgrade}${value:+$sep}}$value"
+ export -n -- sysupgrade_pre_upgrade=nand_upgrade_stage1
+ . /lib/upgrade/platform.sh
+ . /lib/oxnas.sh
+ OXNAS_BOARD_NAME=
+ OXNAS_MODEL=
+ RAMFS_COPY_DATA=/lib/oxnas.sh
+ append sysupgrade_pre_upgrade disable_watchdog
+ local var=sysupgrade_pre_upgrade
+ local value=disable_watchdog
+ local sep=
+ eval export -n -- "sysupgrade_pre_upgrade=${sysupgrade_pre_upgrade:+${sysupgrade_pre_upgrade}${value:+$sep}}$value"
+ export -n -- sysupgrade_pre_upgrade=nand_upgrade_stage1 disable_watchdog
+ [ /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar = nand ]
+ [ 0 -eq 1 ]
+ [ -n  ]
+ [ -n  ]
+ type platform_check_image
+ eval platform_check_image "$ARGV"
+ platform_check_image /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar
+ oxnas_board_name
+ local name
+ [ -f /tmp/sysinfo/board_name ]
+ cat /tmp/sysinfo/board_name
+ name=stg212
+ [ -z stg212 ]
+ echo stg212
+ local board=stg212
+ [ 1 -gt 1 ]
+ nand_do_platform_check stg212 /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar
+ local board_name=stg212
+ local tar_file=/root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar
+ local control_length=0
+ identify /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar
+ nand_get_magic_long /root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar 0
+ dd if=/root/openwrt-18.06.1-oxnas-ox820-mitrastar-stg212-ubifs-sysupgrade.tar skip=0 bs=4 count=1
+ hexdump -v -n 4 -e 1/1 "%02x"
+ identify_magic 73797375
+ local magic=73797375
+ echo unknown 73797375
+ local file_type=unknown 73797375
+ [ 0 = 0 -a unknown 73797375 != ubi -a unknown 73797375 != ubifs ]
+ echo Invalid sysupgrade file.
Invalid sysupgrade file.
+ return 1
+ return 1
+ [ 0 -eq 1 ]
+ echo Image check 'platform_check_image' failed.
Image check 'platform_check_image' failed.
+ exit 1
root@OpenWrt:~#

But the platform should be the same right? both images are stg212...

if i force he does something but cames back on with 15.05 :frowning:

If i want to install 15.05 ist shows up:

etc/sysupgrade.conf
+ rm -f /tmp/sysupgrade.conffiles
+ export SAVE_CONFIG=1
+ [ 0 -eq 1 ]
+ run_hooks  nand_upgrade_stage1 disable_watchdog
+ local arg=
+ shift
+ eval nand_upgrade_stage1
+ nand_upgrade_stage1
+ [ -f /tmp/sysupgrade-nand-path ]
+ cat /tmp/sysupgrade-nand-path
+ path=openwrt-15.05-oxnas-stg212-ubifs-ubinized.bin
+ [ 1 != 1 -a -f /tmp/sysupgrade.tgz ]
+ ubus call system nandupgrade {"path": "openwrt-15.05-oxnas-stg212-ubifs-ubinized.bin" }
Command failed: Not found
+ exit 0

Additiaonal info:

root@OpenWrt:~# cat /etc/fw_env.config
/dev/ubi0_0 0x0 0x4000 0x1F000 1
/dev/ubi0_1 0x0 0x4000 0x1F000 1
root@OpenWrt:~#

root@OpenWrt:~# cat /etc/device_info
DEVICE_MANUFACTURER='OpenWrt'
DEVICE_PRODUCT='Generic'
DEVICE_REVISION='v0'


root@OpenWrt:~# cat /etc/openwrt_*
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='15.05'
DISTRIB_REVISION='r46767'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='oxnas/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05'
DISTRIB_TAINTS=''
15.05
root@OpenWrt:~#


root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "ubi"

Any hints for me??

Thank you in advanced

Someone else had a similar problem with the same platform: Syupgrade from LEDE 17.0.x to OpenWrt 18.06.1 on MitraStar Technology Corp. STG-212 Clone

17.01.4 may work, but there seems to be a problem with .5 and 18.

Ok, thanks for your answer... i can not update to 17.0.XX too... same issue...

is it possible to reflash completely? with 18.06.XX?

How to do that? with mtd?

ok... device is bricked... -.-

These should be able to boot from USB flash too.
Don\t give up.

Btw, I also have upgrade to 18. issue...