From owner-freebsd-arm@freebsd.org Tue Jan 10 20:32:28 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 E844FCAA9D5 for ; Tue, 10 Jan 2017 20:32:28 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE0851CEF for ; Tue, 10 Jan 2017 20:32:28 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: f051f12f-d773-11e6-8c89-112185c90658 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id f051f12f-d773-11e6-8c89-112185c90658; Tue, 10 Jan 2017 20:32:43 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v0AKWKXW006986; Tue, 10 Jan 2017 13:32:20 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1484080340.96230.90.camel@freebsd.org> Subject: Re: NTP boot at start on bbone black From: Ian Lepore To: jungle Boogie , "freebsd-arm@freebsd.org" Date: Tue, 10 Jan 2017 13:32:20 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 20:32:29 -0000 On Tue, 2017-01-10 at 12:26 -0800, jungle Boogie wrote: > Sorry, forgot a subject! > > On 10 January 2017 at 12:26, jungle Boogie > wrote: > > > > Hi All, > > > > 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 > > > > I have ntp setup to start at boot: > > % cat /etc/rc.conf > > hostname="beaglebone" > > ifconfig_DEFAULT="DHCP" > > sshd_enable="YES" > > sendmail_enable="NONE" > > sendmail_submit_enable="NO" > > sendmail_outbound_enable="NO" > > sendmail_msp_queue_enable="NO" > > growfs_enable="YES" > > ntpd_enable="YES" > > > > And yet, no ntp process is running. > > > > % ntpq -p > > ntpq: read: Connection refused > > > > > > What's the trick to get ntp to start at boot to sync time? > > > > Thanks! Add ntpd_sync_on_start=YES 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. -- Ian