rpi3 clock drift

James Shuriff james at opentech.cc
Fri Nov 29 18:07:04 UTC 2019


Can you help me determine where the timecounter frequency is being pulled from? I believe that 54 MHz value is being pulled from the FDT I just don't know where specifically. My board is supposed to be 19.2 MHz. I booted up FreeBSD's own RPI3 image and I got 19.2 MHz and didn't have any drift issues. Only when I use the environment I built from source do I get 54 MHz, as if an RPI 4 DTB somehow made it into the build.

I'm also interested in getting an RTC hat. I know how to build support for it in the bootloader and OS but how do you tell FreeBSD to start using it for system timing once it's connected?

- James Shuriff

-----Original Message-----
From: owner-freebsd-arm at freebsd.org <owner-freebsd-arm at freebsd.org> On Behalf Of Ross Alexander
Sent: Friday, November 29, 2019 12:56 PM
To: Ian Lepore <ian at freebsd.org>
Cc: freebsd-arm at freebsd.org
Subject: Re: rpi3 clock drift

On Fri, 29 Nov 2019, Ian Lepore wrote:

> On Thu, 2019-11-28 at 23:51 -0700, Ross Alexander wrote:
>> On Fri, 29 Nov 2019, Peter Jeremy wrote:
>>
>>> [...]
>>
>> BTW, another *significant* source of jitter is the brand and age of
>> the sd/mmc card used. [...]
>
> I'm having a real hard time with this one, conceptually.  This is
> exactly what every one of our products at $work does:  precision
> timing including ntpd and kernel time tracking UTC(GPS) to within a few nanos.
> We've had products in the field for 15 years still using the original
> sdcard and still hitting the same on-time performance numbers as the
> day they were shipped (tracking UTC(GPS) +-10ns RMS).

This is purely empirical.  $WORK machine got jitterier and jitterier.
Copied old SD card onto new SD card (straight dd, not a tar/untar), problem went away.  Beats me, but thats how it went.

regards,
Ross

============================================================================
Ross Alexander, (780) 675-6823 desk / (780) 689-0749 cell, rwa at athabascau.ca
                         54.71593 N 113.30835 W

     Order is simply a thin, perilous condition
     we try to impose on the basic reality of chaos.

        -- William Gaddis, _J R_
--
This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed.
---
_______________________________________________
freebsd-arm at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
________________________________
 DISCLAIMER: This message and any attachments are intended solely for the use of the recipient and may contain confidential information. If you have received this message in error please delete it and promptly notify the sender, James Shuriff (james at opentech.cc<mailto:james at opentech.cc>).


More information about the freebsd-arm mailing list