From nobody Sun Jul 07 17:15:16 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 4WHDQx3XV0z5Q6t1 for ; Sun, 07 Jul 2024 17:15:21 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "generic", Issuer "generic" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WHDQw4g3Xz4lkY for ; Sun, 7 Jul 2024 17:15:20 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.17.1) with ESMTPS id 467HFHVd011016 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 7 Jul 2024 10:15:17 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.17.1/Submit) id 467HFGRv011015; Sun, 7 Jul 2024 10:15:16 -0700 (PDT) (envelope-from fbsd) Date: Sun, 7 Jul 2024 10:15:16 -0700 From: bob prohaska To: Warner Losh Cc: "freebsd-arm@freebsd.org" Subject: Re: ntpd vs ntpdate with no hardware clock Message-ID: References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Rspamd-Queue-Id: 4WHDQw4g3Xz4lkY On Sun, Jul 07, 2024 at 10:16:34AM -0600, Warner Losh wrote: > Try -q on ntpd. It will step system time, but only once. > > FreeBSD will set the time to the last modification of /. At least for > UFS... I'm guessing this is why it was within a minute.... and is FreeBSD's > psuedo equivalent. > Trying in /etc/rc.conf ntpd_enable="YES" ntpd_sync_on_start="YES" resulted in Starting ntpd. Jul 7 16:31:47 nemesis ntpd[1736]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired 10 days ago which looks like UTC presented as PDT. Trying in /etc/rc.conf ntpd_enable="YES" # Run ntpd Network Time Protocol (or NO). ntpd_sync_on_start="NO" # Sync time on ntpd startup, even if offset is high ntpd_flags="-q" resulted in a report ending 7 Jul 16:37:55 ntpd[1731]: Clock offset exceeds panic threshold. 7 Jul 16:37:55 ntpd[1731]: Set system clock by hand. Finally, adding ntpd_sync_on_start="YES" set the time sensibly during boot. Thanks very much, ntpd is now usable! bob prohaska