From nobody Sun Jul 07 19:28:11 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 4WHHNT1PK3z5QLwq for ; Sun, 07 Jul 2024 19:28:25 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 4WHHNS5WZ6z47XS for ; Sun, 7 Jul 2024 19:28:24 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-7036e383089so82665a34.2 for ; Sun, 07 Jul 2024 12:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1720380503; x=1720985303; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PZDveNhlHTRj/1he0aqUlUhzLAR+PcL9hxWoR325KSQ=; b=yooE/VkyiYBCfQETZnmQmO5yg1oFvNFpR8/sQ3eX5AmtgM6xiYExlOoR8beS8ZLp4u dqIONMvrEvkSBmSUiGn7vZWQTMEzxnXNi8PyTZ9Cgb/9eS9febzZbsaxtqdyH3eqckY2 LoakwEdqMIWlDhzvuoR73JNi9ub+DywB70u73d8khxC3Ghay8jqGzThsIeHuBb7lAPap 7LufX7dl69b9OB4a23bXK03PCjmj325Wj6qiDp1vXo6Dh3Uc9SftaGycemFSBpkgaTk0 Ev4j3ZtWOWgKr/yvD0U2TaCmeQZyCzc9/sd8I+4cR7cg4kj4anENXb6jJBI5SS38z830 Mg3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720380503; x=1720985303; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PZDveNhlHTRj/1he0aqUlUhzLAR+PcL9hxWoR325KSQ=; b=soro6y89sIFPSIJZTgqMjP1N/tlOtNqQnPzkqRBYfA9If3d8vXEuntvyq4NYNB339J YXR6A6PUOcM7kOLeEmXY9wEmkKPh43k7RCaUCfv0aLGGaGoFLMyN1d0xy1Gm8mkg1juS lcSDyCnSuIY/EcZwXwGZstc2MoKy1IscFwFjc0acNUSyLVF9PwYGsN6vEpesxRz1cTfU 5WGbwDOmkmo4P+yLdX9MKS/0fVFhYk2lbMysMP+tbBmqJayK01JLYWmPj6pL88NtXoZB ONMiLCvro/7u1nt9jvaqUxZ4cRNhRw7Q91VI2imn45eXF2X0hgNW1+B0qUTn8q0U6Zww qZ+Q== X-Forwarded-Encrypted: i=1; AJvYcCVsrQG0+S8qWGghf3rwTAFqJHC00EKZRB4807lzrhjEFYBP8fmFJogZ0mTwwnpupGHyd+Rv6AcGF1LpSlDpZZNQYntEnwLSfg== X-Gm-Message-State: AOJu0YwKQIYr9UNjxo82ssGyrItNMmccWmoSzLKlUGbb/8egaT1fX7TH GcRabUeMr2owjcLQySqU5fpFCMEkEm5mmTCxZrKkvrWfv4TOCb2iHDEZczSikTgrral8KZt2iCc = X-Google-Smtp-Source: AGHT+IGAET2us5p+Qs323rvbfMjJXF80meoQAu3Gwi0nr1lxjy7Svfv3YgLOhd57eP04qbF4UQZyqw== X-Received: by 2002:a05:6830:1d44:b0:702:59b:d26 with SMTP id 46e09a7af769-7034a80aa08mr12305736a34.27.1720380503370; Sun, 07 Jul 2024 12:28:23 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7080205a19fsm17481355b3a.20.2024.07.07.12.28.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jul 2024 12:28:22 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: ntpd vs ntpdate with no hardware clock From: Bakul Shah In-Reply-To: <1643prpr-11o6-9s9p-0r34-ns09136o5sqr@fncre.vasb> Date: Sun, 7 Jul 2024 12:28:11 -0700 Cc: Ronald Klop , bob prohaska , FreeBSD ARM List Content-Transfer-Encoding: quoted-printable Message-Id: References: <454282477.15929.1720372600841@localhost> <1643prpr-11o6-9s9p-0r34-ns09136o5sqr@fncre.vasb> To: Marcin Cieslak X-Mailer: Apple Mail (2.3774.600.62) 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: 4WHHNS5WZ6z47XS > On Jul 7, 2024, at 12:07=E2=80=AFPM, Marcin Cieslak = wrote: >=20 > On Sun, 7 Jul 2024, Ronald Klop wrote: >=20 >> I created fakertc for my rpi4. = https://www.freshports.org/sysutils/fakertc/ >>=20 >> Saves the time on shutdown and sets it back early at boot. >>=20 >> Plus I use ntpdate together with ntpd. Works fine. >=20 > I have question here: >=20 > Rrecently I have removed an RTC battery > from my amd64 system and it turned out > that ntpd couldn't do anything to set the time > because the local DNS resolver failed > (I presume it was dnssec failure). >=20 > What is the most elegant solution to > cope with such a race condition? > (DNS needs time, setting time needs DNS) I ran into this on an old MBP. See = https://forums.freebsd.org/threads/when-named-stops-working-on-reboot-afte= r-a-long-power-out.93673/ I don't have a solution. May be use ntpdate with a dotted address instead of a dns name for an ntp server?=