Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 21:37:29 -0500
From:      Vinny Abello <vinny@tellurian.com>
To:        freebsd-stable@freebsd.org
Subject:   clock reverts to epoch on boot?
Message-ID:  <7.0.1.0.2.20060213212221.04c7da20@tellurian.com>

next in thread | raw e-mail | index | archive | help
I have an odd problem... I've recently upgraded (binary) from FreeBSD 
5.4 to FreeBSD 6.0 then CVSUP'ed to STABLE (6.1 Pre-release) a few 
days ago, around February 10th it looks like (back when my time 
worked right) :). I went through the whole thing like normal, rebuilt 
world, built custom kernel, etc... I also updated the BIOS and RAID 
firmware on the server, a Dell 2650. During this update process it 
seems FreeBSD's time handling went a little crazy. Although my CMOS 
clock is correct (I can verify it by rebooting and going into the 
setup), every time FreeBSD boots, it thinks it is the beginning of 
Epoch time... I can sync it with ntp, but upon reboot it is right 
back to Epoch again. I searched the archives and couldn't find this 
exact problem... Now, I did do a lot of updates and unfortunately 
didn't notice exactly when it broke. Some programs were acting a 
little strange (BIND in particular consuming my CPU on bootup until I 
manually restart it) and my RRD databases are very confused as well 
as other programs naturally.

I *think* this started happening after I did a 
buildworld/installworld (in single user of course) but I'm not 
positive. Here is my dmesg output for my hardware:


Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 6.1-PRERELEASE #8: Sat Feb 11 01:39:04 EST 2006
     root@engbox.tellurian.net:/usr/obj/usr/src/sys/ENGBOX
ACPI APIC Table: <DELL   PE2650  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2782.06-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Features2=0x4400<CNTX-ID,<b14>>
real memory  = 4026400768 (3839 MB)
avail memory = 3946569728 (3763 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  6
ioapic0: Changing APIC ID to 8
ioapic1: Changing APIC ID to 9
ioapic2: Changing APIC ID to 10
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
ioapic2 <Version 1.1> irqs 32-47 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL PE2650> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <unknown> at device 4.0 (no driver attached)
pci0: <unknown> at device 4.1 (no driver attached)
pci0: <unknown> at device 4.2 (no driver attached)
pci0: <display, VGA> at device 14.0 (no driver attached)
atapci0: <ServerWorks CSB5 UDMA100 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x17
7,0x376,0x8b0-0x8bf at device 15.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
ohci0: <OHCI (generic) USB controller> mem 0xfe100000-0xfe100fff irq 
5 at device
  15.2 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isab0: <PCI-ISA bridge> at device 15.3 on pci0
isa0: <ISA bus> on isab0
pcib1: <ACPI Host-PCI bridge> on acpi0
pci4: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 8.0 on pci4
pci5: <ACPI PCI bus> on pcib2
aac0: <Dell PERC 3/Di> mem 0xf0000000-0xf7ffffff irq 30 at device 8.1 on pci4
aac0: [FAST]
aac0: Adaptec Raid Controller 2.0.0-1
pcib3: <ACPI Host-PCI bridge> on acpi0
pci3: <ACPI PCI bus> on pcib3
bge0: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 
0xfcf10000-0xfcf
1ffff irq 28 at device 6.0 on pci3
miibus0: <MII bus> on bge0
brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX
-FDX, auto
bge0: Ethernet address: 00:0d:56:ba:73:bf
bge1: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 
0xfcf00000-0xfcf
0ffff irq 29 at device 8.0 on pci3
miibus1: <MII bus> on bge1
brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX
-FDX, auto
bge1: Ethernet address: 00:0d:56:ba:73:c1
pcib4: <ACPI Host-PCI bridge> on acpi0
pci2: <ACPI PCI bus> on pcib4
pcib5: <ACPI Host-PCI bridge> on acpi0
pci1: <ACPI PCI bus> on pcib5
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
orm0: <ISA Option ROMs> at iomem 
0xc0000-0xc7fff,0xc8000-0xcbfff,0xec000-0xeffff
  on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
acd0: CDROM <TEAC CD-ROM CD-224E/K.9A> at ata0-master UDMA33
aacd0: <RAID 1 (Mirror)> on aac0
aacd0: 34712MB (71091456 sectors)
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/aacd0s1a
bge0: link state changed to UP

I may try doing a cvsup of source and rebuilding again. My make.conf 
settings are pretty tame:

CPUTYPE=pentium4
CFLAGS= -O2 -pipe
COPTFLAGS= -O -pipe
NO_GAMES=true
PERL_VER=5.8.7
PERL_VERSION=5.8.7


I can't see anything out of the ordinary combing through the syslog output.

Any ideas? Any takers? :) Thanks in advance!

Vinny Abello
Network Engineer
Server Management
vinny@tellurian.com
(973)300-9211 x 125
(973)940-6125 (Direct)
PGP Key Fingerprint: 3BC5 9A48 FC78 03D3 82E0  E935 5325 FBCB 0100 977A

Tellurian Networks - The Ultimate Internet Connection
http://www.tellurian.com (888)TELLURIAN

"Courage is resistance to fear, mastery of fear - not absence of 
fear" -- Mark Twain




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7.0.1.0.2.20060213212221.04c7da20>