From nobody Sat Mar 16 01:07:28 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TxNJy0ZCXz5DMLB for ; Sat, 16 Mar 2024 01:08:02 +0000 (UTC) (envelope-from karl@denninger.net) Received: from colo1.denninger.net (colo1.denninger.net [104.236.120.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TxNJx2MP7z4fnD for ; Sat, 16 Mar 2024 01:08:01 +0000 (UTC) (envelope-from karl@denninger.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=denninger.net; spf=pass (mx1.freebsd.org: domain of karl@denninger.net designates 104.236.120.189 as permitted sender) smtp.mailfrom=karl@denninger.net Received: from denninger.net (096-033-195-197.res.spectrum.com [96.33.195.197]) by colo1.denninger.net (Postfix) with ESMTP id 97F002110F3 for ; Fri, 15 Mar 2024 21:07:35 -0400 (EDT) Received: from [192.168.10.25] (D15.Denninger.Net [192.168.10.25]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by denninger.net (Postfix) with ESMTPSA id 1E2CDC2C6 for ; Fri, 15 Mar 2024 21:07:30 -0400 (EDT) Message-ID: <21f27516-beef-44b1-9669-12370604a37a@denninger.net> Date: Fri, 15 Mar 2024 21:07:28 -0400 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Karl Denninger Subject: RPI 2 and 3 with USB GPS and PPS Input To: "freebsd-arm@freebsd.org" Content-Language: en-US Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms070201020404070302070806" X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.81 / 15.00]; SIGNED_SMIME(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.99)[-0.994]; NEURAL_HAM_MEDIUM(-0.93)[-0.928]; DMARC_POLICY_ALLOW(-0.50)[denninger.net,none]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ATTACHMENT(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:14061, ipnet:104.236.64.0/18, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEFALL_USER(0.00)[karl]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4TxNJx2MP7z4fnD This is a cryptographically signed message in MIME format. --------------ms070201020404070302070806 Content-Type: multipart/alternative; boundary="------------M31v0cYmDsbEVQ9dVD6F5QSi" --------------M31v0cYmDsbEVQ9dVD6F5QSi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Trying to get this to work reasonably.... I can use ntp with a USB GPS fine; I do not want to use the serial I/O for it (it has serial I/O pins that are 3.3v compliant) because then if its connected, unless I manually configure a different uBoot, the box won't come up if the GPS is talking (and it always is, of course.) I have the gpio-pps overlay in with the .ko loaded and the device node is created on boot.  Configuring it in /etc/ntp.conf as: server 127.127.20.0 prefer server 127.127.22.0 minpoll 4 maxpoll 4 fudge 127.127.20.0 time2 +0.066 comes up with both the GPS and PPS initially, and appears to be ok: ntpq> peer      remote           refid      st t when poll reach   delay offset  jitter ============================================================================== *GPS_NMEA(0)     .GPS.            0 l   14   64  377    0.000 +2.243  11.107 oPPS(0)          .PPS.            0 l    6   16  377    0.000 +1.723   1.514 But.... after some period of time ntp declares BOTH to be "false tickers" and drops them.  Once it does it will not consider them "ok" again even if I wait an hour or more unless I shut down and restart ntpd. ntpq> peer      remote           refid      st t when poll reach   delay offset  jitter ============================================================================== xGPS_NMEA(0)     .GPS.            0 l   46   64  377    0.000 +6.181   0.359 xPPS(0)          .PPS.            0 l    6   16  377    0.000 +2.467   0.128 In ntpd's usual way it is less than helpful (that is, no log messages of information at all) about /why /it did that. I'm assuming it sees something discordant between the PPS signal and the NMEA output that causes it to declare both "bad"; unfortunately it looks like gpsd doesn't know how to use the gpiopps kernel module at all nor the /dev/pps0 device node which bites as otherwise I suspect I could at least figure out why its upset. This is consistent on both a Pi2 and Pi3 on 13.2-STABLE and 13.3-STABLE respectively (the latter built this afternoon) and I moved the PPS pin from the "built in" one that was concordant with PCM use to another with no change in behavior. Has anyone had any luck with this?  I can run without the PPS if I'm willing to live with that and it does appear to be stable. Thanks in advance. -- Karl Denninger karl@denninger.net /The Market Ticker/ /[S/MIME encrypted email preferred]/ --------------M31v0cYmDsbEVQ9dVD6F5QSi Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Trying to get this to work reasonably.... I can use ntp with a USB GPS fine; I do not want to use the serial I/O for it (it has serial I/O pins that are 3.3v compliant) because then if its connected, unless I manually configure a different uBoot, the box won't come up if the GPS is talking (and it always is, of course.)

I have the gpio-pps overlay in with the .ko loaded and the device node is created on boot.  Configuring it in /etc/ntp.conf as:

server 127.127.20.0 prefer
server 127.127.22.0 minpoll 4 maxpoll 4
fudge 127.127.20.0 time2 +0.066

comes up with both the GPS and PPS initially, and appears to be ok:

ntpq> peer
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*GPS_NMEA(0)     .GPS.            0 l   14   64  377    0.000   +2.243  11.107
oPPS(0)          .PPS.            0 l    6   16  377    0.000   +1.723   1.514

But.... after some period of time ntp declares BOTH to be "false tickers" and drops them.  Once it does it will not consider them "ok" again even if I wait an hour or more unless I shut down and restart ntpd.

ntpq> peer
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
xGPS_NMEA(0)     .GPS.            0 l   46   64  377    0.000   +6.181   0.359
xPPS(0)          .PPS.            0 l    6   16  377    0.000   +2.467   0.128


In ntpd's usual way it is less than helpful (that is, no log messages of information at all) about why it did that.  I'm assuming it sees something discordant between the PPS signal and the NMEA output that causes it to declare both "bad"; unfortunately it looks like gpsd doesn't know how to use the gpiopps kernel module at all nor the /dev/pps0 device node which bites as otherwise I suspect I could at least figure out why its upset.

This is consistent on both a Pi2 and Pi3 on 13.2-STABLE and 13.3-STABLE respectively (the latter built this afternoon) and I moved the PPS pin from the "built in" one that was concordant with PCM use to another with no change in behavior.

Has anyone had any luck with this?  I can run without the PPS if I'm willing to live with that and it does appear to be stable.

Thanks in advance.

--
Karl Denninger
karl@denninger.net
The Market Ticker
[S/MIME encrypted email preferred]
--------------M31v0cYmDsbEVQ9dVD6F5QSi-- --------------ms070201020404070302070806 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC DbowggagMIIEiKADAgECAhMA5EiKghDOXrvfxYxjITXYDdhIMA0GCSqGSIb3DQEBCwUAMIGL MQswCQYDVQQGEwJVUzEQMA4GA1UECAwHRmxvcmlkYTESMBAGA1UEBwwJTmljZXZpbGxlM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