Page 1 of 4
[SOLVED] Set Date/Time: Bad address
Posted: Wed Apr 25, 2012 8:25 am
by nowo
Hello Guys,
when I upload a File via FTP to my Samy then this file will display a Time in 1970-01-01.
On the Webshell I can see, that the Date/Time of System isn`t the same from Samy, so I whant set them manually.
Therefor I use date or rdate, but both of them return "cannot set date: Bad address".
Could it be a right problem?
I`m logged in as uid=0(root) gid=4294967295 groups=4294967295.
Greatings, nowo
AW: Set Date/Time: Bad address
Posted: Wed Apr 25, 2012 8:41 pm
by DEUS
Why u want to set date? It will be 1970 after reboot anyway there is no common clock device there This is just a guess.
Re: Set Date/Time: Bad address
Posted: Wed Apr 25, 2012 9:01 pm
by juusso
we have ntpclient which runs in background and corects linux time. IMO shipped with widget.
AW: Set Date/Time: Bad address
Posted: Wed Apr 25, 2012 9:14 pm
by DEUS
Why is ntpdate not started by default? Any issues you have in mind? Except basically unnecessary. There was no initscript or, currently can't check by myself.
Re: Set Date/Time: Bad address
Posted: Wed Apr 25, 2012 9:19 pm
by juusso
I think here was not necessary to have system time which not affects exeDSP time...
Re: Set Date/Time: Bad address
Posted: Wed Apr 25, 2012 11:23 pm
by Spoza
Where exactly shall I look for the ntpclient? I can't find it anywhere (in the TV of course).
It just drives me nuts when the recorded files don't have correct timestamp (i.e. when things which CAN be set correctly are not set correctly)
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 4:26 am
by juusso
Not sure about mstar.
Perhaps here isn't.
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 8:24 am
by DEUS
if you just want to set timestamp to file mayber touch /t "date" can do the job and use the date supplied from filename
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 10:04 am
by nowo
@DEUS: I want to set the time because when I upload a File to my TV with FTP the File will have Date from 1970.
This is not realy beautiful when I browse them on my TV.
If I could set the time once, I can write a script so the time will set on every boot.
Therefore I need to know to set the time.
@juuso: where I can get the ntpclient? I haven`t saw it in Samygo.
Must it only be downloaded with wget and then startet by script?
Or must I compile it first?
I think it`s neccessary to have the correct time if the FTP-Server will be used.
Re: Set Date/Time: Bad address
Posted: Thu Apr 26, 2012 10:56 am
by juusso
If ntp/ntpclient isn`t suplied with Extension, then you need to compile it by self. Some research on google gave the sources link:
Code: Select all
http://doolittle.icarus.com/ntpclient/ntpclient_2010_365.tar.gz
or
Code: Select all
http://www.snom.com/download/sdk/ntpclient.tar.gz
If you have working toolchain, try both and tell us the result.
For arm i have binary (for B series definitelly, duno about c and d, should work as well)
Also check here:
viewtopic.php?f=5&t=81