Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Howdy all-
My dns323-rtc and dns323-temp are reporting bogus values. Rebooting doesn't help. dns323-fan does report accurate (I believe) values.
The problem seems to have started after I ran mediatomb.sh. It's quite possible that I ran it as root instead of with the sh mediatomb.sh syntax. I have 100GB of music it was attempting to index, maybe I filled up my flash ram?
Various threads have warned about letting log files use up all the flash ram.
Currently, my /var/log/lastlog is 292584 bytes, is this normal?
How can I see how much memory of my flash I've used?
Thanks in advance!
-Rolf
Offline
type the df -h
ram drive is cleared to default one whenever you restart so i doubt that's your problem
what do you mean by 'bogus values'?
Last edited by SilentException (2008-10-14 21:04:51)
Offline
SilentException wrote:
what do you mean by 'bogus values'?
temp is reading as 0C, and rtc claims that the year is 2012, even though 'date' reports the correct date.
df -h returns:
root@turtle:~# df -h Filesystem Size Used Available Use% Mounted on rootfs 9.7M 7.4M 1.8M 81% / /dev/root 9.7M 7.4M 1.8M 81% / /dev/md0 914.4G 132.6G 781.8G 15% /mnt/HD_a2 /dev/sda4 486.2M 13.0M 473.2M 3% /mnt/HD_a4 /dev/sdb4 486.2M 17.0k 486.2M 0% /mnt/HD_b4
so it looks like I've still got 1.8M free, eh? then likely not the log files...
maybe I'm not asking the right question, isn't there a portion of memory saved in flash which is not cleared on reboot? (not RAM)
Offline
i dont think so... some files do get written on flash but its the flash that gets to be rootfs on every reboot..
about temperature problem:
maybe you can output the results of 'temperature g 0' and 'strace temperature g 0' and 'strace dns323-temp' and 'ps'
Last edited by SilentException (2008-10-14 22:39:21)
Offline
SilentException wrote:
maybe you can output the results of 'temperature g 0' and 'strace temperature g 0' and 'strace dns323-temp' and 'ps'
root@turtle:~# temperature g 0 Temperature type : Fahrenheit <temperaturertc>: get temperature = 32 root@turtle:~# strace temperature g 0 execve("/usr/sbin/temperature", ["temperature", "g", "0"], [/* 18 vars */]) = 0 old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000 stat("/etc/ld-uclibc.so.cache", 0xbefa8a6c) = -1 ENOENT (No such file or directory) open("/lib/libc.so.0", O_RDONLY) = 3 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`\346\0\0004\0\0\0"..., 4096) = 4096 old_mmap(NULL, 364544, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000d000 old_mmap(0x4000d000, 306644, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000d000 old_mmap(0x4005f000, 7876, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4a000) = 0x4005f000 old_mmap(0x40061000, 18528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40061000 close(3) = 0 munmap(0x40006000, 4096) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 ioctl(3, 0x89f5, 0xbefa8c4c) = 0 close(3) = 0 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 vfork() = 13595 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0 wait4(13595, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 13595 --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 vfork() = 13597 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0 wait4(13597, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 13597 --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 brk(0) = 0x12000 brk(0x13000) = 0x13000 open("/etc/email.conf", O_RDONLY) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbefa8b3c) = -1 ENOTTY (Inappropriate ioctl for device) brk(0x14000) = 0x14000 read(3, "SADDR = \"\"\nDADDR = \"\"\nSERVER = \""..., 4096) = 136 read(3, "", 4096) = 0 close(3) = 0 write(1, "Temperature type : Fahrenheit\n", 30Temperature type : Fahrenheit ) = 30 write(1, "<temperaturertc>: get temperatur"..., 39<temperaturertc>: get temperature = 32 ) = 39 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 vfork() = 13599 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0 wait4(13599, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 13599 --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 exit(0) = ? root@turtle:~# strace dns323-temp execve("/ffp/bin/dns323-temp", ["dns323-temp"], [/* 18 vars */]) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000 stat("/ffp/etc/ld.so.cache", 0xbec42a18) = -1 ENOENT (No such file or directory) open("/ffp/lib/libc.so.0", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=322684, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\240\252\0\0004\0\0\0"..., 4096) = 4096 mmap2(NULL, 372736, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000e000 mmap2(0x4000e000, 314900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000e000 mmap2(0x40063000, 5436, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4d) = 0x40063000 mmap2(0x40065000, 16020, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40065000 close(3) = 0 munmap(0x40006000, 4096) = 0 stat("/ffp/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=21168, ...}) = 0 mprotect(0x40063000, 4096, PROT_READ) = 0 mprotect(0x4000c000, 4096, PROT_READ) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 ioctl(3, 0x89f5, 0xbec42cd4) = 0 write(1, "0 C 32 F\n", 100 C 32 F ) = 10 exit(0) = ? root@turtle:~# ps PID USER COMMAND 1 root init 2 root [ksoftirqd/0] 3 root [events/0] 4 root [khelper] 5 root [kthread] 11 root [kblockd/0] 14 root [khubd] 49 root [pdflush] 50 root [pdflush] 52 root [aio/0] 51 root [kswapd0] 189 root [scsi_eh_0] 190 root [scsi_eh_1] 191 root [scsi_eh_2] 192 root [scsi_eh_3] 203 root [mtdblockd] 217 root [kcryptd/0] 218 root [kmirrord/0] 229 root [loop0] 1238 root atd 1316 root [md0_raid1] 1504 root chkbutton 1511 root /sys/custom/upnp/upnp 0 D-Link Corporation http://www.dlink.com D-Link Network Storage 1522 root /web/webs 1533 root fancontrol 1557 root /usr/sbin/samba/smbd -D 1561 root /usr/sbin/samba/smbd -D 1562 root /usr/sbin/samba/nmbd -D 1567 root op_server 3 3 3 1578 root -sh 1614 root pure-ftpd (SERVER) 1635 root lpd Waiting 1653 nobody mt-daapd 1654 root mt-daapd 1655 root mt-daapd 1656 root mt-daapd 1692 root crond 1757 root /ffp/bin/ntpd -g -f /ffp/etc/ntp.drift 1772 root /ffp/sbin/sshd 24902 root /usr/sbin/samba/smbd -D 7846 root mt-daapd 11961 root sshd: root@pts/0 11963 root -bash 12139 root /ffp/sbin/lighttpd -f /ffp/etc/lighttpd.conf 12214 root /usr/sbin/samba/smbd -D 13151 root sshd: root@pts/2 13158 root -bash 13542 root sshd: root@pts/1 13544 root -bash 13639 root [crond] 13640 root ps
Last edited by rolfsky (2008-10-14 22:51:28)
Offline
you certainly have loads of stuff running
output of strace differs here, but sorry i couldnt be of any more help than provide my output:
root@dns-323-data:/mnt/USB# strace dns323-temp execve("/ffp/bin/dns323-temp", ["dns323-temp"], [/* 18 vars */]) = 0 old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000 stat("/etc/ld-uclibc.so.cache", 0xbe9fda6c) = -1 ENOENT (No such file or directory) open("/lib/libc.so.0", O_RDONLY) = 6 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000 read(6, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`\346\0\0004\0\0\0x"..., 4096) = 4096 old_mmap(NULL, 364544, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000d000 old_mmap(0x4000d000, 306644, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0x4000d000 old_mmap(0x4005f000, 7876, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x4a000) = 0x4005f000 old_mmap(0x40061000, 18528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40061000 close(6) = 0 munmap(0x40006000, 4096) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6 ioctl(6, 0x89f5, 0xbe9fdca4) = 0 write(1, "36 C 96 F\n"..., 1136 C 96 F ) = 11 exit(0) = ? root@dns-323-data:/mnt/USB# strace temperature g 0 execve("/usr/sbin/temperature", ["temperature", "g", "0"], [/* 18 vars */]) = 0 old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000 stat("/etc/ld-uclibc.so.cache", 0xbef37a5c) = -1 ENOENT (No such file or directory) open("/lib/libc.so.0", O_RDONLY) = 6 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000 read(6, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`\346\0\0004\0\0\0x"..., 4096) = 4096 old_mmap(NULL, 364544, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000d000 old_mmap(0x4000d000, 306644, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0x4000d000 old_mmap(0x4005f000, 7876, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x4a000) = 0x4005f000 old_mmap(0x40061000, 18528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40061000 close(6) = 0 munmap(0x40006000, 4096) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6 ioctl(6, 0x89f5, 0xbef37c3c) = 0 close(6) = 0 rt_sigaction(SIGQUIT, {0x1, [QUIT], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGINT, {0x1, [INT], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0 vfork() = 11954 --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigaction(SIGQUIT, {0x1, [QUIT], SA_RESTART|0x4000000}, {0x1, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {0x1, [INT], SA_RESTART|0x4000000}, {0x1, [INT], SA_RESTART|0x4000000}, 8) = 0 wait4(11954, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 11954 rt_sigaction(SIGQUIT, {SIG_DFL, [QUIT], SA_RESTART|0x4000000}, {0x1, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTART|0x4000000}, {0x1, [INT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGQUIT, {0x1, [QUIT], SA_RESTART|0x4000000}, {SIG_DFL, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {0x1, [INT], SA_RESTART|0x4000000}, {SIG_DFL, [INT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, 8) = 0 vfork() = 11956 rt_sigaction(SIGQUIT, {0x1, [QUIT], SA_RESTART|0x4000000}, {0x1, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {0x1, [INT], SA_RESTART|0x4000000}, {0x1, [INT], SA_RESTART|0x4000000}, 8) = 0 wait4(11956, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 11956 --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigaction(SIGQUIT, {SIG_DFL, [QUIT], SA_RESTART|0x4000000}, {0x1, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTART|0x4000000}, {0x1, [INT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, 8) = 0 brk(0) = 0x12000 brk(0x13000) = 0x13000 open("/etc/email.conf", O_RDONLY) = 6 ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbef37b2c) = -1 ENOTTY (Inappropriate ioctl for device) brk(0x14000) = 0x14000 read(6, "SADDR = \"\"\nDADDR = \"\"\nSERVER = \"\""..., 4096) = 136 read(6, ""..., 4096) = 0 close(6) = 0 write(1, "Temperature type : Fahrenheit\n"..., 30Temperature type : Fahrenheit ) = 30 write(1, "<temperaturertc>: get temperature"..., 39<temperaturertc>: get temperature = 96 ) = 39 rt_sigaction(SIGQUIT, {0x1, [QUIT], SA_RESTART|0x4000000}, {SIG_DFL, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {0x1, [INT], SA_RESTART|0x4000000}, {SIG_DFL, [INT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, 8) = 0 vfork() = 11958 rt_sigaction(SIGQUIT, {0x1, [QUIT], SA_RESTART|0x4000000}, {0x1, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {0x1, [INT], SA_RESTART|0x4000000}, {0x1, [INT], SA_RESTART|0x4000000}, 8) = 0 wait4(11958, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 11958 --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigaction(SIGQUIT, {SIG_DFL, [QUIT], SA_RESTART|0x4000000}, {0x1, [QUIT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTART|0x4000000}, {0x1, [INT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, 8) = 0 exit(0) = ?
Offline
SilentException wrote:
you certainly have loads of stuff running
output of strace differs here, but sorry i couldnt be of any more help than provide my output:
straight off the bat, the biggest difference between the two straces is that"
open("/lib/libc.so.0", O_RDONLY) gives the return value of "6" on your machine and "3" on mine.
these respective values seem to carry through the strace...
Offline
rolfsky wrote:
the biggest difference between the two straces is that"
open("/lib/libc.so.0", O_RDONLY) gives the return value of "6" on your machine and "3" on mine.
They are using different dns323-temp binaries. 3 and 6 here are only file descriptor numbers. The bigger difference is "/lib/libc.so.0" vs. "/ffp/lib/libc.so.0". Still, the important part that actually reads the termperature is:
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6 ioctl(6, 0x89f5, 0xbe9fdca4)
And that's the same (except for the pointer value) in all traces. If you get bogus results, check /var/log/messages (or dmesg output) for TWSI errors.
Offline
Hey, thanks for the help fonz! Last night I reinstalled the 1.05 fw from d-link and reset to system values (as well as removing the fun_plug_ file).
None of the three seemed to help and I was still getting bogus values. (even after several reboots from the gui)
Then, in a stroke of genius, I powered the unit off and let it sit for a minute. Upon reboot, my values appear normal for dns323-temp and dns323-rtc.
fonz wrote:
If you get bogus results, check /var/log/messages (or dmesg output) for TWSI errors.
Strangely, I don't have a /var/log/messages file
root@turtle:/var/log# ls -l -rw-r--r-- 1 root root 0 Oct 14 22:44 btmp drwx------ 4 root root 1024 Oct 14 13:43 cores -rw-rw-r-- 1 root root 292 Oct 15 07:47 lastlog drwxr-xr-x 2 root root 1024 Dec 26 2005 samba -rw-r--r-- 1 root root 384 Oct 14 23:12 wtmp
now that I've shutdown and restarted, dmseg has a lot of info, but no mention or any errors from TWSI
Offline