From owner-freebsd-current Sat Nov 30 5:28:54 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2617337B401 for ; Sat, 30 Nov 2002 05:28:53 -0800 (PST) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CA5B43E9C for ; Sat, 30 Nov 2002 05:28:52 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0001.cvx40-bradley.dialup.earthlink.net ([216.244.42.1] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18I7fa-0003Bz-00; Sat, 30 Nov 2002 05:28:31 -0800 Message-ID: <3DE8BCAA.C42441FE@mindspring.com> Date: Sat, 30 Nov 2002 05:27:06 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Daniel C. Sobral" Cc: Giorgos Keramidas , "Daniel C. Sobral" , current@FreeBSD.ORG Subject: Re: Problem with ntpdate References: <3DE667DF.9060200@tcoip.com.br> <20021129190001.GE1092@gothmog.gr> <3DE8B803.A699D043@newsguy.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Daniel C. Sobral" wrote: > Giorgos Keramidas wrote: > > On 2002-11-28 17:00, "Daniel C. Sobral" wrote: > > > I found out that ntpdate just doesn't seem to be working at all > > > during boot. Ntpd dies because of the time differential (windows > > > changes the time two hours because of the TZ). No message from > > > ntpdate (I'll next try to divert it to syslog). If you want to add code to fix this, it's trivial: 1) Read the CMOS clock directly 2) Read the CMOS clock via vm86() 3) If there is a difference measured in round units, apply it as an adjustment to the value each time you read directly. Problem solved. Basically, it comes down to initializing an integer at boot time via a SYSCONFIG() created for that purpose. Personally, I don't have any boxes with a BIOS that's still broken. I used to have one, but I disassembled it with Frank van Gilluwe's "Sourcer", hacked the timezone adjustment out of the code, assembled the new code with MASM, and burnt some new PROMs for it. That was back in 1997. If you are looking for advice, my advice is to fix your BIOS... it's easier. 8-). Otherwise, it wouldn't be hard at all to hack the described fix into machdep.c, to make FreeBSD more tolerant of broken hardware (always one in the "plus" column). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message