Hi,
I have a Pi 3b running bullseye.
I've installed a rtc-pcf8563. I've followed several sets of instructions for installing it, as nothing seemed to quite get it working, but finally it worked. It updated the time with ntp and
showed the correct time.
However, after a reboot, it's no longer working. Now the same command gives;
hwclock: Timed out waiting for time change.
Here are some commands I've tried and some file contents that ought to be relevant:
Thanks.
I have a Pi 3b running bullseye.
I've installed a rtc-pcf8563. I've followed several sets of instructions for installing it, as nothing seemed to quite get it working, but finally it worked. It updated the time with ntp and
Code:
sudo hwclock -r
However, after a reboot, it's no longer working. Now the same command gives;
hwclock: Timed out waiting for time change.
Here are some commands I've tried and some file contents that ought to be relevant:
Code:
root@raspberrypi:~# find /sys -name "*rtc*"/sys/kernel/tracing/events/rtc/sys/kernel/tracing/events/rtc/rtc_set_time/sys/kernel/tracing/events/rtc/rtc_read_time/sys/kernel/tracing/events/rtc/rtc_set_alarm/sys/kernel/tracing/events/rtc/rtc_read_alarm/sys/kernel/tracing/events/rtc/rtc_irq_set_freq/sys/kernel/tracing/events/rtc/rtc_irq_set_state/sys/kernel/tracing/events/rtc/rtc_alarm_irq_enable/sys/kernel/tracing/events/rtc/rtc_set_offset/sys/kernel/tracing/events/rtc/rtc_read_offset/sys/kernel/tracing/events/rtc/rtc_timer_enqueue/sys/kernel/tracing/events/rtc/rtc_timer_dequeue/sys/kernel/tracing/events/rtc/rtc_timer_fired/sys/kernel/debug/dri/0/crtc2_regs/sys/kernel/debug/dri/0/crtc-3/sys/kernel/debug/dri/0/crtc1_regs/sys/kernel/debug/dri/0/crtc-2/sys/kernel/debug/dri/0/crtc0_regs/sys/kernel/debug/dri/0/crtc-1/sys/kernel/debug/dri/0/crtc-0/sys/kernel/debug/tracing/events/rtc/sys/kernel/debug/tracing/events/rtc/rtc_set_time/sys/kernel/debug/tracing/events/rtc/rtc_read_time/sys/kernel/debug/tracing/events/rtc/rtc_set_alarm/sys/kernel/debug/tracing/events/rtc/rtc_read_alarm/sys/kernel/debug/tracing/events/rtc/rtc_irq_set_freq/sys/kernel/debug/tracing/events/rtc/rtc_irq_set_state/sys/kernel/debug/tracing/events/rtc/rtc_alarm_irq_enable/sys/kernel/debug/tracing/events/rtc/rtc_set_offset/sys/kernel/debug/tracing/events/rtc/rtc_read_offset/sys/kernel/debug/tracing/events/rtc/rtc_timer_enqueue/sys/kernel/debug/tracing/events/rtc/rtc_timer_dequeue/sys/kernel/debug/tracing/events/rtc/rtc_timer_fired/sys/devices/platform/soc/3f804000.i2c/i2c-1/1-0051/rtc/sys/devices/platform/soc/3f804000.i2c/i2c-1/1-0051/rtc/rtc0/sys/devices/platform/soc/3f201000.serial/tty/ttyAMA0/uartclk/sys/class/rtc/sys/class/rtc/rtc0/sys/bus/platform/drivers/vc4_crtc/sys/bus/i2c/drivers/rtc-pcf8563/sys/module/vc4/drivers/platform:vc4_crtc/sys/module/rtc_pcf8563/sys/module/rtc_pcf8563/drivers/i2c:rtc-pcf8563
Code:
root@raspberrypi:~# sudo hwclock --verbose -whwclock from util-linux 2.36.1System Time: 1708698507.111415Trying to open: /dev/rtc0Using the rtc interface to the clock.Last drift adjustment done at 1708697426 seconds after 1969Last calibration done at 1708697426 seconds after 1969Hardware clock is on UTC timeAssuming hardware clock is kept in UTC time.RTC type: 'rtc-pcf8563'Using delay: 0.000000 secondsmissed it - 1708698507.113626 is too far past 1708698507.000000 (0.113626 > 0.001000)1708698508.000000 is close enough to 1708698508.000000 (0.000000 < 0.002000)Set RTC to 1708698508 (1708698507 + 1; refsystime = 1708698507.000000)Setting Hardware Clock to 14:28:28 = 1708698508 seconds since 1969ioctl(RTC_SET_TIME) was successful.Not adjusting drift factor because the --update-drift option was not used.New /etc/adjtime data:0.000000 1708698507 0.0000001708698507UTC
Code:
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for helpdriftfile /var/lib/ntp/ntp.driftstatistics loopstats peerstats clockstatsfilegen loopstats file loopstats type day enablefilegen peerstats file peerstats type day enablefilegen clockstats file clockstats type day enableserver 0.debian.pool.ntp.org iburstserver 1.debian.pool.ntp.org iburstserver 2.debian.pool.ntp.org iburstserver 3.debian.pool.ntp.org iburstrestrict -4 default kod notrap nomodify nopeer noquery
Code:
# /lib/udev/hwclock-set#!/bin/sh# Reset the System Clock to UTC if the hardware clock from which it# was copied by the kernel was in localtime.dev=$1#if [ -e /run/systemd/system ] ; then# exit 0#fi#/sbin/hwclock --rtc=$dev --systz/sbin/hwclock --rtc=$dev --hctosys
Statistics: Posted by pir8ped — Fri Feb 23, 2024 2:56 pm