Welcome! Log In Create A New Profile

Advanced

Debian on Medion NAS MD 86xxx (MitraStar STG-212)

Posted by pengu 
Re: Debian on Medion NAS MD 86xxx (STG-212)
April 17, 2017 07:36PM
> "memtester" is running fine so this isn't memory r
> elated .. perhaps something in the "coherency" sto
> ff is going wrong ..

Was there a new Ext4 partition in the box when you ran localgen?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Medion NAS MD 86xxx (STG-212)
May 03, 2017 03:23AM
no new ext4 partition and the rootfs partition is fine
it also cannot be usb stick related .. tested with different USB Sticks (Intenso Basic Line, Sandisk Cruizer Fit, Verbatim Store 'n' Go, Transcend JetFlash 510) and I've seen this on boxes with slightly differend MD numbers
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
May 03, 2017 11:17AM
Did the released kernel show the same problem?

Quote

Updated 19 Mar 2017:

Kernel linux-4.4.54-oxnas-tld-1 package was uploaded.

-bodhi
===========================
Forum Wiki
bodhi's corner
I fucked up the NAND (U-boot and everything), but I can get access to a programmer. Could someone give me a dump of U-boot? The first 4 mtd blocks I guess.
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
February 27, 2019 08:05AM
I fit a MEDION P89626 with bodhi's Debian a few days ago and it runs stable - in part.

The stable part:
* it has been running for four days now and is still reachable by SSH.
* it was stable enough to compile its own kernel from source
* memtester has been running for several hours without reporting any issues

The not so stable part:
* the kernel build was interrupted 4 times by a cryptic "internal compiler error" - but repeating the build got it finished in the end
* apt-* or aptitude operations more often than not abort with segfaults or report corrupted package lists. Doing apt-get update restores functionality for the next few operations. dmesg shows no errors.

I'm posting here because my symptoms resemble those reported by pengu before.

How could I narrow down the cause of the problem?
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
February 27, 2019 12:28PM
kralan,

> The not so stable part:
> * the kernel build was interrupted 4 times by a
> cryptic "internal compiler error" - but repeating
> the build got it finished in the end
> * apt-* or aptitude operations more often than not
> abort with segfaults or report corrupted package
> lists. Doing apt-get update restores functionality
> for the next few operations. dmesg shows no
> errors.
>
> I'm posting here because my symptoms resemble
> those reported by pengu before.
>
> How could I narrow down the cause of the problem?

Look at your RAM. How big is the swap file? it is on an attached HDD?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
February 27, 2019 01:06PM
~# free
              total        used        free      shared  buff/cache   available
Mem:         121804       29620        3168         720       89016       85104
Swap:        524116       44088      480028
Swap is on the internal hdd driven by sata_oxnas.

128MB is not much RAM, but I would not expect OOM conditions to go away simply by restarting a kernel build.
I would expect more problems with kernel building and less with apt-* if it were for OOM.
Am I guessing wrong?
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
February 28, 2019 12:00AM
kralan,

> 128MB is not much RAM, but I would not expect OOM
> conditions to go away simply by restarting a
> kernel build.
> I would expect more problems with kernel building
> and less with apt-* if it were for OOM.
> Am I guessing wrong?

I was just eliminating possibilities!

I've seen segfaults occur when the file system is corrupted and apt does not know what to do.

Is this rootfs Ext3 or Ext4? have you tried fsck it to see if there is any error?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 01, 2019 10:54AM
Thank you for sharing your thoughts, bodhi!

The filesystem is ext4, fsck -f does not complain.
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 01, 2019 02:50PM
kralan,

> The filesystem is ext4, fsck -f does not complain.

I'd suggest you use Ext3 and run it the same way you did (build, dpkg, apt,...). See if the same symptom occur.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 06, 2019 11:07AM
I got round to transferring the rootfs to ext3 and a quick test looked promising in the beginning, but still failed in the end. Just the intervals between occurrences of the problem might have increased a bit.
I'll start a kernel compilation task overnight and report back.
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 06, 2019 05:43PM
For reference, long ago I used to compile the kernel on GoFlex Net (Kirkwood) which has 128MB RAM, running kernel 3.x. It took somewhere like 10 to 20 hours. But it did without any problem.

I've not tried to compile any kernel on the Pogo V3 (OXNAS).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 07, 2019 12:27PM
My kernel build completed, but I had to restart it 5 times.
So, ext3 does not behave any better than ext4.
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 08, 2019 04:07AM
Stock firmware on the MEDION runs at 750Mhz, yours appears to run at 850MHz.
I'd like to try the slower clock. Can you give a quick pointer where to change it? In the SPL, I guess?

kralan
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 08, 2019 04:18AM
kralan,

> Stock firmware on the MEDION runs at 750Mhz, yours
> appears to run at 850MHz.
> I'd like to try the slower clock. Can you give a
> quick pointer where to change it? In the SPL, I
> guess?

Sure. I think you need to go back to the older GCC 4 to compile it cleanly. I lost the 700 Mhz SPL binary and have not recompiled because of that (lazy :).

./include/configs/ox820.h

#define CONFIG_PLLA_FREQ_MHZ            850

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 08, 2019 06:50PM
Following instructions here I cloned the oxnas branch from here.

After editing the APLL frequency as described in bodhi's post and installing gcc-4.9 I built u-boot like this:
make CC=gcc-4.9 CPP=cpp-4.9 CXX=g++-4.9 ox820_config
make CC=gcc-4.9 CPP=cpp-4.9 CXX=g++-4.9 
but I can't find a file resembling a SPL. Do I need extra configuration or build commands?

Alternatively, does this old package contain a slow SPL?

Can I mix the alternative SPLs freely with recent u-boot?
Is there a way of recovery from flashing a non-working SPL?
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 08, 2019 07:43PM
kralan Wrote:
-------------------------------------------------------
> Following instructions
> here
> I cloned the oxnas branch from
> here.
>
> After editing the APLL frequency as described in
> bodhi's post and installing gcc-4.9 I built u-boot
> like this:
> make CC=gcc-4.9 CPP=cpp-4.9 CXX=g++-4.9
> ox820_config
> make CC=gcc-4.9 CPP=cpp-4.9 CXX=g++-4.9 
> 
but I can't find a file resembling a SPL.
> Do I need extra configuration or build commands?
>
> Alternatively, does
> this old
> package contain a slow SPL?
>
> Can I mix the alternative SPLs freely with recent
> u-boot?
> Is there a way of recovery from flashing a
> non-working SPL?

Try that old SPL. See if it is slower speed. There is SATA recovery procedure. So even NAND is faulty, you still can boot. In fact, that procedure is a good way to test SPL and uboot before flashing, too.

I will explain the SPL build later.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Medion NAS MD 86xxx (MitraStar STG-212)
March 10, 2019 05:01PM
kralan,

Please see the updated README.oxnas.

https://github.com/mibodhi/u-boot-oxnas/blob/2015.10-oxnas/README.u-boot-oxnas

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: