Page 2 of 4
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 12:23 pm
by nowo
ok, juuso I had found the same page, but don?t know how to use/compile it.
I will try to follow you:
I have the D6500 with samygo, so no ntp/ntpclient isn`t suplied.
I have only to download "ntpclient-2007.tgz" from your link (Do Nov 05, 2009 12:43 pm) with wget to some directory and then type into webshell: "/path/to/your/binary/ntpclient -s -h 193.110.137.171 -p 123" ("/path/to/your/binary/ntpclient" I have to modify) ?
Is It so right?
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 12:36 pm
by juusso
nowo wrote:
I have only to download "ntpclient-2007.tgz" from your link (Do Nov 05, 2009 12:43 pm) with wget to some directory and then type into webshell: "/path/to/your/binary/ntpclient -s -h 193.110.137.171 -p 123" ("/path/to/your/binary/ntpclient" I have to modify) ?
Is It so right?
From this archive you need only file
Place it to /mtd_rwarea over ftp, then enter to console (or webshell)
Code: Select all
chmod 755 /mtd_rwarea/ntpclient
/mtd_rwarea/ntpclient -s -h 193.110.137.171 -p 123
If no errors come
(i`m not sure this binary will work on D series arm, perhaps must be re-compiled), check your system time:
the output should be like:
If worked, add to your SamyGO.sh (Hospitality mode hack?) the line at the bottom:
Code: Select all
/mtd_rwarea/ntpclient -s -h 193.110.137.171 -p 123
if you don`t use SamyGO.sh, it is easy to make custom init script for /etc/init.d/.
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 1:22 pm
by nowo
ok thank you juuso.
I will taste It at Home and will post the results.
If It will work it could be placed at init-script in Samygo so other people can participate.
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 1:28 pm
by arris69
nowo wrote:ok thank you juuso.
I will taste It at Home and will post the results.
If It will work it could be placed at init-script in Samygo so other people can participate.
but if you set correct time for the linux system don't cry if you tv displays the wrong time...
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 1:56 pm
by nowo
yes I?ve read it already in the other post but hope this is not so on my TV (perhaps other firmware or whatever)

I hope the Display-Time doesn`t use the wrong system-time..

Otherwise I must show how to correct them (perhaps by setting date/time for Display from auto to manu), but first step by step..
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 7:12 pm
by nowo
cool, It does his job and no time-problems on Display =D
Thank you very mutch !!!
But It has now the UTC time, but I would need UTC +2 hours cause Summertime.
Perhaps you know which ntp-Server will have UTC+2h ?
Or setting the time NOW+2h?
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 8:54 pm
by juusso
Not sure, but i think tzdata also needs to be on tv. Don`t know, just guess

Re: Set Date/Time: Bad address
Posted: Fri Apr 27, 2012 3:19 am
by prairie
I know it's not needed but I like to see proper timestamps too. So ntpclient linked above does not work (segfault) but I see ntpd in busybox. So I try that with the following output:
Code: Select all
ntpd: sent query to 193.110.137.171
ntpd: reply from 193.110.137.171: reach 0x1f offset 1335482033.253260 delay 0.128842 status 0x24 strat 1 refid 0x4d4f5441 rootdelay 0.000000
ntpd: settimeofday: Bad address
Re: Set Date/Time: Bad address
Posted: Fri Apr 27, 2012 11:36 am
by nowo
@juuso: tzdata semms to be the thing I need

But I don`t know how to use, so I must see the man or someting else for setting to Europe/Berlin..
@prairie: I don`t know how ntpd reacts so I would say you could taste the ntpclient. Only upload that one File to Samy from
download/file.php?id=21 and then start the File via Webshell: {PATH_TO_ntpclient}/ntpclient -s -h 193.110.137.171 -p 123
What will It return ?
Re: Set Date/Time: Bad address
Posted: Fri Apr 27, 2012 11:51 am
by prairie
Thanks for the suggestion nowo but that ntpclient doesn't work on my system. Anyway, I can't set date manually so it looks like this is not possible on my firmware.
Code: Select all
date 042522212012
date: cannot set date: Bad address
date
Thu Jan 1 03:07:53 UTC 1970