First, let me quote this topic:
On Saturday, July 5, 2014 10:53:58 AM UTC-3, João Cardoso wrote:
But thanks for reporting back, there has been 28 downloads of Alt-F-0.1RC4-DNS-320L-rev-A1.bin and no report at all, so I didn't know if it was working or not!
The minimum needed for a box to work is to have disk and network access. But for me that does not means "supported", much more is need -- system temperature reading, automatic fan control, all buttons and leds working as expected... and from your report none of these seems to be right now!
So, the DNS-320L-rev-A1/A3 is not fully supported, but it works.
There are a lot of things to test, debug and fix, and most means trying and error, as I don't have such a box of my own, so instructions have to be followed, results reported back, doing another try/error cycle... all this taking days or weeks, depending on your technical expertise and linux experience.
Thanks for reporting back,
João
Well... i won't lie to you: i don't understand much of what you're saying BUT, if i can help in any way, just create a thread or mail me with what i should do, what should/shouldn't happen and what files i should send you for you to check if this works and i'll gladly do it next month (it's easier to do this on vacation).
for now, i'll revert to the "stock" firmware and try to start over. i messed with so many things that i don't even know what i'm doing on it anymore.
About the examples you used on the last post, here's my impressions of what is happening
Temperature reading: sysctrl service does not recognize the board it seems.
the status view, however, seems to detect the HD temperature and fan speed
cat /tmp/sys/temp1_input | hexdump -C
echo -e 'GetTemperature\r' | nc 'local:/var/run/dns320l.socket' | hexdump -C
Fan control: This one almost drove me nuts last night: basically, the fan is working on "bursts": it plays full rotation (60000) for 10-20 seconds then it returns do 50% rotation (30000) for another 10-20 seconds. the noise is giving me a goddamned headache by the way.
LEDs: the "power" led blinks when it's turning on and after that, all four (five if you count that below the "usb" button both the blue and orange leds are lit) are on 100% of the time.
since when the stock d-link firmware "formatted" the HD it created a RAID-something
that i'm 90% sure i did NOT asked and do NOT want, the red LEDs seems accurate enough
haven't tried messing with buttons or led functions. it isn't necessary for what i'm using it for
CPU Issue: the CPU usage also seems to have a problem: from time to time it goes on 100% CPU usage for no actual reason.
checking it with a putty terminal (top command, connected via ssh), it has shown that these spikes originated in transmission, but after i killed the process, it STILL gets some spikes now and then for no reason at all.
On a side note, i faced similar problems using transmission on fun_plug and deluged+deluge-web on debian squeeze. i'm a rather heavy torrent user (at least 300GB of data divided into 20 or 30 torrents), but that's too much! specially AFTER the verification for downloaded data has finished long ago. transmission even kept filling a log file with error messages so much it ended up with almost 5gb when i deleted it.
I have bad karma with these things :(
That's about it for now. i'll keep following the project and will return later.
best of luck!
About DNS-320L (A2):Yes, the date is correct (via ntp);
Other problems:-Does not display the temperature status;
-The status displays as rev. A1
Running hexdump-C / dev/event0 to press buttons on the NAS (usb and then on / off), the following message is displayed on the terminal:[root@storage]# hexdump -C /dev/event000000000 39 4a bb 53 c6 61 0a 00 01 00 85 00 01 00 00 00 |9J.S.a..........|00000010 39 4a bb 53 c6 61 0a 00 00 00 00 00 00 00 00 00 |9J.S.a..........|00000020 39 4a bb 53 25 bd 0d 00 01 00 85 00 00 00 00 00 |9J.S%...........|00000030 39 4a bb 53 25 bd 0d 00 00 00 00 00 00 00 00 00 |9J.S%...........|
kill -1 1
killall dns320l-daemon
rm -f /var/run/dns320l.socket
dns320l-daemon -d >&
/mnt/sda2/dns320l.log
/mnt/sda2/dns320l.log.
Please attach it.I have basic knowledge in linux (I use on my desktop) and in the past has worked with iptables + squid + sarg and others in the genre.Follows the requested log attached
Ronaldo Antoni
(54)9979-8920
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/3d0ef095-3605-4070-9293-43dd067dfd48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Look what happens with sysctrl. After starting it, check the status and the process is stopped:[root@storage]# rcsysctrl startStarting sysctrl: OK.[root@storage]# rcsysctrl statussysctrl stoppedResponse of the executed commands:[root@storage]# cat /tmp/sys/temp1_input24[root@storage]# hexdump -C /tmp/sys/temp1_input00000000 32 34 |24|00000002[root@storage]#[root@storage]# cat /tmp/sys/fan1_input3000[root@storage]# hexdump -C /tmp/sys/fan1_input00000000 33 30 30 30 |3000|00000004[root@storage]#
The fan turns on and off periodically, does not seem to respond to commands,
echo 255 > /tmp/sys/pwm1
and did not notice anything different in output dns320l-daemon.
Another strange thing is that the 320L will not turn off, either by button or by command. Looks like he shuts down the system but can not turn off the hardware.
echo -e 'help\r' | nc local:/var/run/dns320l.socket
echo -e 'GetTemperature\r' | nc local:/var/run/dns320l.socket
echo -e 'PowerLedBlink\r' | nc local:/var/run/dns320l.socket
dns320l() {
echo -e "$1\r" | nc local:/var/run/dns320l.socket
}
dns320l GetTemperature
to read the temperature, or
dns320l PowerLedOff
On Sunday, July 13, 2014 3:01:17 AM UTC+1, Ronaldo Antoni wrote:Look what happens with sysctrl. After starting it, check the status and the process is stopped:
[root@storage]# rcsysctrl startStarting sysctrl: OK.[root@storage]# rcsysctrl statussysctrl stoppedResponse of the executed commands:[root@storage]# cat /tmp/sys/temp1_input24[root@storage]# hexdump -C /tmp/sys/temp1_input00000000 32 34 |24|00000002[root@storage]#[root@storage]# cat /tmp/sys/fan1_input3000[root@storage]# hexdump -C /tmp/sys/fan1_input00000000 33 30 30 30 |3000|00000004[root@storage]#
hmm, the EOL (end of line) are missing. But that does not explains everything.
The fan turns on and off periodically, does not seem to respond to commands,
Have you tried using (stopping first the sysctrl daemon)
echo 255 > /tmp/sys/pwm1
and nothing appears in the dns320l-daemon output console? odd...
and did not notice anything different in output dns320l-daemon.
Another strange thing is that the 320L will not turn off, either by button or by command. Looks like he shuts down the system but can not turn off the hardware.
Yes, besides the fan and temperature, powering off the box is also done my the MCU. For that and other purposes the dns320l-daemon supports a set od commands on its own.
To see waht commands are available use the following command in one console (having the 'dns320l-daemon -d' in execution in another console)
echo -e 'help\r' | nc local:/var/run/dns320l.socket
It should outputAvailable Commands2:If you want to read the temperature, use
DeviceReady, DeviceShutdown, ShutdownDaemon, EnablePowerRecovery, DisablePowerRecovery, GetPowerRecoveryState, EnableWOL, DisableWOL, GetWOLState, SetFanStop, SetFanHalf, SetFanFull, PowerLedOn, PowerLedOff, PowerLedBlink, ReadRtc, systohc, hctosys, GetTemperature, help, quit,
echo -e 'GetTemperature\r' | nc local:/var/run/dns320l.socket
if you want to blink the power led use
echo -e 'PowerLedBlink\r' | nc local:/var/run/dns320l.socket
To avoid the need to write all that you can define a function, e.g., defining the dns320l functions as follows
dns320l() {
echo -e "$1\r" | nc local:/var/run/dns320l.socket
}
and now you just use
dns320l GetTemperatureto read the temperature, or
dns320l PowerLedOff
turn the power led off.
Can you please try to see if all available commands work?
Thanks
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/1da2d047-8a40-4d88-8e51-fcf3da0a7bb4%40googlegroups.com.
Weekend do the tests and post the results.
Have no forecast for RC5?
On Thursday, July 17, 2014 1:19:12 PM UTC+1, Ronaldo Antoni wrote:Weekend do the tests and post the results.
Great!
I attach two scripts that automate the tests. I tested them as possible, but can't be sure they will fully work on the dns320l.
The scripts follows the directions I gave in the previous post, and have instructions at its top:
# start first the dns320l-setup.sh script on one console window,
# keeping it open and the dns320l-daemon running,
# then start the dns320l-test.sh script on another window console.
#
# the logfile will have at maximum 32KB, so try to finish the test
# scripts fast, or the initial test output will be lost.
Essencially, you have to telnet/ssh the box as the 'root' user in two separate windows, start executing the dns320l-setup.sh in one of them and the dns320l-test.sh in another window; you will be asked for a folder on disk where to store the logs produced, and asked for a short comment after each command completes. The comment can be just "fan stopped", "power led not blinking", etc. If you have no comment just press <enter>.
Please attach (not inline) the log.
Have no forecast for RC5?
Not really.
Alt-F is pretty stable, the fixes system (System->Utilities->Fixes) seems to be working fine, packages updates can fix package errors or updates (only possible when I have the bandwidth to do that), no new features are planned... so there is no reason for a new release soon.
I can only release a special DNS320L release as soon as we fix the current issues, of course.
Obrigado,
João
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/91704a90-4d44-4c02-965c-bf4dab91392e%40googlegroups.com.
Just today I was able to perform the tests, but unable to run any script. Here are the errors returned:
wget -O dns320l-test.sh 'https://groups.google.com/group/alt-f/attach/197afbf9a2a7e1e/dns320l-test.sh?part=0.2&authuser=0'
wget -O dns320l-setup.sh 'https://groups.google.com/group/alt-f/attach/197afbf9a2a7e1e/dns320l-setup.sh?part=0.1&authuser=0'
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/d24c19b4-1c76-4494-bc3c-cd53ef47260b%40googlegroups.com.
I do not use windows. I had to give execute permission in scrips.Attached is the log of scripts!
Ronaldo Antoni
(54)9979-8920
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/5c0177aa-d9f4-4185-980f-d2f3fb5511d8%40googlegroups.com.
hey guys just in case more testers needed...
got Alt-F installed on a DNS 320L A2and guess what... got the same spindown/up issue...by the way: according to the webinterface sysctrl is not running - after starting it shuts itself down automatically...the only way to get rid of the spinups was to run aecho -e 'SetFanHalf\r' | nc local:/var/run/dns320l.socket
Ronaldo Antoni
(54)9979-8920
Hi,
I attach a new set of tests for the dns320L.
You should transfer the attached dns320l.test.tar.gz to the box, for example to the /root or /tmp folder (not on disk!) and extract it: eg:
scp dns320l.test.tar.gz root@dns-323:/tmp
then login as root into the box and
cd /tmp
tar -xvzf dns320l.test.tar.gz
./dns320l-setup.sh
and keep it running. Open a new session to the box on a new window and
cd /tmp
./dns320l-test.sh
When the dns320l-test script finish you will find the log in the disk, e.g., under /mnt/sda2/dns320l-test.log
The comments on top of the sh script says:
# start first the dns320l-setup.sh script on one console window,
# keeping it open and the dns320l-daemon running,
# then start the dns320l-test.sh script on another window console.
#
# the logfile will have at maximum 32KB, so try to finish the test
# scripts fast, or the initial test output will be lost.
#
# Be sure to run the dns320l-test.sh script twice, first without testing
# the power-off mode, save the log under other name, then a second time.
#
# the powerdown test implies pressing the power button and releasing it twice.
# I expect the power led to start binking for the first press, and
# turn to solid on after release, and that only on the second button press
# the box will shut down. This has to be observed, it is not registed in then
# log, as filesystems are mounted read-only durint the test to prevent a
# lengly fsck at power up.
Please attach (not inline) the log and post your notes on the powerdown sequence attempt and fan control.
If you find that fan control is working OK when those two binaries are running, you can copy the dns320l-damemon and sysctrl to /usr/sbin.
Thanks
Joao
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f.
Ronaldo Antoni
(54)9979-8920
Hi,
I attach a new set of tests for the dns320L.
You should transfer the attached dns320l.test.tar.gz to the box, for example to the /root or /tmp folder (not on disk!) and extract it: eg:
scp dns320l.test.tar.gz root@dns-323:/tmp
then login as root into the box and
cd /tmp
tar -xvzf dns320l.test.tar.gz
./dns320l-setup.sh
and keep it running. Open a new session to the box on a new window and
cd /tmp
./dns320l-test.sh
When the dns320l-test script finish you will find the log in the disk, e.g., under /mnt/sda2/dns320l-test.log
The comments on top of the sh script says:
# start first the dns320l-setup.sh script on one console window,
# keeping it open and the dns320l-daemon running,
# then start the dns320l-test.sh script on another window console.
#
# the logfile will have at maximum 32KB, so try to finish the test
# scripts fast, or the initial test output will be lost.
#
# Be sure to run the dns320l-test.sh script twice, first without testing
# the power-off mode, save the log under other name, then a second time.
#
# the powerdown test implies pressing the power button and releasing it twice.
# I expect the power led to start binking for the first press, and
# turn to solid on after release, and that only on the second button press
# the box will shut down. This has to be observed, it is not registed in then
# log, as filesystems are mounted read-only durint the test to prevent a
# lengly fsck at power up.
Please attach (not inline) the log and post your notes on the powerdown sequence attempt and fan control.
If you find that fan control is working OK when those two binaries are running, you can copy the dns320l-damemon and sysctrl to /usr/sbin.
Thanks
Joao
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f.
Same behavior as before... Spin up/down :( so no improvement
To answer the had partition question: In case u don't plan to go back 2 dlink fw you can do whatever you want with the Xtra partitions - if you want to keep your data if u install original fw again: Don't touch them. Just my 2 cents
Same here, as a log has been uploaded already I just let you my findings with the new files moved to /usr/sbin:Same behavior as before... Spin up/down :( so no improvement
issue 1: fan control
From the logs, I see that dns320l-daemon is reading a wrong pwm. To see what is the culprit, using the above code segments do:
-stop sysctrl
-disable init from launching dns320l-daemon
-start ./dns320l-daemon -d
-use each of these commands and watch what the dns320l-daemon reports in its window:
echo 0 > /tmp/sys/pwm1 # should report reading a -0- and the fan should stop
cat /tmp/sys/fan1_input # should output 0
echo 127 > /tmp/sys/pwm1 # should report reading a -127- and the fan should go medium speed
cat /tmp/sys/fan1_input # should output 3000
echo 255 > /tmp/sys/pwm1 # should report reading a -0- and the fan should go full speed
cat /tmp/sys/fan1_input # should output 6000
What do you see?
issue 2: powerdown
To be continue tomorrow
issue 1: fan control
From the logs, I see that dns320l-daemon is reading a wrong pwm. To see what is the culprit, using the above code segments do:
-stop sysctrl
-disable init from launching dns320l-daemon
-start ./dns320l-daemon -d
-use each of these commands and watch what the dns320l-daemon reports in its window:
echo 0 > /tmp/sys/pwm1 # should report reading a -0- and the fan should stop
cat /tmp/sys/fan1_input # should output 0echo 127 > /tmp/sys/pwm1 # should report reading a -127- and the fan should go medium speed
cat /tmp/sys/fan1_input # should output 3000
echo 255 > /tmp/sys/pwm1 # should report reading a -0- and the fan should go full speed
cat /tmp/sys/fan1_input # should output 6000
What do you see?All works as expected even the correct pwm was read
BUT just one issue i saw:is it a wanted behavior thar sysctrl is just closing itself as soon as it has been started?
[root@DNS320]# rcsysctrl startStarting sysctrl: OK.[root@DNS320]# rcsysctrl statussysctrl stopped
stop... after another reboot all issues are back
my shortterm solution is a script in inet.d like thiskill -1 1
killall dns320l-daemonrcsysctrl stop/usr/sbin/./dns320l-daemon
rcsysctrl start
now even temp in Webui is correctly displayed
Okay you may be right about the kill -1 1 part
But for the rest one more point: I copied the new daemon and sysctrl to /usr/sbin as you said in an earlier post
so as long as this does survive a reboot
my script should be using the new files
- or not???
regarding the other question if I really use the correct commands:
I did a copy paste from your instructions and that's why I'm sure that my output was correct as well.
I monitored temp and fan now for 18 hours and everything is running correct now - temperature is read correctly and fan speed is set correctly as well.
On Saturday, July 26, 2014 7:15:36 PM UTC+1, Henrik Bruening wrote:Okay you may be right about the kill -1 1 part
But for the rest one more point: I copied the new daemon and sysctrl to /usr/sbin as you said in an earlier post
having the care of first stopping the system's sysctrl and dns320l-daemon
so as long as this does survive a reboot
t depends if the /Alt-F/usr/sbin folder exists, i.e.,if you have installed any Alt-F package and if aufs is active.
But this can also be customized in another way, copy the new binaries to some location on disk and use the user boot script to copy them to the /usr/sbin/ directory. user script to run at power up: Services->User->user Configure
But the system dns320l-daemon and sysctrl should be already running, so before the copy operation one has to stop them.
Discussing this deserves a new topic to not mix things.
my script should be using the new files
Yes.
- or not???
regarding the other question if I really use the correct commands:
I did a copy paste from your instructions and that's why I'm sure that my output was correct as well.
I monitored temp and fan now for 18 hours and everything is running correct now - temperature is read correctly and fan speed is set correctly as well.
just one more question:is it still possible in the RC4 to manually set the high and low fan speeds vialo_fan="2000"hi_fan="4000"in /etc/sysctrl.config ???
Great! So after all the new sysctrl and dns320l-daemon I sent are working fine together.
Or are you using your fanspeed script together with both the new sysctrl and new dns320l-daemon? That would invalidate the results.
So we only have now to test the box powerdown. I will continue adding/editing my post above with the instructions.
print_config();
print_disks();
Hi,i just did a few more tests on sysctrl the last days and sysctrl is definitely not working properly!here is what i did to test it:- stop sysctrl- disable and kill dns320daemon- start logread -f in a separate putty session- start sysctrl via rcsysctrl start[root@DNS320]# echo 10000 > /tmp/sys/temp1_input[root@DNS320]# cat /tmp/sys/pwm1127[root@DNS320]# cat /tmp/sys/fan1_input3000
[root@DNS320]# rcsysctrl startStarting sysctrl: OK.
here is another possible sourcefor an error as the the fan will never really spin down...while overwriting the pwm value 127 by 0 the result in the file at the end is 027
Thanks a lot for your findings.
Most of the issues you found are fixed in the new sysctrl. I have not yet SVN commited it because it is not yet finished, so you are watching the pristine sysctrl shipped with RC4, not the new one I sent you..
When your start sysctrl using the rcsysctrl start, you are starting the one found first in the PATH, not the one in your current directory. Better start it just as ./sysctrl (there is nothing special in sysctrl to require it to be started by an initscript).
Anyway I enclose the current source code and the binary sysctrl and dns320l-daemon for you (or other DNS320L user) to test.
kill -1 1
killall dns320l-daemon
cp /some/location/on/disk/dns320l-daemon /usr/sbin
# allow init to launch the dns320-daemon
sed -i 's/^[#]*[[:space:]]*\(.*dns320l-daemon.*\)/\1/' /etc/inittab
kill -1 1
;;
stop) : ;;
*) usage $0 "start|stop" ;;
esac
The "overwriting the pwm value 127 by 0 the result in the file at the end is 027" is handled by opening the file in truncation mode.
I have done a lot of other yet untested changes to dns320l-daemon, so please test and use the enclosed binaries
On Thursday, July 31, 2014 4:00:27 PM UTC+1, Henrik Bruening wrote:here is another possible sourcefor an error as the the fan will never really spin down...while overwriting the pwm value 127 by 0 the result in the file at the end is 027
Ronaldo Antoni
(54)9979-8920
kill -1 1
killall dns320l-daemon
cp /some/location/on/disk/dns320l-daemon /usr/sbin
# allow init to launch the dns320-daemon
sed -i 's/^[#]*[[:space:]]*\(.*dns320l-daemon.*\)/\1/' /etc/inittab
kill -1 1
;;
stop) : ;;
*) usage $0 "start|stop" ;;
esac
The "overwriting the pwm value 127 by 0 the result in the file at the end is 027" is handled by opening the file in truncation mode.
I have done a lot of other yet untested changes to dns320l-daemon, so please test and use the enclosed binaries
On Thursday, July 31, 2014 4:00:27 PM UTC+1, Henrik Bruening wrote:here is another possible sourcefor an error as the the fan will never really spin down...while overwriting the pwm value 127 by 0 the result in the file at the end is 027
This is handled by opening the file in truncation mode.
Thanks,
João
okay i tried the new version you sent.this one really fixes a few issues but it is still crashing in get_led
I created the script and put it in to start User script,
but did not detect differences in the use of NAS.
Ronaldo Antoni
(54)9979-8920
--
Ronaldo Antoni
(54)9979-8920
I put the new files running:[root@storage]# ./test.sh startStopping sysctrl: OK.Starting sysctrl: OK.killall: dns320l-daemon: no process killed[root@storage]#Desculpe minha ignorância, mas não consegui localizar os logs
Ronaldo Antoni
(54)9979-8920
--
Ronaldo Antoni
(54)9979-8920
Attached the requested logs and output of test.sh after adding "set-x"[root@storage]# ./test.sh start+ cat /tmp/board+ board=DNS-320L-A1+ test DNS-320L-A1 != DNS-320L-A1+ mkdir -p /tmp/sys/power_led+ rcsysctrl stopStopping sysctrl: OK.+ cp /mnt/dados/sysctrl /usr/sbin+ rcsysctrl startStarting sysctrl: OK.+ sed -i s/\(.*dns320l-daemon.*\)/#\1/ /etc/inittab
sed -i 's/\(.*dns320l-daemon.*\)/#\1/' /etc/inittab
+ kill -1 1+ killall dns320l-daemonkillall: dns320l-daemon: no process killed+ cp /mnt/dados/dns320l-daemon /usr/sbin+ sed -i s/^[#]*[[:space:]]*\(.*dns320l-daemon.*\)/\1/ /etc/inittab
sed -i 's/^[#]*[[:space:]]*\(.*dns320l-daemon.*\)/\1/' /etc/inittab
ps.google.com/d/optout.
Ronaldo Antoni
(54)9979-8920
The script contains single quotes. Same results.
Ronaldo Antoni
(54)9979-8920
--
On the status screen the temperature is displayed, but the cooler is off (perhaps due to the low ambient temperature?). I changed the parameter of temperature in services> system> sysctrl to 34 degrees and the fan turned on normally. Seems to be working.
dns320l-daemon -dx help
dns320l-daemon -dx GetTemperature
ps | grep -v grep | grep dns320l-daemon
sed -i 's/\(.*dns320l-daemon.*\)/#\1/' /etc/
inittab
kill -1 1
killall dns320l-daemon
ps | grep -v grep | grep dns320l-daemon
dns320l-daemon -dx GetTemperature
sed -i 's/^[#]*[[:space:]]*\(.*dns320l-daemon.*\)/\1/' /etc/
inittab
kill -1 1
ps | grep -v grep | grep dns320l-daemon
The LEDs are illuminated
both buttons, but NAS still does not turn off with the halt command via ssh.
Ronaldo Antoni
(54)9979-8920
Ronaldo Antoni
(54)9979-8920
ls -l /sys/class/gpio /sys/class/input
find /sys -name \*dns320\*
find /sys/ -name \*gpio\*
if ! test -d /sys/class/gpio/gpio29; then
echo 29 > /sys/class/gpio/export
fi
cat /sys/class/gpio/gpio29/*
for i in $(awk '/(ext2|ext3|ext4|vfat|ntfs)/{print $1}' /proc/mounts); do
mount -o remount,ro $i
done
dns320l-daemon -dx DeviceReady
dns320l-daemon -dx DeviceShutdown
Ronaldo Antoni
(54)9979-8920
[I have been trying to do this post half a dozen times! F* Google Groups!]
On Saturday, August 9, 2014 4:08:01 PM UTC+1, Ronaldo Antoni wrote:
Since Portuguese authorized me better. Much better than translations of google ...
Minhas respostas estão em negrito!
Thanks Ronaldo.
Everything is OK except the power button, continue reading.
1-Back buttons:
1-press the box back USB button for a couple of seconds. In the logread window you should see "Entering back_button" and the two box front orange leds should start blinking twice a second. Does it?
2-press the box back recessed reset button for a couple of seconds. The same as above should happens. Does it?
Ao pressionar a tecla usb:
Aug 9 11:46:05 storage daemon.info sysctrl: Entering back_button
Ao liberá-la:
Aug 9 11:46:10 storage daemon.info sysctrl: executing user script "/usr/bin/eject"
Aug 9 11:46:10 storage daemon.info sysctrl: user script "/usr/bin/eject" finished
Ao pressionar reset:
Aug 9 11:49:04 storage daemon.info sysctrl: Entering back_button
Ao soltar reset:
ug 9 11:49:09 storage daemon.info sysctrl: executing user script "/usr/bin/eject"
Aug 9 11:49:09 storage daemon.info sysctrl: user script "/usr/bin/eject" finished
OK, both USB and reset buttons are read.
Aleatoriamente, aparece no log algo do tipo:
Aug 9 11:48:55 storage daemon.info sysctrl: temp=35.3 fan=0
That's also OK, that's sysctrl logging that the temperature has changed
2-Front power button:
Press the box front button for a couple of seconds. In the logread window you should see "Power Button Pressed" and "Power Button Released!".
If you see that, press and keep pressing the power button, and one of the front orange leds should start blinking, and if you release the button at that time you should see at the logread window "Rebooting NOW" and the box should do reboot. Does it?
It is possible that the power led starts blinking fast during this test. Does it?
Don't keep the button pressed until the other orange led starts blinking, because if you release it at that time "Poweroff NOW" will appear in the logread window, but the box will NOT powerdow and you will have to unplug the power cord. We have to fix power-off latter.
Após algum tempo com o botão pressionado, o led começa a piscar. Nada é exibido no log.
hmmm, Houston, we have a problem here.
Can you please post the output of the following commands:
ls -l /sys/class/gpio /sys/class/input
find /sys -name \*dns320\*
find /sys/ -name \*gpio\*
if ! test -d /sys/class/gpio/gpio29; then
echo 29 > /sys/class/gpio/export
fi
cat /sys/class/gpio/gpio29/*
3-dns320l-daemon in client mode with a running dns320l-daemon:
execute the command
dns320l-daemon -dx help
the following should be displayed:
dns320l-daemon[2888]: cmd=help
Available Commands2:
DeviceReady, DeviceShutdown, ShutdownDaemon, EnablePowerRecovery, DisablePowerRecovery, GetPowerRecoveryState, EnableWOL, DisableWOL, GetWOLState, SetFanStop, SetFanHalf, SetFanFull, PowerLedOn, PowerLedOff, PowerLedBlink, ReadRtc, systohc, hctosys, GetTemperature, help, quit.
You can try some of these commands, e.g.,
dns320l-daemon -dx GetTemperature
and the following should appear:
cmd=GetTemperature
ERR
or
cmd=GetTemperature
42000
Or whatever the temperature * 1000 is. Does it works as expected?
[root@storage]# dns320l-daemon -dx GetTemperature
dns320l-daemon[1334]: cmd=GetTemperature
36000
OK
You can also try the SetFanStop, SetFanHalf, SetFanFull, PowerLedOn, PowerLedOff, or the PowerLedBlink commands. Do they work as expected?
As sysctrl is running, the fan might be put back at it original state some seconds after you execute the commands.
Sim, funcionam normalmente!!!
Excelent!
4-dns320l-daemon in client mode without a running dns320l-daemon:
This test requires that the dns320l-daemon be terminated first.
You can see if a dns320l-daemon is running by executing the command
ps | grep -v grep | grep dns320l-daemon
That command will output something like
2887 root dns320l-daemon
when a dns320l-daemon is running and produce no output when no dsn320l-daemon is running.
To terminate the currently running dns320l-daemon you have to tell init to not launch it again by executing the commands:
sed -i 's/\(.*dns320l-daemon.*\)/#\1/' /etc/inittab
kill -1 1
killall dns320l-daemon
after executing that above commands the command
ps | grep -v grep | grep dns320l-daemon
should produce no output at all, and we can continue testing.
Execute the command
dns320l-daemon -dx GetTemperature
I expect that on your system no error will appears and that the box temperature * 1000 be displayed. Does it?
Can you please post all the command output?
Segue toda a saída dos comandos:
[root@storage]# ps | grep -v grep | grep dns320l-daemon
982 root /usr/sbin/dns320l-daemon
[root@storage]# sed -i 's/\(.*dns320l-daemon.*\)/#\1/' /etc/inittab
[root@storage]# kill -1 1
[root@storage]# killall dns320l-daemon
killall: dns320l-daemon: no process killed
[root@storage]# ps | grep -v grep | grep dns320l-daemon
[root@storage]# dns320l-daemon -dx GetTemperature
dns320l-daemon[1350]: no server, send cmd directly to MCU
dns320l-daemon[1350]: Handling Command2: GetTemperature
dns320l-daemon[1350]: Returning 1 read bytes
dns320l-daemon[1350]: Try number: 1
35000
Excelent, it's working. This is critical to properly power off the box.
To test if power-off works, the filesystem should be remounted read-only by executing the commands
(Para testar se é possível desligar, é necessário montar os sistemas de ficheiros apenas em mode de leitura executando os commandos:)
for i in $(awk '/(ext2|ext3|ext4|vfat|ntfs)/{print $1}' /proc/mounts); do
mount -o remount,ro $i
done
Now press the power button until the power led starts flashing, then release the button and execute the command
(agora mantenha premido o botao de ON/OFF até que o led de ON comece a piscar, e então liberte o botão e execute o comando:)
dns320l-daemon -dx DeviceReady
Does the power led stops flashing?
( O led de ON/OFF parou de piscar?)
If the led stops flashing, then press again the power button until it starts flashing. In any case execute the command
Se parou, volte a pressionar o botão de ON/OFF até que o led recomece a piscar. Em qualquer caso execute o comando:)
dns320l-daemon -dx DeviceShutdown
Has the box powered-down?
(desligou-se?)
Thanks
if ! test -d /sys/class/gpio/gpio29/; then
echo no gpio export
echo 29 > /sys/class/gpio/export
fi
ls -l /sys/class/gpio/gpio29/
for i in $(ls /sys/class/gpio/gpio29/); do
echo $i: $(cat /sys/class/gpio/gpio29/$i)
done
while true; do
usleep 20000
echo value: $(cat /sys/class/gpio/gpio29/value)
echo power_button: $(cat /tmp/sys/power_button)
done
I expect to see a
2-power led:
When
you press the power button the power led starts blinking, right?
Imediately? after how many seconds? It blinks fast or slowly? (once a
second? twice a second?)
Try the following commands:# just in case:
mkdir -p /tmp/sys/power_led
# the power led should go off
echo none > /tmp/sys/power_led/trigger
echo 0 > /tmp/sys/power_led/brightness
# the power led should go on
echo none > /tmp/sys/power_led/trigger
echo 1 > /tmp/sys/power_led/brightness
# the power led should start blinking
echo timer > /tmp/sys/power_led/trigger
/tmp/sys/power_led - NENHUMA SAÍDA
Ronaldo Antoni
(54)9979-8920
while true; do
echo value: $(cat /sys/class/gpio/gpio29/value)
echo power_button: $(cat /tmp/sys/power_button)
sleep 1
done
The LED starts flashing after about ten seconds down. It is difficult to measure, but some flashes twice per second imagine.
Obrigado Ronaldo! Você é tão persistente como eu, quem será que desiste primeiro? :-)Esta é a única coisa que falta resolver. Manteve o botão prsssionado tempo suficiente? Pelo menos até o led de ON/OFF começar a piscar?
(this is last thing to solve. Did you pressed the button long enough? At least until the power led starts blinking?)
The LED starts flashing after about ten seconds down. It is difficult to measure, but some flashes twice per second imagine.
OK. It's blinking fast.
OK, please try the new attachment, it was a dns320l-daemon error.
Please attach the System log
I just quit when you quit!A pity that I know so little and can not contribute greatly to the project, but I try as far as my knowledge allows!Segue saída do comando:while true; do
usleep 20000
echo value: $(cat /sys/class/gpio/gpio29/value)
echo power_button: $(cat /tmp/sys/power_button)
doneconfirmed: even holding the button until it starts flashing button, the log does not change
Aug 17 22:03:49 DNS-323 daemon.info sysctrl[1776]: reading /etc/sysctrl.conf
Ronaldo Antoni
(54)9979-8920
--
The shutdown software already solves the problem, but it should be possible through the button. The source of the fimware dlink can not contain any clues?
A pity I did not know enough to assist you until we get to the solution.Anyway, I appreciate what already exists and I'm a willingness to help in whatever is within my reach.
First, let me quote this topic:
On Saturday, July 5, 2014 10:53:58 AM UTC-3, João Cardoso wrote:
But thanks for reporting back, there has been 28 downloads of Alt-F-0.1RC4-DNS-320L-rev-A1.bin and no report at all, so I didn't know if it was working or not!
The minimum needed for a box to work is to have disk and network access. But for me that does not means "supported", much more is need -- system temperature reading, automatic fan control, all buttons and leds working as expected... and from your report none of these seems to be right now!
So, the DNS-320L-rev-A1/A3 is not fully supported, but it works.
There are a lot of things to test, debug and fix, and most means trying and error, as I don't have such a box of my own, so instructions have to be followed, results reported back, doing another try/error cycle... all this taking days or weeks, depending on your technical expertise and linux experience.
Thanks for reporting back,
João
Well... i won't lie to you: i don't understand much of what you're saying BUT, if i can help in any way, just create a thread or mail me with what i should do, what should/shouldn't happen and what files i should send you for you to check if this works and i'll gladly do it next month (it's easier to do this on vacation). for now, i'll revert to the "stock" firmware and try to start over. i messed with so many things that i don't even know what i'm doing on it anymore.
About the examples you used on the last post, here's my impressions of what is happening
Temperature reading: sysctrl service does not recognize the board it seems. the status view, however, seems to detect the HD temperature and fan speed
check the images below
http://i.imgur.com/8Cj0dbY.png
http://i.imgur.com/EYDDTC1.png
Fan control: This one almost drove me nuts last night: basically, the fan is working on "bursts": it plays full rotation (60000) for 10-20 seconds then it returns do 50% rotation (30000) for another 10-20 seconds. the noise is giving me a goddamned headache by the way.
LEDs: the "power" led blinks when it's turning on and after that, all four (five if you count that below the "usb" button both the blue and orange leds are lit) are on 100% of the time. since when the stock d-link firmware "formatted" the HD it created a RAID-something that i'm 90% sure i did NOT asked and do NOT want, the red LEDs seems accurate enough
haven't tried messing with buttons or led functions. it isn't necessary for what i'm using it for
CPU Issue: the CPU usage also seems to have a problem: from time to time it goes on 100% CPU usage for no actual reason. checking it with a putty terminal (top command, connected via ssh), it has shown that these spikes originated in transmission, but after i killed the process, it STILL gets some spikes now and then for no reason at all.
On a side note, i faced similar problems using transmission on fun_plug and deluged+deluge-web on debian squeeze. i'm a rather heavy torrent user (at least 300GB of data divided into 20 or 30 torrents), but that's too much! specially AFTER the verification for downloaded data has finished long ago. transmission even kept filling a log file with error messages so much it ended up with almost 5gb when i deleted it.
I have bad karma with these things :(
That's about it for now. i'll keep following the project and will return later.
best of luck!
Hi there!
I don't know of this is the right group for this, but I'm desperately finding a solution. I have set up my DNS-320l
and I could use it for 2 years. But after 2 years it could not boot up occasionally and now I can't start up.
Is there any solution for this problem?