DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-03-15 21:36:09

new_dns323_user
New member
Registered: 2011-03-15
Posts: 1

Alt-F resume after power failure

The standard D-Link firmware allows the DNS-323 Revision C1 to restart after a power failure.

Is this feature implemented in the Alt-F firmware? 

This is a *must have* feature for me.

Offline

 

#2 2011-03-15 23:39:20

jcard
Member
From: Portugal
Registered: 2008-09-21
Posts: 289

Re: Alt-F resume after power failure

new_dns323_user wrote:

The standard D-Link firmware allows the DNS-323 Revision C1 to restart after a power failure.

Is this feature implemented in the Alt-F firmware? 

This is a *must have* feature for me.

No.

Someone with a rev C1 board has to uncover the details first.


Please consider discussing Alt-F at http://groups.google.com/group/alt-f/topics
Please consider filling Alt-F bugs at http://code.google.com/p/alt-f/issues/list

Offline

 

#3 2011-03-15 23:48:27

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: Alt-F resume after power failure

My DNS-323s are Rev C1s and I don't recall ever seeing a setting for this.

Offline

 

#4 2011-03-16 00:27:31

scaramanga
Member
Registered: 2010-08-04
Posts: 251

Re: Alt-F resume after power failure

dhub wrote:

My DNS-323s are Rev C1s and I don't recall ever seeing a setting for this.

Look for a checkbox under: Tools -> Power Management.


DNS-323 HW Rev. C1 FW 1.10 fun-plug 0.5
2 x WD10EARS-00Y5B1 in Standard mode (LCC set to 5 min; Aligned to 4K)
Transmission with Transmission Remote GUI

Offline

 

#5 2011-03-16 18:54:36

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: Alt-F resume after power failure

Yep, you are absolutely correct.  The setting is there, no idea how it works under the covers but it is there.

Offline

 

#6 2011-03-21 23:25:49

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: Alt-F resume after power failure

So anybody have any idea how this works? 

I threw a blank disk, let the dlink firmare format it, loaded ffp onto it, rebooted and telneted in (dlink 1.09 firmware).

I then looked around for how the dlink firmware was implementing this.  The problem is, I looked in /proc and /sys and didn't see anything power related. 

Any ideas?

Last edited by dhub (2011-03-21 23:28:23)

Offline

 

#7 2011-03-30 17:03:05

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: Alt-F resume after power failure

I have an APC power supply plugged in the USB port on my DNS's.  When I look at the process list, there are two process running that look like they have something to do with this:

/usr/sbin/upsd
/usr/local/ups/usbhid-ups -a usbhid -u root

When I log into the D-Link web based admin, I can see the following on the Status tab:

UPS INFO :
Manufacturer:      American Power Conversion
Product:      Back-UPS BX1300G FW:864.L1 .D USB FW:L1
Battery Charge:      100 %
Status :      On Line

Hopefully this helps!

Last edited by thebeck (2011-03-30 17:06:18)

Offline

 

#8 2011-03-30 17:11:19

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: Alt-F resume after power failure

Maybe it is just a matter of going with NUT (Network UPS Tool)  if it is not built into the kernel?

http://www.networkupstools.org/

NUT supports serial, usb and network connectivity with UPS devices:  http://www.networkupstools.org/features.html

Offline

 

#9 2011-03-30 22:00:59

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: Alt-F resume after power failure

How does NUT allow the DNS-323 to power on when power is restored to the NAS?

Offline

 

#10 2011-03-31 00:08:19

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: Alt-F resume after power failure

Dang, good question...  I am not well versed in the kernel, but does this help?

http://www.networkupstools.org/docs/FAQ … _happening

Something about APM or ACPI in the kernel???

Offline

 

#11 2011-04-04 00:12:10

RoganDawes
Member
Registered: 2010-07-01
Posts: 44

Re: Alt-F resume after power failure

dhub wrote:

How does NUT allow the DNS-323 to power on when power is restored to the NAS?

Yeah, it wouldn't.

It seems to me that there must be something written to an eprom or other i2c device on the C1 that will allow the power up circuitry to determine whether to initiate full power on, or just to wait for a button press.

Reading the forum for the older versions, it seems that at power on, only a very limited part of the board is receiving power, just enough to detect a button press and start the main boot process.

Clearly the newer hardware has a bit more smarts in it.

I wonder if it is possible to snoop the i2c bus when this setting is changed, to see if it really is being written to some device out there.

Offline

 

#12 2011-04-06 23:28:24

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: Alt-F resume after power failure

Even more interesting, I started an strace -f on the webs process (was doing this while telneted in via the ffp telnet service) and tried turning on that option.  For some odd reason all I would see is it would fork/exec a child sh process and then the strace would hang, really frustrating.

Offline

 

#13 2011-04-06 23:34:01

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: Alt-F resume after power failure

It just occurred to me, since the option is set in the default dlink firmware.  I wonder what in the reload process or new kernel is disabling the setting during the reload...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB