Thread (3 messages) flat view 3 messages, 3 authors, 2001-03-02

Re: linuxppc-embedded: mpc8260 bus frequency calculations

From: Neil Russell <hidden>
Date: 2001-03-02 04:20:24

If bi_busfreq is set to 66.0 and the crystal is 66.6666, then the system
clock should appear to go too fast.  Sounds like what you have is the other
way around.  I've seen plenty of crystals that are running at 66.0 MHz.
Do you have one of these?

The system time is set once at boot up from the RTC.  If the system
gains/looses time by some fraction of a percent, then this may well
be just error in the crystal.  Most systems I've seen have some error.
The program "adjtimex" exists to correct this.


Neil.


On Fri, Mar 02, 2001 at 12:40:54PM +1100, Brendan J Simon wrote:
I've come accross a problem where our custom embedded 8260 board is
losing time.  I've tracked it down to the bi_busfreq value being set to
66 instead of the true value of
66.6666666666666666666666666666666666666.  One solution is to have the
board_info fields in units of Hz instead of MHz.  I could then set the
bi_busfreq value to 66666667 for much better accuracy.

Another solution might be to regularly read the real time clock.  Does
linux do this normally or does it just read the RTC once at boot up and
then just rely on it's internal timers for the system time.  I can't see
how this can be very accurate.

Thanks,
Brendan Simon.
--
Neil Russell [off-list ref]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help