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-01-2009 11:47 PM

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 02: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:43 AM.