[MedionNAS] installation and recovery

You don't need to do 4b (so neither 4b.1 and 4b.2), these are steps for 18.06. You are trying to install 19.07, you should only need to do 4a.

If you did and your boot process still wants to boot from 60000000 please recheck step 1: it should want to boot from 60500000 and I'm honestly not sure where "60000000" is coming from since that value is not mentioned anywhere.

1 Like

Getting there, it now boots and retains everything. I can power cycle and it reboots. I now need to solve the missing "services" tab. Maybe missing Samba but I cant find how to install Samba.

Yes, you will need to install Samba, that's a topic for a different thread though.

Also, it would still be good if you laid out exactly what you did to get to this point, if only to help other people with the same problem (and to be able to update the wiki page.) Can you confirm that the Pogoplug instructions do work for your Medion device?

Thanks, I will that, I appreciate the assistance and am happy help someone else.

You're welcome, but, again, can you confirm that the Pogoplug instructions did work for your Medion device?

1 Like

Yes they worked. I am attempting to write instructions based on my install now.

2 Likes

Please let me know your opinion.

Update the Medion to latest firmware from within the NAS web interface if possible.

You will need a serial connection and terminal console software on your PC (see the "Serial" section) between your PC and the Medion.

This worked for me - PL2303HX USB To TTL RS232 module and firmware version 333, the driver is available at http:// bit.ly/prolific333

An ethernet connection between your PC and the Medion, with your PC's ethernet interface set to static IP 192.168.50.2

A TFTP server on your PC, serving the initramfs-uImage

The image files. From https://downloads.openwrt.org/releases/19.07.3/targets/oxnas/ox820/

openwrt-19.07.3-oxnas-ox820-mitrastar_stg-212-initramfs-uImage (rename to initramfs-uImage as dots confuse the TFTP transfer)

openwrt-19.07.3-oxnas-ox820-mitrastar_stg-212-squashfs-sysupgrade.tar

openwrt-19.07.3-oxnas-ox820-mitrastar_stg-212-squashfs-ubinized.bin

Open the serial connection and power on.

Bits rate: 115200

Data bits: 8

Stop bits: 1

Parity: None

Flow control: None

When you see “Hit any key to stop autoboot” hit any key to stop autoboot.

setenv bootcmd 'nboot 60500000 0 440000; bootm'

saveenv

setenv serverip 192.168.50.2

setenv ipaddr 192.168.50.1 (use direct ethernet cable between PC and Medion )

tftp 64000000 initramfs-uImage

bootm 64000000

uci set network.lan.proto=static

uci set network.lan.ipaddr=192.168.50.1

uci set network.lan.netmask=255.255.255.0

uci commit

service network restart

Brower on your PC go to the Medion address (192.168.50.1)

Log into the GUI as root (password not required)

From GUI go to > system > Back/Flash Firmware >

Then under “Flash new firmware image” > Choose file > then open openwrt-19.07.3-oxnas-ox820-mitrastar_stg-212-squashfs-sysupgrade.tar from where you previously saved it.

Then Flash image

Go to Network tab > interfaces > lan > edit and set a static IP, gateway & DNS then connect to your network

Go to System > Administration >set yourself a password.

System > Software > Available > Update lists > “Filter “samba” > luci-app-samba

Go to System . Reboot

Set up storage partition of the drive:-

Connect to your Medion with SSH

From SSH (format the drive EXT4)

umount /mnt/SDA2

opkg update

opkg install e2fsprogs

opkg install kmod-fs-ext4

mkfs.ext4 /dev/sda2

chmod 777 /mnt/SDA2

System > Mount Points > Generate Config > Mount Attached devices > Add /mnt/sda2

Services > Network Shares > Add > “Name it something meaningful” > path /mnt/SDA2 > Browseable > Allow Guests > 777 > 777 > Save & Apply

Your efforts are appreciated, but I'm not entirely sure they are necessary. If the Pogoplug instructions do work, they can be just copypasted into the Medion page anyway. No need to reinvent the wheel -- and also no need to describe the serial driver installation (it will differ for everyone) or how to install Samba (that is another topic). In the meantime I simplified the Pogoplug instructions, by the way.

However:

That is the really interesting part where the instructions would differ: How is a serial connection connected? The current description

The board got a populated 4-pin header which is a 3.3V TTL serial port. VCC | RX | TX | GND

is very sparse. Images or a really detailed description would be nice here.

( renaming thread > installation and recovery )

1 Like

Black is ground
White is TX
Green is RX
Red is 3.3v not used

I am wanting to replace the HDD in one of these. Do they need anything on the HDD to work? From what I can tell everything is in flash.

Hi,

I just flashed a Medion NAS according to the descriptions of PogoPlug (mentioned by @takimata) and @hondabeat (at least until the static configuration of IP in the web. For the moment I have no need to go further)
In fact I did it several times. It turned out for me that the step "sysupgrade /tmp/squashfs-sysupgrade.tar" of the PogoPlug installation process did not work for me. During this step while still connected to serial console I got regularly blue screens.
Finally I followed the sysupgrade description of @hondabeat using the web console and this worked perfectly.

As TFTP server I used "Pumpkin" under windows. This also produced some trouble together with the windows firewall, networking area (private vs. public network)...
If you get several lines of "ARP Resend request" in the serial console during the TFTP process you should double check the TFTP connection.

I also disconnected the serial console as soon as I managed to boot into OpenWrt early after "service network restart" to limit blue screen scenarios.

Probably the mentioned issues above are very specific to my windows laptop but perhaps it nevertheless could help someone...

I will try to edit "https://openwrt.org/toh/medion/md86587" and write down my experience.

Greetings
Eva

Hi,

I have no HDD connected at all and OpenWrt works. So I would expect that nothing is stored on the HDD.

Greetings
Eva

Blue screen? Where? Did your Windows system bluescreen as reaction on a serial connection with an OpenWrt box?

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