LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   RTC . (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/rtc-766117/)

raajeshjt 11-02-2009 12:47 AM

RTC .
 
I am using AT91SAM9260 with linux 2.6.30.4 Kernel.Usually hwclock reads time from onchip RTC.I am using both onchip RTC and external RTC ds1307.I want hwclock to read time from external RTC.Wat are the options I should enable during configure linux kernel.

Thanks and Regards
JT.Raajesh

clvic 11-03-2009 03:22 PM

The command "hwclock" can read from any source. From "man hwclock": "--rtc=filename overrides the default /dev file name", so you can select, for instance, /dev/rtc1.
You can also change the symbolic link /dev/rtc to point to the /dev/rtcX file you want to use.


All times are GMT -5. The time now is 01:55 PM.