Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

OMAPL137, am1705, rtc not syncing with ntp

$
0
0

Hello,

I am working to get the omap_rtc in sync with ntpd.  The board is getting ntp updates so the date command shows the correct time in UTC.

root@module:/# date
Tue Jun 24 13:20:04 UTC 2014
root@module:/#

However, it does not appear that the rtc gets any updates.

root@module:/# cat /proc/driver/rtc
rtc_time        : 00:00:00
rtc_date        : 2000-01-01
alrm_time       : 00:00:01
alrm_date       : 2000-01-01
alarm_IRQ       : yes
alrm_pending    : no
update IRQ enabled      : no
periodic IRQ enabled    : no
periodic IRQ frequency  : 1
max user IRQ frequency  : 64
24hr            : yes
root@module:/#

I have tried hwclock --systohc, but still get the above from rtc.

In the config we have CONFIG_RTC_LIB=y, CONFIG_RTC_CLASS=y, CONFIG_RTC_HCTOSYS=y, and CONFIG_RTC_HCTOSYS_DEVICE="rtc0".  There are no I2C, SPI, or platform RTC drivers configured. CONFIG_RTC_DRV_OMAP=y.

Also, hwclock does not return any time information.

root@module:/# hwclock
hwclock: select() to /dev/rtc to wait for clock tick timed out: Success
root@module:/#

root@module:/# hwclock --systohc
hwclock: select() to /dev/rtc to wait for clock tick timed out: Success
root@module:/#

Hopefully, this is close.

thanks,

Dan


Viewing all articles
Browse latest Browse all 17527

Trending Articles