From owner-freebsd-arm@freebsd.org Tue Jan 10 21:11:22 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92A00CAA03F for ; Tue, 10 Jan 2017 21:11:22 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7100D1CE4; Tue, 10 Jan 2017 21:11:22 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from pmather.lib.vt.edu (pmather.lib.vt.edu [128.173.126.193]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id AA2295CF; Tue, 10 Jan 2017 16:11:14 -0500 (EST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: NTP boot at start on bbone black From: Paul Mather In-Reply-To: <1484080340.96230.90.camel@freebsd.org> Date: Tue, 10 Jan 2017 16:11:14 -0500 Cc: jungle Boogie , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <1484080340.96230.90.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2017 21:11:22 -0000 On Jan 10, 2017, at 3:32 PM, Ian Lepore wrote: > On Tue, 2017-01-10 at 12:26 -0800, jungle Boogie wrote: >> Sorry, forgot a subject! >>=20 >> On 10 January 2017 at 12:26, jungle Boogie >> wrote: >>>=20 >>> Hi All, >>>=20 >>> Running latest 12-current snapshot on a beagle bone black: >>> % uname -a >>> FreeBSD beaglebone 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r311461: >>> Fri >>> Jan 6 03:13:01 UTC 2017 >>> root@releng3.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEB >>> ONE >>> arm >>>=20 >>> I have ntp setup to start at boot: >>> % cat /etc/rc.conf >>> hostname=3D"beaglebone" >>> ifconfig_DEFAULT=3D"DHCP" >>> sshd_enable=3D"YES" >>> sendmail_enable=3D"NONE" >>> sendmail_submit_enable=3D"NO" >>> sendmail_outbound_enable=3D"NO" >>> sendmail_msp_queue_enable=3D"NO" >>> growfs_enable=3D"YES" >>> ntpd_enable=3D"YES" >>>=20 >>> And yet, no ntp process is running. >>>=20 >>> % ntpq -p >>> ntpq: read: Connection refused >>>=20 >>>=20 >>> What's the trick to get ntp to start at boot to sync time? >>>=20 >>> Thanks! >=20 >=20 > Add ntpd_sync_on_start=3DYES and it should work. Ntpd is most likely > panicking and exiting because it's afraid to step the clock more than > 1000 seconds, which is needed on systems that don't have a battery- > backed clock and start up with a time far in the past. Using the sync > on start option gives ntpd permission to step the clock any amount it > needs to, just one time at startup. As an alternative, I'm using the net/ntimed package on my BeagleBone = Black and other FreeBSD/arm systems. It's lightweight, reliable, and = easy to use if all you want to do is keep your clock synchronised with = other NTP hosts on the network. Cheers, Paul.