Auto Power Recovery DNS-320

890 views
Skip to first unread message

d.i.saunders

unread,
Mar 20, 2016, 7:26:32 AM3/20/16
to Alt-F
Hi All,

Think this may have been asked before...But I am a little unclear on the response..

The stock firmware allowed recovery from a power failure.. This happened if the device was on or if it was off at the time..(correct me if im wrong) A break, and then restoring the power caused the device to boot up..

In my testing of ALT-F it seem to work on if the device is power on. So if power is broken and restored while the device off it will not cause it to boot up..


I saw this post, and assume this relates to adding recovery options when the device is active.

Are there any setting that can be edited on power options? Is my memory correct on the stock version ? Any way to add this or access this on the Alft-f


27/11/2011
Re: [Alt-F] Re: DNS-320 and DNS-325
Here there is also an updated version of the patch that adds support for reset button and power recovery. 

http://article.gmane.org/gmane.linux.ports.arm.kernel/137460/match=dns325



Many thanks
Auto Generated Inline Image 1

João Cardoso

unread,
Mar 20, 2016, 12:58:32 PM3/20/16
to Alt-F


On Sunday, 20 March 2016 11:26:32 UTC, d.i.saunders wrote:
Hi All,

Think this may have been asked before...But I am a little unclear on the response..

The stock firmware allowed recovery from a power failure.. This happened if the device was on or if it was off at the time..(correct me if im wrong) A break, and then restoring the power caused the device to boot up..

In my testing of ALT-F it seem to work on if the device is power on. So if power is broken and restored while the device off it will not cause it to boot up..


I saw this post, and assume this relates to adding recovery options when the device is active.

Are there any setting that can be edited on power options? Is my memory correct on the stock version ? Any way to add this or access this on the Alft-f

Please see related ticket 32 

All those options are model and HW rev level dependent, and only by reverse engineering it is possible to replicate that under Alt-F.
Some people, Lentin, Böhler, et al, have partly done that job on some boxes, and I have included their findings in Alt-F, but I don't feel inclined to investigate for compatibility with other boxes models of dig for more.

Alt-F is open source and community driven, so if someone discovers how to implement those features, please describe how to implement them or, preferably, submit a code patch. I will be happy to help.

The current tweaks I remember:

/etc/init.d/rcS:
# Tell PMU to turn back on after a power failure 
if test $board = "DNS-320-Ax" -o $board = "DNS-325-Ax"; then
... 

/usr/sbin/dns320-temp.sh:
# Get temperature from a Dlink DNS-320's microcontroller
# Copyright (C) 2012 Jamie Lentin jm @ lentin co uk
...
# Adapted to Alt-F by: Joao Cardoso

package/alt-f-utils/alt-f-utils-0.1.7/dns320l-daemon.c:
  Simple system daemon for D-Link DNS-320L
  (c) 2013 Andreas Boehler, andreas _AT_ aboehler.at
  
  This code is based on a few other people's work and in parts shamelessly copied.
  The ThermalTable was provided by Lorenzo Martignoni and the fan control 
  algorithm is based on his fan-daemon.py implementation.
  
  The MCU protocol was reverse engineered by strace() calls to up_send_daemon and
  up_read_daemon of the original firmware.
...
  Heavily modified and adapted to Alt-F by Joao Cardoso, joao fs cardoso gmail com

d.i.saunders

unread,
Mar 21, 2016, 1:41:39 PM3/21/16
to Alt-F
Thanks for the reply.. I will take a look at the link as try it on my device..

Also noticed that it now only uses 4w when in standby... Might just leave it at that..

tera...@gmail.com

unread,
Mar 11, 2023, 3:08:35 AM3/11/23
to Alt-F
I know that this is an ancient thread, but I had the same problem. Maybe if you remember if this worked?

I tried to manually give the commands, then forced a power cycle, but the machine didn't boot up.

Did it finally worked for you? Did you try?

Thank you
Reply all
Reply to author
Forward
0 new messages