ts-7000
[Top] [All Lists]

Re: [ts-7000] RTC daughterboard on TS-7200 - how to use?

To:
Subject: Re: [ts-7000] RTC daughterboard on TS-7200 - how to use?
From: Kevin Cozens <>
Date: Mon, 21 Jan 2008 23:39:32 -0500
Jeff Cunningham wrote:
> I would like to set the system clock from it on boot up (via hwclock if
> possible).
> At the moment, I can't figure out how to do anything with it - read its
> time, set its time - anything.

If the clock hardware is supported under Linux (which it may be as you have a 
/dev/rtc), you should have no problem. On the TS-7250 board I am using the 
rcS.sysinit file contains the lines:

#set system clock here
if [ -f /proc/driver/rtc ]; then
         echo "setting system clock"
         /sbin/hwclock -s
         date
fi

You should check for something similar on your board. You can test if running 
hwclock sets the system time. If it works, you should check to see if the 
start up scripts on your board include any call to hwclock. If there isn't 
one, add it to rcS.sysinit or rc.local. You can set the system time on your 
board by hand then use hwclock to write the system time to the RTC so your 
board will give you the current time the next time you boot the board.

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/           |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172      |"Same thing we always do, Pinkutus:
                                 |  Try to assimilate the world!"
#include <disclaimer/favourite> |              -Pinkutus & the Borg


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU