From owner-freebsd-arm@freebsd.org Tue Nov 26 22:03:36 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7519C1C2CF9 for ; Tue, 26 Nov 2019 22:03:36 +0000 (UTC) (envelope-from james@opentech.cc) Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720083.outbound.protection.outlook.com [40.107.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47MybC30s1z4KTy for ; Tue, 26 Nov 2019 22:03:34 +0000 (UTC) (envelope-from james@opentech.cc) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d063Snrdb7eHdtqp6hnsvK0aPt8f+bYK4Us+XOE5+ZkkM7EZddIt27faPvSSL9nsycXZ4y0B/yISX6CcIn+tfStVrag/wxGy18p6H4YgaoPWtVFx9jhmsLZ9WZcT/aGpRQdZa96Mdmwm3XY2BiHZ6soZM+XIkC6o45h8cca2FFzv8qKVirOw6M9d/CFsPXGDhBog1/B36SzQ6xhtSgAiGaavBQS5AchgQUGxyTl/sB1GSu7w+TpFm86ZRVFxrsU/MJrbfJpduTbcmFhhIQvWIAXaVM9Xr6xOjBVSNaCXm3U5t+VZMCuRt5fefo9acJuo4xa/XoXcm8sUHnXDub4CeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LV/bK5ioAVB9vAzpfn9WPgDtLXRBXSr5g2YVBDxbLFQ=; b=VTsbJVGmhVQvJ2jgtA/PrLW9Bgye6H9YScgjs8IZdEzu/YIXXI7mClb6qMPWVDmPFoF5p+PogaYZBfQf19sHCiurhvP+aX+MpUnsRO1/e/aorUikoPV8+4ef5teFbYi38z58G23Otwz8SKMLxwZ0wVSpyjB+Kbeq06juJrihLZLrem6jNFkGvgkE57NprbiQPIYkRPkfsRYtAVI25u4QN8gXZb7EKQMefg+fvNGE+Pq6BAq3g2IBHXfy/8cyaJQ8y6pcOEqrkgVYsAFoefcv78IcJZnID3diX0SzqXD5ryU+wY6Mn0brXM58n8YNMduJe8BviVFKENd23yXJhANMDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=opentech.cc; dmarc=pass action=none header.from=opentech.cc; dkim=pass header.d=opentech.cc; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opentech.cc; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LV/bK5ioAVB9vAzpfn9WPgDtLXRBXSr5g2YVBDxbLFQ=; b=AqqMuBa+1Tx2AdVYPgCH5C4AsoJJeGzKqtt+cDcX13RqiVWg3AUTJCVG8/SDpU1Ko4EPXCs8zROvRx3OGfXVCT84t23hzGOVx+o60Coy4lDS+4Sk/kUx+dd+ks0U8SPW4EyblUcGNEIsv8NsvlBx8vpCMXZuLt9tYhfrvHRgcVM= Received: from MWHPR06MB3134.namprd06.prod.outlook.com (10.174.248.13) by MWHPR06MB2397.namprd06.prod.outlook.com (10.168.245.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.17; Tue, 26 Nov 2019 22:03:30 +0000 Received: from MWHPR06MB3134.namprd06.prod.outlook.com ([fe80::1943:79aa:6d34:38ba]) by MWHPR06MB3134.namprd06.prod.outlook.com ([fe80::1943:79aa:6d34:38ba%7]) with mapi id 15.20.2474.023; Tue, 26 Nov 2019 22:03:30 +0000 From: James Shuriff To: "freebsd-arm@freebsd.org" Subject: rpi3 clock drift Thread-Topic: rpi3 clock drift Thread-Index: AdWknyHEmPFTR5x9S769H5zoRTt2Vg== Date: Tue, 26 Nov 2019 22:03:30 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [71.251.5.193] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1e699828-557c-4ef6-abb2-08d772bc78f7 x-ms-traffictypediagnostic: MWHPR06MB2397: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0233768B38 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39830400003)(396003)(346002)(376002)(366004)(136003)(38564003)(199004)(189003)(6306002)(74316002)(54896002)(2906002)(55016002)(508600001)(81156014)(33656002)(9686003)(81166006)(186003)(8676002)(14454004)(25786009)(6916009)(66446008)(26005)(64756008)(6436002)(5640700003)(316002)(7116003)(2351001)(236005)(86362001)(7736002)(6506007)(71190400001)(71200400001)(790700001)(66476007)(99286004)(66556008)(76116006)(8936002)(5024004)(102836004)(7696005)(66946007)(52536014)(5660300002)(66066001)(256004)(14444005)(3846002)(2501003)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR06MB2397; H:MWHPR06MB3134.namprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: opentech.cc does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +6Im9bQR2Q17kdCRNlAIWDClEduduY/6616SCvTOhTdvP7a5gZGbbrn8pprzn4nLW69psxkr0gi3MAyVGuanlLsiDF3EMsPuaEy6ClMqoYCvP+BCY3Z3mCsxF8Ss1R7E7GeP/qWF47JBUtlMLmzSpIGeW1memTSCUOYay95JnaHMCFTigj3gr9SDu+x27IPEA2t8S0geUvau5mUQUvo2hUdM2zkcn+1930uzOxfaBthR4DIscs2gmjgIYt9QywXEecijyODU/fS6GXp3V2ZZ5UtVI/+yfuZF/A5vzKWzfy6qI6bd38FPn+Wv1dHpWCk7lBYhZMsFV5GoUYVvlKbngPi6BqB/5djCulfFNVt+H5IQkEM2U7jfArymTidor/HH/pKLW4TbknOQZ5Nu3hl6z92Dt62hVGU9RW+oc9sVGCrpvY4fVT74Pi46hRwRjm+r x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: opentech.cc X-MS-Exchange-CrossTenant-Network-Message-Id: 1e699828-557c-4ef6-abb2-08d772bc78f7 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2019 22:03:30.3141 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5c5dd5ac-929c-48f6-a3f4-c0c8602c24af X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BuJJy+F1SICY9okm3Rv0lCKTFEFSCHhkm3pa2kDKAAm5oRk1y8NbUPm5cRs7qC4uwjiZZ94WDnSPnfGleJTC3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR06MB2397 X-Rspamd-Queue-Id: 47MybC30s1z4KTy X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=opentech.cc header.s=selector1 header.b=AqqMuBa+; dmarc=pass (policy=none) header.from=opentech.cc; spf=pass (mx1.freebsd.org: domain of james@opentech.cc designates 40.107.72.83 as permitted sender) smtp.mailfrom=james@opentech.cc X-Spamd-Result: default: False [-5.35 / 15.00]; IP_SCORE(-1.35)[ipnet: 40.64.0.0/10(-3.85), asn: 8075(-2.83), country: US(-0.05)]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[opentech.cc:s=selector1]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[opentech.cc:+]; DMARC_POLICY_ALLOW(-0.50)[opentech.cc,none]; RCVD_IN_DNSWL_NONE(0.00)[83.72.107.40.list.dnswl.org : 127.0.3.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; ARC_ALLOW(-1.00)[i=1] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2019 22:03:36 -0000 My Raspberry Pi 3 Model B is having some serious clock drift issues. Ntpd d= oesn't function even with ntpd_sync_on_start, which calls ntpd with -g and = allows the initial adjustment to exceed the panic threshold. This doesn't h= elp me much because the system will continue to drift very quickly and that= option only helps for the initial adjustment. I was thinking of ordering an I2C RTC but I'm unsure how to make FreeBSD aw= are of the clock. There is a file in the Raspberry Pi firmware repo called i2c-rtc.dtbo and i= t contains defs for clocks like DS1307 so I am assuming I can add this to c= onfig.txt, build U-Boot with CONFIG_RTC_DS1307 (or whatever model), and bui= ld the kernel with device support for the clock but I'm not completely sure= if I'm going about this the right way. Beyond just getting FreeBSD to see = the clock I'm unsure how to tell FreeBSD to use it. Any advice? Thanks, - James Shuriff ________________________________ DISCLAIMER: This message and any attachments are intended solely for the us= e of the recipient and may contain confidential information. If you have re= ceived this message in error please delete it and promptly notify the sende= r, James Shuriff (james@opentech.cc).