[MedionNAS] installation and recovery

Hi,

There are a lot of fake converter in the wild...
They can create WINDOWS blues creen (crash of device driver).

Uwe

Yes. Yes, they are. Exactly like @uweklatt says, it's a driver issue with your USB/TTL adapter.

Great. Just keep in mind that, depending on the image, there may not be a "web console."

This method from hondabeat works very well ... thanks for sharing your knowledge here :-*

Could someone please help me, as i'm trying to revive my Medion NAS i once used with my own compiled OpenWRT 15, then crashed it trying to update with a later version and now i found this thread...

Following the instruction i'm stuck at

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 = 5676455 (569da7 hex)
$ bootm 64000000
## Booting image at 64000000 ...
   Image Name:   ARM OpenWrt Linux-4.14.180
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5676391 Bytes =  5.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Thanks i.a. guys!

I didn't play with Linux and all this compiling/OpenWRT stuff for the last 6 years, but i'm sure i'm getting back at it pretty fast, just need some help where to start again.
Also i wouldn't mind recovering the NAS with https://github.com/jedie/NAS7820-Tools/tree/master/flash-recovery-hdd/MedionNAS but surely would need some more instructions on how to prepare hdd with these files - didn't find any forum yet, which guided through the steps using this tools.

Thanks again!

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.