From nobody Sun Jul 07 17:18:56 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 4WHDWL6H0sz5Q7Cs for ; Sun, 07 Jul 2024 17:19:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WHDWL13yxz4mfx for ; Sun, 7 Jul 2024 17:19:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-761e0f371f5so1930349a12.1 for ; Sun, 07 Jul 2024 10:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1720372749; x=1720977549; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FTp8y6SJGu03nDJ09YbKH2NPWPHd0ADHJfz5/C5v9LI=; b=Kgt8VtTP+RaAH72AAFcqhkGsF7jAO2TM4ohJQRCvLgFlgKT8FKh0nAIZL1OFEbtYgr rwtTlkxjtFuYDd0RRrygFV1HhyLcfeVk/aEvKLYwSUI8zG45sQgZyhncA3Y91ZJUZ7g5 g7gP6/0N73SEHtrQsu9JhRu+k1c0kYudwN8ErK4k6fS7mOwBnh8mjIH6dy6KHqcMse/h uJAcTJ71p/o+IOR3kzEv4ktbfFyA1PO3m77cZ23Ch/P/6pHtS/lF71VH2t3iS4vVB8Iz Ewb0a/oyjo7ZBEpaPnATTh9X28BS2L/nGjewlZWF3Slg5Xsc1Udq0rO/Sr/nw01UUA8M 4EnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720372749; x=1720977549; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FTp8y6SJGu03nDJ09YbKH2NPWPHd0ADHJfz5/C5v9LI=; b=eUmGjBTrd+8U/k6zv5hiC6W0yJrkBpA6H7dlRQuiJycpKc8IZFT+Pg2JRo7gLUrfNJ 0Cf/oBBkpxO3OeESOvpNQJqUolE/Itamegm+oyNeBcPNDfHhidlgQ5zHJJLSe3ylSpLb xnS12sr25Lqh7zMNPc1V5TfOjNfTKEpWrONtSWQ3UlhPO+W55f1YQhxIej37ZgW7Pk06 yGF1pSEA9swwd0G2ERj5G6M5pAdu634FL/sZT6xqJ0eB431xCjy74bMpn9rQyF8NI1nx MeaFedhChbahHAl6hj/E703NREewwYETrAebKPvYdX81W0nxENyOj/YfUVSNJ/6tyKfX Qecg== X-Forwarded-Encrypted: i=1; AJvYcCVV6/mzN+9wqHz2p6QXc4SHmACv1Rq/f/edf7KCkiDsEgK4WcvDL4bZsjwCA70ee2Gv9/wLPRdYp49rSDzdTnQvMFazYa1AcA== X-Gm-Message-State: AOJu0Yy0C+XPWo6K/Q0vyRghj8LItE/xVNEDuCCWNtfHjg3QybbAdsWX VIeyhLJa4DxfGxaOiOPdKv9K4yAPe9GDR7RMyvz8UFQihAXb/AGN7yh1ddDsXQgiWbnme6w8gzk 6/aZ7GjLG8afMi/9cXkctYRMxh2GvNfKnWEXd1/hOdHDrNai8 X-Google-Smtp-Source: AGHT+IF04zwGyk0PGD1aFD6Hd9gpl29fPslmava9aSLlRcStLuENS0K3hxnfCa9fCpMiiOnk5vuc1DZx27lSrUQ7rYI= X-Received: by 2002:a17:90b:3846:b0:2c9:e24d:bbba with SMTP id 98e67ed59e1d1-2c9e24df187mr5642730a91.21.1720372748581; Sun, 07 Jul 2024 10:19:08 -0700 (PDT) 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 References: <454282477.15929.1720372600841@localhost> In-Reply-To: <454282477.15929.1720372600841@localhost> From: Warner Losh Date: Sun, 7 Jul 2024 11:18:56 -0600 Message-ID: Subject: Re: ntpd vs ntpdate with no hardware clock To: Ronald Klop Cc: bob prohaska , "freebsd-arm@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000008f9bd7061cab7e55" 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WHDWL13yxz4mfx --0000000000008f9bd7061cab7e55 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jul 7, 2024, 11:16=E2=80=AFAM Ronald Klop wr= ote: > I created fakertc for my rpi4. > > https://www.freshports.org/sysutils/fakertc/ > > Saves the time on shutdown and sets it back early at boot. > > Plus I use ntpdate together with ntpd. Works fine. > Curious why the root mod time isn't firing... it whould alrwady do that Warner Regards, > Ronald > > *Van:* bob prohaska > *Datum:* 7 juli 2024 18:01 > *Aan:* freebsd-arm@freebsd.org > *Onderwerp:* ntpd vs ntpdate with no hardware clock > > Just tried using ntpd with a fresh 14.1 installation on a Pi4. > Near as I can tell, ntpd reports a failure due to the clock > being off by too much, even if it's set manually to within > a minute before reboot. Probably that's caused by the lack > of a hardware clock on the Pi4, linux has a bodge called > fake-hwclock. Is there an equivalent workaround for FreeBSD? > > In the meantime ntpdate seems to work, though deprecated > > Thanks for reading, > > bob prohaska > > > ------------------------------ > > > > > --0000000000008f9bd7061cab7e55 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Jul 7, 2024, 11:16=E2=80=AFAM Ronald Klop <= ronald-lists@klop.ws> wrote:=
I created fakertc for my rpi4= .=C2=A0


Saves the time on shutdown and= sets it back early at boot.

Plus I use ntpdate to= gether with ntpd. Works fine.

Curious why the root mod time isn'= ;t firing... it whould alrwady do that

Warner=C2=A0

Reg= ards,
Ronald

Van: bob pr= ohaska <fbsd@www.zefox.net>
Datum: 7 juli 202= 4 18:01
Aan: freebsd-arm@freebsd.org
Onderwerp: ntpd vs ntpdate with no hardware clock

Just tried using ntpd with a fresh 14= .1 installation on a Pi4.
Near as I can tell, ntpd reports a failure due to the clock
being off by too much, even if it's set manually to within
a minute before reboot. Probably that's caused by the lack
of a hardware clock on the Pi4, linux has a bodge called
fake-hwclock. Is there an equivalent workaround for FreeBSD?

In the meantime ntpdate seems to work, though deprecated

Thanks for reading,

bob prohaska






--0000000000008f9bd7061cab7e55--