> On 12. Jan 2024, at 19:39, Otto Moerbeek <o...@drijf.net> wrote:
> 
> On Fri, Jan 12, 2024 at 07:15:43PM +0100, Christian Weisgerber wrote:
> 
>> Otto Moerbeek:
>> 
>>> http://man.openbsd.org/octrtc seems to suggest EdgeRouter does not have
>>> an RTC. A dmesg should give more certainty.
>> 
>> I think the original poster is aware of this.
>> 
>> If I understand correctly, he expects that on reboot the system
>> clock is restored to the last value from before the reboot (so only
>> a minute or so is lost), and that this value is transported by a
>> time stamp on the root filesystem.  Apparently that doesn't happen.
> 
> Which is strange as the code to fall back to fs time is MI.
> That's why I asked for a dmesg, it might give a clue of what is going on.
> 

I should have clarified this. Thanks for pointing out, Christian. That machine 
has not rtc or battery backed clock. Please find dmesg at the end of this mail.

Here is what I observe in /var/log/messages, observe the timestamps.

I think Theo’s remarks might be the right pointer...



/var/log/messages during reboot:
Jan 13 09:52:48 cgbox reboot: rebooted by root
Jan 13 09:52:51 cgbox syslogd[67592]: exiting on signal 15
Oct  9 00:09:42 cgbox syslogd[96730]: start
Oct  9 00:09:42 cgbox /bsd: [ using 763704 bytes of bsd ELF symbol table ]
Oct  9 00:09:42 cgbox /bsd: Copyright (c) 1982, 1986, 1989, 1991, 1993
Oct  9 00:09:42 cgbox /bsd:     The Regents of the University of California.  
All rights reserved.
Oct  9 00:09:42 cgbox /bsd: Copyright (c) 1995-2023 OpenBSD. All rights 
reserved.  https://www.OpenBSD.org
Oct  9 00:09:42 cgbox /bsd: Copyright (c) 1995-2023 OpenBSD. All rights 
reserved.  https://www.OpenBSD.org
Oct  9 00:09:42 cgbox /bsd: OpenBSD 7.4 (GENERIC.MP) #1382: Tue Oct 10 09:43:29 
MDT 2023
Oct  9 00:09:42 cgbox /bsd:     
dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/GENERIC.MP
Oct  9 00:09:42 cgbox /bsd: real mem = 1073741824 (1024MB)
Oct  9 00:09:42 cgbox /bsd: avail mem = 1035239424 (987MB)
Oct  9 00:09:42 cgbox /bsd: random: good seed from bootblocks
Oct  9 00:09:42 cgbox /bsd: mainbus0 at root: board 20300 rev 0.15, model 
cavium,ubnt_e300
[...]
Oct  9 00:09:42 cgbox /bsd: scsibus2 at softraid0: 256 targets
Oct  9 00:09:42 cgbox /bsd: root on sd0a (e313814cbcc56c6c.a) swap on sd0b dump 
on sd0b
Oct  9 00:09:42 cgbox /bsd: WARNING: CHECK AND RESET THE DATE!
Oct  9 00:09:44 cgbox ntpd[49396]: recvmsg x.x.x.x: No route to host
Oct  9 00:09:44 cgbox ntpd[49396]: recvmsg x.x.x.x: No route to host
Oct  9 00:09:44 cgbox savecore: no core dump






# dmesg

[ using 774200 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2023 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.4 (GENERIC.MP) #1382: Tue Oct 10 09:43:29 MDT 2023
    dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/GENERIC.MP
real mem = 1073741824 (1024MB)
avail mem = 1035223040 (987MB)
random: boothowto does not indicate good seed
mainbus0 at root: board 20300 rev 0.15, model cavium,ubnt_e300
cpu0 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU rev 0.0
cpu0: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
clock0 at mainbus0: int 5
octcrypto0 at mainbus0
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
"bootbus" at simplebus0 not configured
octciu0 at simplebus0
octcib0 at simplebus0: max-bits 23
octcib1 at simplebus0: max-bits 12
octcib2 at simplebus0: max-bits 6
octcib3 at simplebus0: max-bits 15
octcib4 at simplebus0: max-bits 4
octcib5 at simplebus0: max-bits 11
octcib6 at simplebus0: max-bits 11
octgpio0 at simplebus0: 20 pins, xbit 16
octsmi0 at simplebus0
octsmi1 at simplebus0
octpip0 at simplebus0
octgmx0 at octpip0 interface 0
cnmac0 at octgmx0: port 0 SGMII, address 74:ac:b9:43:0d:79
ukphy0 at cnmac0 phy 4: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
cnmac1 at octgmx0: port 1 SGMII, address 74:ac:b9:43:0d:7a
ukphy1 at cnmac1 phy 5: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
cnmac2 at octgmx0: port 2 SGMII, address 74:ac:b9:43:0d:7b
ukphy2 at cnmac2 phy 6: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
cnmac3 at octgmx0: port 3 SGMII, address 74:ac:b9:43:0d:7c
ukphy3 at cnmac3 phy 7: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
octsctl0 at simplebus0: disabled
octxctl0 at simplebus0: DWC3 rev 0x250a
xhci0 at octxctl0, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
octxctl1 at simplebus0: DWC3 rev 0x250a
xhci1 at octxctl1, xHCI 1.0
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
com0 at simplebus0: ns16550a, 64 byte fifo
com0: console
com1 at simplebus0: ns16550a, 64 byte fifo
com1: probed fifo depth: 0 bytes
octmmc0 at simplebus0
sdmmc0 at octmmc0: 8-bit, mmc high-speed
"spi" at simplebus0 not configured
"ocla0" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
octrng0 at iobus0 base 0x1400000000000 irq 0
octpcie0 at iobus0: 3 ports
octpcie0 port 0: link timeout
octpcie0 port 1: reset timeout
octpcie0 port 2: reset timeout
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Kingston, MMC4GB, 0000> removable
sd0: 3728MB, 512 bytes/sector, 7634944 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e313814cbcc56c6c.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!





Reply via email to