i have added a hwclock to my pi and almost got it to work.
there is one tiny issue and that has to do with the startup script /etc/init.d/hwclock.sh
the way it is created makes it impossible for the start code to do its thing resulting in the hw clock never being restored properly at reboot.
the problem is with this section of the start script:
commenting out those 3 lines makes it work as it should.
Code: Select all
if [ -d /run/udev ] || [ -d /dev/.udev ]; then return 0 fi
i don't understand why the reminder of the start script is supposed to be skipped if udev is present.
comments about my findings? perhaps the package needs fixing?
FYI to get the hw clock working i did something like this:
edit /boot/config.txt and add:¨
this made the modules needed load at boot
then remove fake-hwclock and cleanup leftovers
then enable hwclock.sh from util-linux