RTC Time Update Issue

Started by Gaurav Pathak, January 02, 2014, 09:05:52 AM

Previous topic - Next topic

Gaurav Pathak

Hi,
I am newbie to Embedded Linux. I have A20-Olinuxino-Micro Rev E, board. The difficulty I am facing is that when ever I start my board I have to update the date and time by running command "date ddMMhhmmyyy". As there is no battery backup for on-chip RTC I am fed up by running this command everytime after boot up.
Is there any way to provide battery backup only to RTC or any other way around?

KNK

You can enable ntpd - it will set the date on startup and keep the time in sync

Gaurav Pathak

Thank you for your reply.
But to sync time using ntp I think I have to connect the board into LAN? If it is so then I am helpless. Is there any other way around so that I don't have to connect it to Router or network in order to update time.

KNK

The board does not have RTC i think, so you may need add an UEXT module - https://www.olimex.com/Products/Modules/Time/

Gaurav Pathak

It means I have to write device driver for this module using mmap.