Welcome! Log In Create A New Profile

Advanced

OX820 (STG-212) does not reboot

Posted by kralan 
OX820 (STG-212) does not reboot
February 22, 2019 09:09AM
Hi Bodhi and team,

I installed latest u-boot, kernel 4.4.54-oxnas-tld-1 and latest rootfs on a MEDION P89626 and it works very well.
Thank you for providing the images and the instructions.

After upgrading to latest kernel 4.4.174, the box does not reboot anymore after entering "reboot" at the root prompt, it just stops.

Downgrading the kernel to 4.4.54 restores the reboot functionality.

Can you help in adding the functionality to the newer kernel? Can I provide any more detail?

regards
kralan
Re: OX820 (STG-212) does not reboot
February 22, 2019 02:58PM
kralan,


> After upgrading to latest kernel 4.4.174, the box
> does not reboot anymore after entering "reboot" at
> the root prompt, it just stops.

Can you cold boot, i.e. recycle the power and boot the box with kernel 4.4.174?

And please list your /boot directory this way and post here.

ls -lart /boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 22, 2019 07:17PM
> Can you cold boot, i.e. recycle the power and boot the box with kernel 4.4.174?

Yes, power cycling works reliably.
It is just that
reboot
has the same effect as
poweroff
.

> And please list your /boot directory this way and post here.
total 59520
-rw-r--r--  1 root root  111194 Mar 19  2017 config-4.4.54-oxnas-tld-1
-rwxr-xr-x  1 root root 4621760 Mar 19  2017 zImage-4.4.54-oxnas-tld-1
-rw-------  1 root root 4621760 Mar 19  2017 vmlinuz-4.4.54-oxnas-tld-1
-rw-------  1 root root 1712926 Mar 19  2017 System.map-4.4.54-oxnas-tld-1
-rw-r--r--  1 root root 7378702 Mar 19  2017 linux-headers-4.4.54-oxnas-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 4621824 Aug  1  2017 uImage.54
-rw-r--r--  1 root root 4594376 Aug  1  2017 uInitrd.54
drwxr-xr-x  2 root root    4096 Oct  5  2017 dts
-rw-r--r--  1 root root  114404 Feb  9 01:33 config-4.4.174-oxnas-tld-1
-rw-------  1 root root 4231704 Feb  9 02:37 vmlinuz-4.4.174-oxnas-tld-1
-rw-------  1 root root 1578596 Feb  9 02:37 System.map-4.4.174-oxnas-tld-1
-rw-r--r--  1 root root 4593996 Feb 20 22:23 initrd.img-4.4.54-oxnas-tld-1
drwxr-xr-x 21 root root    4096 Feb 20 23:00 ..
-rw-r--r--  1 root root 4635175 Feb 21 03:40 initrd.img-4.4.174-oxnas-tld-1
-rw-r--r--  1 root root 4231768 Feb 21 14:50 uImage.174
drwxr-xr-x  3 root root    4096 Feb 21 14:50 .
-rw-r--r--  1 root root 4635239 Feb 21 14:50 uInitrd.174
-rw-r--r--  1 root root 4594376 Feb 21 14:51 uInitrd
-rw-r--r--  1 root root 4621824 Feb 21 14:51 uImage

thanks
kralan



Edited 2 time(s). Last edit at 02/22/2019 07:41PM by kralan.
Re: OX820 (STG-212) does not reboot
February 23, 2019 12:19AM
kralan,

Your uImage does not look right.

-rw-r--r--  1 root root 4231768 Feb 21 14:50 uImage.174
-rw-r--r--  1 root root 4621824 Feb 21 14:51 uImage

Did you append the DTB? you should have not. The OXNAS boot with separate DTB. You should be booting with the original uImage after you generated it with

mkimage -A arm -O linux -T kernel -C none -a 0x60008000 -e 0x60008000 -n Linux-4.4.174-oxnas-tld-1 -d vmlinuz-4.4.174-oxnas-tld-1 uImage

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 23, 2019 04:18AM
I think my uImage is ok. The {uImage,uInitrd}.{54,174} files are just copies of uImage and and uInitrd in the respective 4.4.54 and 4.4.174 versions. They are obtained by the documented installation procedures (no appended dtb). I keep them to easily switch versions for testing - I just copy the desired version over uImage, uInitrd.
As you can see form the matching file sizes, at the time of the directory listing, uImage and uInitrd were the 4.4.54 versions.

Just to make it clear: the device boots and runs ok both with 4.4.54 and 4.4.174 versions.
It does not _re_boot with version 4.4.174.

kralan
Re: OX820 (STG-212) does not reboot
February 23, 2019 01:42PM
kralan,

I see! that timestamp mislead me. What you should do is using -a when copying files to preserve all attributes. It is much easier to see when you list these files in reversed chronological order.

cp -a uImage uImage.54


> Just to make it clear: the device boots and runs
> ok both with 4.4.54 and 4.4.174 versions.
> It does not _re_boot with version 4.4.174.

I'll take a look at the DTS file to see if the STG-212 has any changes.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 23, 2019 04:01PM
kralan,

Thanks for reporting this problem. I've tried with my Pogo V3 and seeing the same thing. So apparently it is the new kernel code proper that cause this. Not the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 23, 2019 04:11PM
Thank you for looking into this, bodhi!

It is not the DTS, the versions shipped with 4.4.54 and 4.4.174 are identical according to dtdiff.

I'll adopt your habit of copying with -a, always good to improve procedures.

kralan
Re: OX820 (STG-212) does not reboot
February 23, 2019 05:31PM
I'm not sure if related but over the Xmas holiday I installed OpenWrt 18.06.1 on a Shuttle KD20 and ran into the same issue. The device didn't reboot from command line and required the power cable to be removed before it could boot again. I assumed that it was an OpenWrt issue but it looks like it is a general kernel issue.

Koen
Re: OX820 (STG-212) does not reboot
February 23, 2019 05:42PM
Koen,

Thanks for reporting! yes, looks like our OXNAS series (Pogoplug V3, STG-212, and KD20) all seeing the same behavior.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 23, 2019 06:00PM
I just compiled 4.4.175 (from kernel.org, your patches for 4.4.174 applied) and the problem seems gone.
I can reboot again. I couldn't identify the relevant change from a quick glance at the changelog, though.
Re: OX820 (STG-212) does not reboot
February 23, 2019 07:12PM
kralan Wrote:
-------------------------------------------------------
> I just compiled 4.4.175 (from kernel.org, your
> patches for 4.4.174 applied) and the problem seems
> gone.
> I can reboot again. I couldn't identify the
> relevant change from a quick glance at the
> changelog, though.

Cool :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 23, 2019 07:26PM
I'm guessing this. Ethernet was probably hung or crashed during reboot.

Quote

drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

That's the driver we are using.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 24, 2019 03:20AM
Kernel 4.4.176 has fixed this reboot problem too. I'll release this version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: OX820 (STG-212) does not reboot
February 24, 2019 06:29AM
Very good!
Now that the MEDION reboots, I'd like to use some sort of watchdog.
I'll open a new thread for this.
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: