ls -la /tmp/sys
echo 1 > /tmp/sys/left_led/brightness # should turn the left orange led on
echo 0 > /tmp/sys/left_led/brightness # should turn the left orange led off
echo 0 > /tmp/sys/power_led/brightness # # should turn the blue power led off
cat /tmp/sys/power_led/trigger # should be "[none] timer heartbeat default-on"
ls -la "/sys/class/leds/power:blue/"
rcsysctrl stop # should display Stopping sysctrl: OK.
hexdump -C /dev/event0 # and press and release the power and reset button, you should see some output. Finish by hitting CTRL-C
rcsysctrl start # restart sysctrl, so the fan will be controlled
I'm running a DNS-323 ver. B1 with Alt-F-0.1RC4.1 (upgraded from stock D-Link firmware 1.06).
[root@bitbucket]# ls -la /tmp/systotal 0drwxr-xr-x 2 root root 160 Dec 18 16:44 .drwxrwxrwt 10 root root 260 Dec 18 17:30 ..lrwxrwxrwx 1 root root 41 Dec 18 16:44 fan1_input -> /sys/class/hwmon/hwmon0/device/fan1_inputlrwxrwxrwx 1 root root 26 Dec 18 16:44 left_led -> /sys/class/leds/left:amberlrwxrwxrwx 1 root root 26 Dec 18 16:44 power_led -> /sys/class/leds/power:bluelrwxrwxrwx 1 root root 35 Dec 18 16:44 pwm1 -> /sys/class/hwmon/hwmon0/device/pwm1lrwxrwxrwx 1 root root 27 Dec 18 16:44 right_led -> /sys/class/leds/right:amberlrwxrwxrwx 1 root root 42 Dec 18 16:44 temp1_input -> /sys/class/hwmon/hwmon1/device/temp1_input
echo 1 > /tmp/sys/left_led/brightness # should turn the left orange led on SUCCESS!
echo 0 > /tmp/sys/left_led/brightness # should turn the left orange led off SUCCESS!
echo 0 > /tmp/sys/power_led/brightness # # should turn the blue power led off FAILED
[root@bitbucket]# cat /tmp/sys/power_led/trigger[none] timer heartbeat default-on
[root@bitbucket]# ls -la /sys/class/leds/power:blue/total 0drwxr-xr-x 2 root root 0 Dec 18 16:44 .drwxr-xr-x 5 root root 0 Dec 18 16:44 ..-rw-r--r-- 1 root root 4096 Dec 18 17:49 brightnesslrwxrwxrwx 1 root root 0 Dec 18 16:44 device -> ../../../leds-gpio-r--r--r-- 1 root root 4096 Dec 18 16:44 max_brightnesslrwxrwxrwx 1 root root 0 Dec 18 16:44 subsystem -> ../../../../../class/leds-rw-r--r-- 1 root root 4096 Dec 18 17:49 trigger-rw-r--r-- 1 root root 4096 Dec 18 16:44 uevent
[root@bitbucket]# rcsysctrl stopStopping sysctrl: OK.
Enter code here...[root@bitbucket]# hexdump -C /dev/event0
00000000 91 aa 74 56 0d 3c 02 00 01 00 98 01 01 00 00 00 |..tV.<..........|00000010 91 aa 74 56 0d 3c 02 00 00 00 00 00 00 00 00 00 |..tV.<..........|00000020 92 aa 74 56 8b a1 04 00 01 00 98 01 00 00 00 00 |..tV............|00000030 92 aa 74 56 8b a1 04 00 00 00 00 00 00 00 00 00 |..tV............|00000040 92 aa 74 56 a5 a4 04 00 01 00 98 01 01 00 00 00 |..tV............|00000050 92 aa 74 56 a5 a4 04 00 00 00 00 00 00 00 00 00 |..tV............|00000060 92 aa 74 56 32 aa 04 00 01 00 98 01 00 00 00 00 |..tV2...........|00000070 92 aa 74 56 32 aa 04 00 00 00 00 00 00 00 00 00 |..tV2...........|
[root@bitbucket]# rcsysctrl startStarting sysctrl: OK.
[root@bitbucket]# uptime 17:57:30 up 1:12, 0 users, load average: 0.00, 0.01, 0.03[root@bitbucket]# reboot
This successfully rebooted the device, and a few minutes later...
[root@bitbucket]# uptime 18:00:09 up 2 min, 0 users, load average: 0.14, 0.08, 0.03
According to psycros review you are a linux guru.
[root@bitbucket]# ls -la /tmp/systotal 0
drwxr-xr-x 2 root root 160 Dec 18 10:53 .drwxrwxrwt 10 root root 260 Dec 18 21:09 ..lrwxrwxrwx 1 root root 41 Dec 18 10:53 fan1_input -> /sys/class/hwmon/hwmon0/device/fan1_inputlrwxrwxrwx 1 root root 26 Dec 18 10:53 left_led -> /sys/class/leds/left:amberlrwxrwxrwx 1 root root 26 Dec 18 10:53 power_led -> /sys/class/leds/power:bluelrwxrwxrwx 1 root root 35 Dec 18 10:53 pwm1 -> /sys/class/hwmon/hwmon0/device/pwm1lrwxrwxrwx 1 root root 27 Dec 18 10:53 right_led -> /sys/class/leds/right:amberlrwxrwxrwx 1 root root 42 Dec 18 10:53 temp1_input -> /sys/class/hwmon/hwmon1/device/temp1_input
echo 1 > /tmp/sys/left_led/brightness # should turn the left orange led on SUCCESS!
echo 0 > /tmp/sys/left_led/brightness # should turn the left orange led off SUCCESS!
echo 0 > /tmp/sys/power_led/brightness # should turn the blue power led off FAILED
Note: /tmp/sys/power_led/brightness is always 0, observe:
[root@bitbucket]# cat /tmp/sys/power_led/brightness0[root@bitbucket]# echo 1 > /tmp/sys/power_led/brightness[root@bitbucket]# cat /tmp/sys/power_led/brightness0
[root@bitbucket]# cat /tmp/sys/power_led/trigger
[none] timer heartbeat default-on
[root@bitbucket]# ls -la "/sys/class/leds/power:blue/"total 0
drwxr-xr-x 2 root root 0 Dec 18 10:53 .drwxr-xr-x 5 root root 0 Dec 18 10:53 ..-rw-r--r-- 1 root root 4096 Dec 18 21:26 brightnesslrwxrwxrwx 1 root root 0 Dec 18 10:53 device -> ../../../leds-gpio-r--r--r-- 1 root root 4096 Dec 18 10:53 max_brightnesslrwxrwxrwx 1 root root 0 Dec 18 10:53 subsystem -> ../../../../../class/leds-rw-r--r-- 1 root root 4096 Dec 18 21:26 trigger-rw-r--r-- 1 root root 4096 Dec 18 10:53 uevent
[root@bitbucket]# rcsysctrl stopStopping sysctrl: OK.
Note: this output is from pressing the reset button - the power button did nothing
[root@bitbucket]# hexdump -C /dev/event0
00000000 30 dd 74 56 69 5c 02 00 01 00 98 01 01 00 00 00 |0.tVi\..........|00000010 30 dd 74 56 69 5c 02 00 00 00 00 00 00 00 00 00 |0.tVi\..........|00000020 31 dd 74 56 2d 2a 04 00 01 00 98 01 00 00 00 00 |1.tV-*..........|00000030 31 dd 74 56 2d 2a 04 00 00 00 00 00 00 00 00 00 |1.tV-*..........|^C
[root@bitbucket]# rcsysctrl startStarting sysctrl: OK.
[root@bitbucket]# uptime
21:32:18 up 2:38, 0 users, load average: 0.00, 0.01, 0.04[root@bitbucket]# reboot
Reconnected after rebooting:
login as: rootroot@bitbucket's password:COLUMNS=131;LINES=48;export COLUMNS LINES;[root@bitbucket]# uptime 21:33:45 up 1 min, 0 users, load average: 0.28, 0.10, 0.03
Just in case, I installed D-Link firmware 1.10, and after verifying that was working, installed Alt-F-0.1RC4.1. I observed the same behaviour with the power button & LED as before. Nevertheless, I re-ran the tests.1. System configuration log: (attached)
U-Boot 1.1.1 (Oct 12 2007 - 17:19:14) Marvell version: 1.7.3.001
cat /dev/mtd4 | grep U-Boot
...
root@bitbucket:~# cat /dev/mtd4 | grep U-BootBinary file (standard input) matches
root@bitbucket:~# ls /dev/mt*crw-r--r-- 1 root root 90, 0 Dec 27 2005 /dev/mtd0crw-r--r-- 1 root root 90, 2 Dec 27 2005 /dev/mtd1crw-r--r-- 1 root root 90, 32 Dec 27 2005 /dev/mtd16crw-r--r-- 1 root root 90, 4 Dec 27 2005 /dev/mtd2crw-r--r-- 1 root root 90, 6 Dec 27 2005 /dev/mtd3crw-r--r-- 1 root root 90, 8 Dec 27 2005 /dev/mtd4crw-r--r-- 1 root root 90, 10 Dec 27 2005 /dev/mtd5
brw-r--r-- 1 root root 31, 0 Dec 27 2005 /dev/mtdblock0(truncated)
I'm running D-link firmware v1.08 with ffp 0.7, this is what I got when I tried to check the bootloader:
root@bitbucket:~# cat /dev/mtd4 | grep U-BootBinary file (standard input) matches
Incidentally, I did find another user (with a rev. B unit) who has experienced this issue: alternative way to power off the DNS 323 under alt-f?
Don't worry - I don't expect you to solve this mystery. I appreciate the time you've spent considering the problem. :)On a related note, do you have any thoughts on other good NAS devices?- The DNS-325 is appealing, but a bit old and no longer officially supported (as of 2015-02-01)
- The DNS-320L seems pretty good and Alt-F should work well with it. They've removed fun_plug support from firmware 1.06 onwards though, so no more ffp on stock. :(
My needs for a NAS are basic: good data handling is the first priority (clean unmounting, ext4 support would be nice), good transmission client, good SAMBA support, and that's about it. SSH is handy.I'm very happy with the DNS-323 and it fulfils all my needs, but I'd like to know what I could use if/when the DNS-323 goes down for good.Thanks again, and happy holidays. :)-------------------------------------------------------------------------------------Footnote
I've been running the DNS-323 since 2011 on firmware v1.06 & ffp, with 2x 750GB HD (WD7500AACS) in standard format. I only used one of the drives, the other one was always empty. I always meant to back up the data from one drive to the other, but never did. :|Over the years, there have been a few (rare) occasions when the power has gone out (the NAS isn't plugged into a UPS or even surge protection), but I never observed any issues. On Dec. 13 a breaker tripped & killed power to the area the NAS was in. When I tried to turn the NAS on, it wouldn't boot up. I realised the issue was with the HD I'd been storing data on, since it powered up once I removed the drive. I felt awful when I thought I might have lost all the family pictures & movies I'd archived. :(Fortunately using testdisk, I was able to recover all my data. It was at this point that I started looking into Alt-F and learned about the importance of cleanly unmounting the drives, and running fsck...
root@bitbucket:~# cat /dev/mtd4 | strings | grep U-BootU-Boot 1.1.1 (Nov 27 2006 - 14:25:52) Marvell version: 1.7.3Addresses %dM - 0M are saved for the U-Boot usage.U-Boot