OpenWrt Install MitraStar Technology Corp. STG-212

Hi all,

So i have a Medion P89637 with momentarily Debian onto it with a newer version of uboot. But i saw that Debian is quite messy and gets many errors wehn you install some packages. So i went into your forum and found a threath in how to install it on my box. But for that it seems you need the original u-boot and the original system. I wiped them both off. I found also the forum from that threath.
So my question is almost the same, is there a way to format the sata put rootfs onto it and let it boot whit maybe a command like dd or maybe extracting a tar archive on a partition called rootfs.

Openwrt will be installed to the internal flash of the NAS. Afterwards there is no way back to the factory firmware, so be warned.

Instructions may be somewhat dated.... ? From the looks of it.... they overwrite an initramfs image to the kernel partition. Which gets used to write the final image to flash.

To run from sata.... some stage of the loading process needs to be sata aware..... you'd need a uboot that is sata aware I think? or possibly a micro image with overlay.

i know but since i updeted my nand i dont have that flash partition anymore

What is your current flash layout....? How is you system currently booting?
What guide did you follow etc. etc?
Did you backup any original partitions?

Since the previous owner tested something out i dont have backups, i created a bootable sata since the device boots from sata first and then from nand. on the sata there was a debian rootfs from here and with that i restored the nand using the uboot from here

1 Like

maybe this can help

The last post on that page is promising ( usb boot ).... although i'm not familiar with the 2nd and third lines.....

So If I were you;

  1. Document the partitions currently on device
  2. Decide whether to pursue safe ( dhcp-tftp or usb ) solutions VS mtd fixes
  3. Then address the sata ( which would have needed some of two anyway )

UEnv.txt support?
If the uboot you flashed supports uEnv.txt in /boot on hdd..... you may have an easy path... ( which some of those links discuss )

All you'd need to do is;

a) built openwrt with a buildroot system, with disk drivers. ( suggest you setup one and get acquainted in your spare time )
b) get the kernel and dtb in /boot
c) get the rootfs next door
d) use Uenv.txt to set all the booting parameters

And you could have that on USB so as not to mess too much with the current setup....

1 Like

Here you can find a bootable sata disk which can restore the original flash content.


Im gonna try out both ways and let you know which one worked

I build a rootfs and it even booted up but some drivers are missing like the LEDs and the ethernet, the bootprocess created some errors, but they look fine since it does boot up.

This "bricked" the nand, probably because i didn't input the right device. (i restored the nand afterwards with like described here)

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.