The Galieo board has a connector for a coin cell battery, specifically for remembering date and time. Nothing is plugged into it when you get the board, and therefor when you remove power, the system will forget about the time.
Alternatively, if the board is connected to the internet (based on the command you linked to my guess is yes) you should also be able to use NTP timeservers and synchronize time during startup or shortly after.
You will need to poke around in linux to get NTP setup, if I remember correctly.
Hope it helps!
depending on which image you use you would find connman including a sntp client which would set your date.
You could alternatively also use the (deprecated) rdate to get the date from a rdate server
as per your given explanation I have tried rdate
but it shows me an error like "timeout connecting to time server"
please give me some solution
iot-kit agent is not working with intel galileo
the below mention command I have executed
$ rdate -s tick.greyware.com
this works successfully..
Now If I want to run this command during booting process of intel galileo board then what to do ?? can you please tell me?
Thanx in advance
again depends on the image you use.
If your image runs systemd (try "systemctl" command in console) then you should write a systemd service file.
Otherwise you should go for a /etc/rc.d script
For sure there is plenty of doc available online - so no point putting anything here
Hope that helps
just make sure your script/service is run AFTER network is available .
thank you very much