[MedionNAS] installation and recovery

Just download all files, and run ./build.sh as described in the readme. build.sh will prepare the disk you added as first parameter.

1 Like

Guess i'm a bit to stupid!? Can you please help? External HDD
is connected via usb.

root@ubuntu:/home/ubuntu/Downloads/Medion# chmod u+x ./build.sh
root@ubuntu:/home/ubuntu/Downloads/Medion# ./build.sh /dev/sdc1 00:11:41:30:3A:12
./build.sh: 6: [: x00:11:41:30:3A:12: unexpected operator
Deleting partitions on device
Adding MBR to device
Adding stage1
Adding U-Boot
Generating NAND U-Boot Environment
dd: konnte '../mbr.bin' nicht öffnen: Datei oder Verzeichnis nicht gefunden
1+0 DatensÀtze ein
1+0 DatensÀtze aus
34+0 DatensÀtze ein
34+0 DatensÀtze aus
dd: konnte '../u-boot.wrapped' nicht öffnen: Datei oder Verzeichnis nicht gefunden
Adding MTD1 data (stage1)
Adding MTD2 data (NAND U-Boot)
Adding MTD3 data (U-Boot Environment)
Adding MTD4 data (Kernel)
Adding MTD6 data (info)
Adding MTD7 data (sysdisk)
Generate SATA U-Boot Environment
1+0 DatensÀtze ein
1+0 DatensÀtze aus
Integrating SATA U-Boot Environment
root@ubuntu:/home/ubuntu/Downloads/Medion# 2+1 DatensÀtze ein
2+1 DatensÀtze aus
158+1 DatensÀtze ein
158+1 DatensÀtze aus
158+1 DatensÀtze ein
158+1 DatensÀtze aus
158+1 DatensÀtze ein
158+1 DatensÀtze aus
158+1 DatensÀtze ein
158+1 DatensÀtze aus
158+1 DatensÀtze ein
158+1 DatensÀtze aus
256+1 DatensÀtze ein
256+1 DatensÀtze aus
931+1 DatensÀtze ein
931+1 DatensÀtze aus

First, the device is /dev/sdc, and not /dev/sdc1. Then, I think the macaddress should be lowercase.

Further your build.sh is damaged somehow. I can't find a direct cause for

./build.sh: 6: [: x00:11:41:30:3A:12: unexpected operator

but

Adding MBR to device
Adding stage1
Adding U-Boot
Generating NAND U-Boot Environment
dd: konnte '../mbr.bin' nicht öffnen: Datei oder Verzeichnis nicht gefunden

the error on the last line is the result of the command executed after the first line:

dd if=../mbr.bin of=$device bs=512 seek=0 conv=notrunc status=noxfer &>/dev/null 

This can be caused when somehow a space is placed between & and >. In that case the command is backgrounded instead of having it's stderr redirected to /dev/null

At last, the script needs an mbr.bin, which is not provided. I think it's not needed at all, and you can simply create one:
dd if=/dev/zero of=./mbr.bin bs=512 count=1

Here is what i'm doing step by step:

  1. GParted external disc /dev/sdc with ext4, having /dev/sdc1 with 465GB space
  2. extract NAS7820-Tools-master.zip to ~/Downloads
  3. opening ~/Downloads/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS with terminal
  4. sudo su
  5. chmod u+x ./build.sh
  6. ./build.sh /dev/sdc 00:11:41:30:3a:12
    leading to:
ubuntu@ubuntu:~/Downloads/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS$ sudo su
root@ubuntu:/home/ubuntu/Downloads/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS# chmod u+x ./build.sh
root@ubuntu:/home/ubuntu/Downloads/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS# ./build.sh /dev/sdc 00:11:41:30:3a:12
./build.sh: 6: [: x00:11:41:30:3a:12: unexpected operator
Deleting partitions on device
Adding MBR to device
Adding stage1
Adding U-Boot
Generating NAND U-Boot Environment
1+0 DatensÀtze ein
1+0 DatensÀtze aus
252+1 DatensÀtze ein
252+1 DatensÀtze aus
34+0 DatensÀtze ein
34+0 DatensÀtze aus
1+0 DatensÀtze ein
1+0 DatensÀtze aus
Adding MTD1 data (stage1)
Adding MTD2 data (NAND U-Boot)
Adding MTD3 data (U-Boot Environment)
Adding MTD4 data (Kernel)
Adding MTD6 data (info)
Adding MTD7 data (sysdisk)
14+1 DatensÀtze ein
14+1 DatensÀtze aus
Generate SATA U-Boot Environment
dd: konnte 'mtd3.bin' nicht öffnen: Datei oder Verzeichnis nicht gefunden
Integrating SATA U-Boot Environment
root@ubuntu:/home/ubuntu/Downloads/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS# 2+1 DatensÀtze ein
2+1 DatensÀtze aus
512+0 DatensÀtze ein
512+0 DatensÀtze aus
1+0 DatensÀtze ein
1+0 DatensÀtze aus
20480+0 DatensÀtze ein
20480+0 DatensÀtze aus
7168+0 DatensÀtze ein
7168+0 DatensÀtze aus
20480+0 DatensÀtze ein
20480+0 DatensÀtze aus
192000+0 DatensÀtze ein

Somehow still strange things are happening. After the message 'Generate SATA U-Boot Environment' is spawned, the file mtd3.bin is no more mentioned in the script.

You can try to 'debug' the script:

bash -x ./build.sh

It doesn't really matter what is on the disk. The script writes to the raw disk, and destroys any data which is on it.

The picture describes the pinout from the NAS.
I thought it was the connection specification from the serial port, so it didn't work :slight_smile: .
If you don't want to make the same mistake i made:
Black = Ground - connect to serial port Ground
White = TX - Connect to the RX of your serial port
Green = RX - Connect to the TX of your serial port

If it doen't work try swapping RX & TX.

Thanks for the instruction @hondabeat.
I used a very cheap FT232RL from aliexpress for the serial connection.

I managed to upgrade my MD 86979 / P89660 NAS with OpenWrt 19.07.5.
Although my device was not on the list of compatible devices I was confidend it would work, since it also has the zyxel 212 system.

I didn't use an ethernet crosscable, but just hooked in in my home network.
After the first reboot the NAS will get an DHCP adress, be sure to check it via the serial console and the login to the Luci interface and follow the instructions.

I made a few modifications. I used SAMBA v4, since i want to enforce SMB 3 and use a recycle bin.
The recycle bin is added if you fill in "recycle" in the Vfs objects tab.
A directory .recycle is added after you delete the first object. Don't forget to change the permissions on the directory if you want to access .recycle from windows. (chmod 777 .recycle)

I also added a SAMBA user for login to the share:

  • vi /etc/passwd
    Add the following line:
    YourUSERname:x:1000:1000:GROUP:/mnt/:/bin/false
  • vi /etc/group
    GROUP:x:1000:
  • vi /etc/shadow
    YourUSERname:xyzDummyString:16666:0:99999:7:::
  • smbpasswd -a YourUSERname
    New SMB password:
    Retype SMB password:

Via Luci: Network shares
Don't forget to set the following in the Samba settings if you to be able to execute files from you share:

Create mask = 0777
Directory mask = 0777

In the tab Edit template add the following at the bottom:

force create mode = 0777
security mask = 0777
force security mode = 0777

force directory mode = 0777
directory security mask = 0777
force directory security mode = 0777

I also:

did anyone try to use the button at the front ?
I can't get it to work to kick off a custom script

I just upgraded to 19.07.7. I was having issues with the stability especially during high load over the NIC. So far this version is more stable. Network speeds still sucks

One day i had to get back to this topic... :wink:

I took another step on reviving this little beast (not sure why :smile: ), but i managed to create a flash-recovery-hdd using my router successfully (at least i think so, as i didn't see any error)...

root@XiaoQiang:/usr/local/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS# bash -x ./build.sh /dev/sdb 00:11:41:30:3A:12
+ device=/dev/sdb
+ macaddr=00:11:41:30:3A:12
+ '[' x00:11:41:30:3A:12 == x ']'
+ echo 'Deleting partitions on device'
Deleting partitions on device
+ dd if=/dev/zero of=/dev/sdb bs=512 seek=0 count=34 conv=notrunc status=noxfer
+ echo 'Adding MBR to device'
Adding MBR to device
+ dd if=../mbr.bin of=/dev/sdb bs=512 seek=0 conv=notrunc status=noxfer
+ echo 'Adding stage1'
Adding stage1
+ dd if=stage1.wrapped750 of=/dev/sdb bs=512 seek=34 conv=notrunc status=noxfer
+ echo 'Adding U-Boot'
Adding U-Boot
+ dd if=../u-boot.wrapped of=/dev/sdb bs=512 seek=154 bs=512 conv=notrunc status=noxfer
+ echo 'Generating NAND U-Boot Environment'
Generating NAND U-Boot Environment
+ echo -en 'bootargs= console=ttyS0,115200 elevator=cfq mac_addr=0x00,0x30,0xe0,0x00,0x00,0x01\0'
+ echo -en 'bootcmd=run boot_nand\0'
+ echo -en 'bootdelay=2\0'
+ echo -en 'baudrate=115200\0'
+ echo -en 'ipaddr=192.168.50.100\0'
+ echo -en 'serverip=192.168.50.59\0'
+ echo -en 'autoload=n\0'
+ echo -en 'netmask=255.255.0.0\0'
+ echo -en 'bootfile="uImage"\0'
+ echo -en 'load_nand=nboot 61000000 0 440000\0'
+ echo -en 'boot=bootm 61000000\0'
+ echo -en 'boot_nand=run load_nand boot\0'
+ echo -en 'MODEL_ID=AB03\0'
+ echo -en 'PRODUCT_NAME=STG-212\0'
+ echo -en 'VENDOR_NAME=MitraStar Technology Corp.\0'
+ echo -en 'ethaddr=00:11:41:30:3A:12\0'
+ echo -en '\0'
+ dd if=/dev/zero of=mtd3.data conv=notrunc seek=131067 bs=1 count=1 status=noxfer
+ cksum
+ read CRC32 REMAINDER
+ CRC32_OCTAL0L=7
+ CRC32_OCTAL0M=4
+ CRC32_OCTAL0H=3
+ CRC32_OCTAL1L=5
+ CRC32_OCTAL1M=3
+ CRC32_OCTAL1H=3
+ CRC32_OCTAL2L=7
+ CRC32_OCTAL2M=4
+ CRC32_OCTAL2H=3
+ CRC32_OCTAL3L=3
+ CRC32_OCTAL3M=4
+ CRC32_OCTAL3H=1
+ CRC32_STRING='\0347'
+ CRC32_STRING='\0347\0335'
+ CRC32_STRING='\0347\0335\0347'
+ CRC32_STRING='\0347\0335\0347\0143'
+ echo -en '\0347\0335\0347\0143'
+ cat mtd3.crc mtd3.data
+ echo 'Adding MTD1 data (stage1)'
Adding MTD1 data (stage1)
+ dd if=mtd1.backup of=/dev/sdb bs=512 seek=1024 bs=512 conv=notrunc status=noxfer
+ echo 'Adding MTD2 data (NAND U-Boot)'
Adding MTD2 data (NAND U-Boot)
+ dd if=mtd2.backup of=/dev/sdb bs=512 seek=1536 bs=512 conv=notrunc status=noxfer
+ echo 'Adding MTD3 data (U-Boot Environment)'
Adding MTD3 data (U-Boot Environment)
+ dd if=mtd3.bin of=/dev/sdb bs=512 seek=8704 bs=512 conv=notrunc status=noxfer
+ echo 'Adding MTD4 data (Kernel)'
Adding MTD4 data (Kernel)
+ dd if=mtd4.backup of=/dev/sdb bs=512 seek=9728 bs=512 conv=notrunc status=noxfer
+ echo 'Adding MTD6 data (info)'
Adding MTD6 data (info)
+ dd if=mtd6.backup of=/dev/sdb bs=512 seek=30208 bs=512 conv=notrunc status=noxfer
+ echo 'Adding MTD7 data (sysdisk)'
Adding MTD7 data (sysdisk)
+ dd if=mtd7.backup of=/dev/sdb bs=512 seek=50688 bs=512 conv=notrunc status=noxfer
+ rm mtd3.data mtd3.crc mtd3.bin cksum.data
+ echo 'Generate SATA U-Boot Environment'
Generate SATA U-Boot Environment
+ echo -en 'bootcmd=run select0 erase_nand mtd1 mtd2 mtd3 mtd4 mtd6 mtd7 clear_mbr\0'
+ echo -en 'bootdelay=2\0'
+ echo -en 'baudrate=115200\0'
+ echo -en 'ipaddr=192.168.50.100\0'
+ echo -en 'serverip=192.168.50.59\0'
+ echo -en 'autoload=n\0'
+ echo -en 'netmask=255.255.0.0\0'
+ echo -en 'bootfile="uImage"\0'
+ echo -en 'select0=ide dev 0\0'
+ echo -en 'selectnand=nand device 0\0'
+ echo -en 'erase_nand=nand erase\0'
+ echo -en 'mtd1=run load_mtd1 flash_mtd1\0'
+ echo -en 'mtd2=run load_mtd2 flash_mtd2\0'
+ echo -en 'mtd3=run load_mtd3 flash_mtd3\0'
+ echo -en 'mtd4=run load_mtd4 flash_mtd4\0'
+ echo -en 'mtd6=run load_mtd6 flash_mtd6\0'
+ echo -en 'mtd7=run load_mtd7 flash_mtd7\0'
+ echo -en 'ethaddr=00:11:41:30:3A:12\0'
+ echo -en 'load_mtd1=ide read 61000000 400 200\0'
+ echo -en 'load_mtd2=ide read 61000000 1c00 400\0'
+ echo -en 'load_mtd3=ide read 61000000 2200 400\0'
+ echo -en 'load_mtd4=ide read 61000000 2600 5000\0'
+ echo -en 'load_mtd6=ide read 61000000 7600 5000\0'
+ echo -en 'load_mtd7=ide read 61000000 c600 2ee00\0'
+ echo -en 'flash_mtd1=nand write 61000000 0 40000\0'
+ echo -en 'flash_mtd2=nand write 61000000 40000 380000\0'
+ echo -en 'flash_mtd3=nand write 61000000 3C0000 80000\0'
+ echo -en 'flash_mtd4=nand write 61000000 440000 a00000\0'
+ echo -en 'flash_mtd6=nand write 61000000 1840000 a00000\0'
+ echo -en 'flash_mtd7=nand write 61000000 2240000 5dc0000\0'
+ echo -en 'clear_mbr=ide write 0x60000000 0 1\0'
+ echo -en 'MODEL_ID=AB03\0'
+ echo -en 'PRODUCT_NAME=STG-212\0'
+ echo -en 'VENDOR_NAME=MitraStar Technology Corp.\0'
+ echo -en '\0'
+ dd if=/dev/zero of=mtd3.data conv=notrunc seek=8187 bs=1 count=1 status=noxfer
+ cksum
+ read CRC32 REMAINDER
+ CRC32_OCTAL0L=5
+ CRC32_OCTAL0M=4
+ CRC32_OCTAL0H=3
+ CRC32_OCTAL1L=6
+ CRC32_OCTAL1M=2
+ CRC32_OCTAL1H=2
+ CRC32_OCTAL2L=0
+ CRC32_OCTAL2M=0
+ CRC32_OCTAL2H=0
+ CRC32_OCTAL3L=4
+ CRC32_OCTAL3M=3
+ CRC32_OCTAL3H=1
+ CRC32_STRING='\0345'
+ CRC32_STRING='\0345\0226'
+ CRC32_STRING='\0345\0226\0000'
+ CRC32_STRING='\0345\0226\0000\0134'
+ echo -en '\0345\0226\0000\0134'
+ cat env.crc env.data
+ echo 'Integrating SATA U-Boot Environment'
Integrating SATA U-Boot Environment
+ dd if=env.bin of=/dev/sdb bs=512 seek=558 conv=notrunc status=noxfer
+ rm env.data env.crc env.bin cksum.data
root@XiaoQiang:/usr/local/NAS7820-Tools-master/flash-recovery-hdd/MedionNAS#

...and NAS is booting from HDD, but stops at...

Stage-1 Bootloader Mon Nov 14 22:17:29 EST 2011
Attempting to set PLLA to 725MHz ...
  plla_ctrl0 : 0x0000011A
  plla_ctrl1 : 0x003A0000
  plla_ctrl2 : 0x007300D0
  plla_ctrl3 : 0x000000B6
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x0001F854
  Hdr CRC: 0x55B449B2
 OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
  Device 0: Model: ST1500DL003-9VT16L Firm: CC4A Ser#: 5YD5WQJS
            Type: Hard Disk
            Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
  Device 1: not available
Failed to read valid environment from disk, using built-in default


U-Boot 1.1.2 (Dec 30 2011 - 14:55:54)

U-Boot code: 60D00000 -> 60D1F854  BSS: -> 60D24074
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot:  0

IDE device 0: Model: ST1500DL003-9VT16L Firm: CC4A Ser#: 5YD5WQJS
            Type: Hard Disk
            Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
... is now current device

IDE read: device 0 block # 1290, count 10152 ... 10152 blocks read: OK
## Booting image at 60500000 ...
Bad Magic Number

IDE device 0: Model: ST1500DL003-9VT16L Firm: CC4A Ser#: 5YD5WQJS
            Type: Hard Disk
            Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
... is now current device

IDE read: device 0 block # 58344, count 10152 ... 10152 blocks read: OK
## Booting image at 60500000 ...
Bad Magic Number
Light LED

IDE device 1: not available
Light LED

IDE device 1: not available
Unknown command 'lightled' - try 'help'
$

...when doing now...

$ setenv bootcmd 'nboot 60500000 0 440000; bootm'
$ saveenv
Saving Environment to Disk...
$ setenv serverip 192.168.50.2
$ setenv ipaddr 192.168.50.1
$ tftp 64000000 initramfs-uImage
Wait GMAC to reset
Wait for PHY reset.
PHY is Realtek RTL8211E
Wait for link to come up..........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.50.2; our IP address is 192.168.50.1
Filename 'initramfs-uImage'.
Load address: 0x64000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########
done
Bytes transferred = 5698471 (56f3a7 hex)
$ bootm 64000000
## Booting image at 64000000 ...
   Image Name:   ARM OpenWrt Linux-4.14.209
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5698407 Bytes =  5.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Starting kernel ...

I'm still stuck! :frowning:

Any help is very welcome. Thanks i.a.!
Alex

I followed this tutorial to flash the firmware.

Now the nas is much slower. With the original firmware I had uploadrates of 50mb/s and download of 85mb/s. With OpenWrt my upload speed is around 15mb/s and my down around 25mb/s.

Did anybody else encounter this and did find a way to solve it?

I'm still stuck at reviving this nasty beast, so any help is still welcome! :slight_smile:

booting openwrt-22.03.2-oxnas-ox820-mitrastar_stg-212-initramfs-uImage from tftp and starting kernel keeps hanging.

U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$ setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(ubi)'
$ setenv bootargs 'console=ttyS0,115200 $mtdparts'
$ tftpboot 0x64000000 openwrt-22.03.2-oxnas-ox820-mitrastar_stg-212-initramfs-uImage
Wait GMAC to reset
Wait for PHY reset.
PHY is Realtek RTL8211E
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.50.2; our IP address is 192.168.50.1
Filename 'openwrt-22.03.2-oxnas-ox820-mitrastar_stg-212-initramfs-uImage'.
Load address: 0x64000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###
done
Bytes transferred = 7668789 (750435 hex)
$ bootm 0x64000000
## Booting image at 64000000 ...
   Image Name:   ARM OpenWrt Linux-5.10.146
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    7668725 Bytes =  7.3 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Starting kernel ...

and trying run recovery from rescue-hdd fails also:

Stage-1 Bootloader Mon Nov 14 22:17:29 EST 2011
Attempting to set PLLA to 725MHz ...
  plla_ctrl0 : 0x0000011A
  plla_ctrl1 : 0x003A0000
  plla_ctrl2 : 0x007300D0
  plla_ctrl3 : 0x000000B6
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x0001F854
  Hdr CRC: 0x55B449B2
 OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
  Device 0: Model: ST1500DL003-9VT16L Firm: CC4A Ser#: 5YD5WQJS
            Type: Hard Disk
            Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
  Device 1: not available
Failed to read valid environment from disk, using built-in default


U-Boot 1.1.2 (Dec 30 2011 - 14:55:54)

U-Boot code: 60D00000 -> 60D1F854  BSS: -> 60D24074
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot:  0

When I tried to install OpenWrt onto an akitio mycloud mini I ran into all kinds of issues before I accidentally bricked it. The oxnas target does not seem to be very popular so it does not get much attention. I would try to install with an old initramfs-uImage from 19.07 series since that is what other people have managed to run successfully.

Thanks for your input. That's what i already tried, no matter if the latest or 19.07.5 or 19.07.7 - it's always stuck at starting kernel. Not sure if i somehow managed to crush partitions or env's or both, so kernel cannot extract itself on nand? What's even more weird is that flash-recovery-hdd isn't working.

Looking through my notes from the akitio mycloud mini the only things that I did differently is the rename the openwrt-uimage-initramfs file to uImage and loading it at 0x60000000

Don't see how that would make a difference so don't really know what else to try.

got a little further, after flashing stg212-u-boot-initramfs.bin from earlier version (https://archive.openwrt.org/chaos_calmer/15.05.1/oxnas/generic/). now i get into 2nd stage u-boot again with way more commands and options:
1st bootloader:

Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0
$ printenv
bootdelay=2
baudrate=115200
ipaddr=192.168.50.100
serverip=192.168.50.59
autoload=n
netmask=255.255.0.0
bootfile=uImage
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=prinrun load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
ethaddr=00:11:41:30:3a:12
boot_lede=nand read 0x64000000 0x440000 0x90000 ; go 64000000
bootcmd=run boot_lede
stdin=serial
stdout=serial
stderr=serial
bootargs=console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 538/131068 bytes
$ help
?       - alias for 'help'
base    - print or set address offset
bdinfo  - print Board Info structure
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
echo    - echo args to console
exit    - exit script
go      - start application at address 'addr'
help    - print online help
iminfo  - print header information for application image
ledfail - Extinguish (0) or light (1) failure LED
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nm      - memory modify (constant address)
nwboot          - NAND Write boot information
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version

2nd bootloader:

Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x440000, size 0x90000
 589824 bytes read: OK
## Starting application at 0x64000000 ...


U-Boot 2014.10 (Dec 08 2017 - 09:01:13) for OXNAS

DRAM:  128 MiB
NAND:  128 MiB
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=1", size 114 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 911, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 5, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 76/43, WL threshold: 4096, image sequence number: 1342704460
UBI: available PEBs: 0, total reserved PEBs: 911, PEBs reserved for bad PEB handling: 19
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
IDE:   SATA PHY not ready for device 0
SATA PHY not ready for device 1
ide_preinit failed
Hit any key to stop autoboot:  0
OX820 # printenv
autoload=no
baudrate=115200
boot_dhcp=run load_kernel_dhcp && run boot_kernel;
boot_kernel=bootm 0x62000000;
boot_openwrt=nand read 0x62000000 0x42000000 0x90000 ; go 62000000
boot_rescue=run load_kernel_rescue && run boot_kernel;
boot_stage2=nand read 64000000 440000 90000; go 64000000
boot_ubi=run load_kernel_ubi && run boot_kernel;
bootargs=console=ttyS0,115200n8 earlyprintk=serial
bootcmd=run boot_stage2
bootdelay=1
console=console=ttyS0,115200n8 earlyprintk=serial
ethact=dwmac.40400000
ethaddr=00:25:31:01:66:5F
fileaddr=64000000
filesize=420000
ipaddr=192.168.50.100
load_kernel_dhcp=dhcp 0x62000000 oxnas-rescue.bin;
load_kernel_rescue=nand read 0x62000000 0x4e0000 0x400000;
load_kernel_ubi=ubi readvol 0x62000000 kernel;
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
normalboot=run boot_ubi; run boot_rescue; run boot_dhcp;
serverip=192.168.50.59
stderr=serial
stdin=serial
stdout=serial

Environment size: 988/16379 bytes
OX820 # help
?       - alias for 'help'
askenv  - get environment variables from stdin
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootmenu- ANSI terminal bootmenu
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
dhcp    - boot image via network using DHCP/TFTP protocol
diskboot- boot from IDE device
echo    - echo args to console
editenv - edit environment variable
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls  - list files in a directory (default /)
ext4size- determine a file's size
ext4write- create a file in the root directory
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fatsize - determine a file's size
fatwrite- write file into a dos filesystem
fdt     - flattened device tree utility commands
gettime - get timer val elapsed,

go      - start application at address 'addr'
grepenv - search environment variables
hash    - compute hash message digest
help    - print command description/usage
ide     - IDE sub-system
iminfo  - print header information for application image
imxtract- extract a part of a multi-image
ini     - parse an ini file in memory and merge the specified section into the env
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
md5sum  - compute MD5 message digest
mdio    - MDIO utility commands
mii     - MII utility commands
mm      - memory modify (auto-incrementing address)
mtdparts- define flash/nand partitions
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
setexpr - set environment variable as the result of eval expression
showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
sysboot - command to get and boot from syslinux files
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
time    - run commands and summarize execution time
true    - do nothing, successfully
ubi     - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
unzip   - unzip a memory region
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
zip     - zip a memory region

I just took the old thing out of the box again and upgraded it to 22.03.3. That failed :frowning: .
For some reason I can't get any access to the network. I will not obtain a dhcp adress or with a static IP adress work with the rest of the devices.
I went back to 22.02... same problem. I just tried 21.02.05, there I have issue with processes being killed due to lack of memory (while I have enough free memory). 21.02.4 seems to work for me.. so far

Hi Im confused. Is the last good working version 22.03.2?

After all those years and getting my hands on a second device lately, i can say that my old device is broken (RAM) and I've spent way too many hours into this... facepalm

Till today version 22.03.4 seems to have the problem not getting any LAN connection. Just installed 21.02.6 which connects fine. Not sure about the memory issues. Any way to tricker them and find out if they are still existing in 21.02.6?