Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Gaurav Pathak on January 02, 2014, 09:05:52 AM

Title: RTC Time Update Issue
Post by: Gaurav Pathak on January 02, 2014, 09:05:52 AM
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?
Title: Re: RTC Time Update Issue
Post by: KNK on January 03, 2014, 11:49:24 AM
You can enable ntpd - it will set the date on startup and keep the time in sync
Title: Re: RTC Time Update Issue
Post by: Gaurav Pathak on January 03, 2014, 12:52:05 PM
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.
Title: Re: RTC Time Update Issue
Post by: KNK on January 04, 2014, 10:56:43 AM
The board does not have RTC i think, so you may need add an UEXT module - https://www.olimex.com/Products/Modules/Time/
Title: Re: RTC Time Update Issue
Post by: Gaurav Pathak on January 07, 2014, 06:40:42 AM
It means I have to write device driver for this module using mmap.