it looks as if the regular clock was uninstalled....
here is what master.py is supposed to do to reinstall the regular clock:
- Code: Select all
if (findString("dtoverlay=i2c-rtc,ds1307", "/boot/config.txt") !=2 and
findString("dtoverlay=i2c-rtc,ds3231", "/boot/config.txt") !=2 ) :
G.useRTC = useRTCnew
return
removefromFile("dtoverlay=i2c-rtc,ds3231", "/boot/config.txt")
removefromFile("dtoverlay=i2c-rtc,ds1307", "/boot/config.txt")
removefromFile("/sbin/hwclock -s", "/etc/rc.local" )
# in /lib/udev/hwclock-set REMOVE # infront of
#if [ -e /run/systemd/system ] ; then
# exit 0
#fi
uncommentOrAdd("if [ -e /run/systemd/system ]", "/lib/udev/hwclock-set", before="",nLines =3)
os.system("sudo chmod a+x /lib/udev/hwclock-set")
os.system("apt-get install fake-hwclock")
===
so could you do :
remove dtoverlay=i2c-rtc,ds3231 from file /boot/config.txt
remove /sbin/hwclock -s from "/etc/rc.local
with sudo nano filename
and file /lib/udev/hwclock-set should look like:
- Code: Select all
#!/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
if [ -e /run/udev/hwclock-set ]; then
exit 0
fi
if [ -f /etc/default/rcS ] ; then
. /etc/default/rcS
fi
# These defaults are user-overridable in /etc/default/hwclock
BADYEAR=no
HWCLOCKACCESS=yes
HWCLOCKPARS=
HCTOSYS_DEVICE=rtc0
if [ -f /etc/default/hwclock ] ; then
. /etc/default/hwclock
fi
if [ yes = "$BADYEAR" ] ; then
/sbin/hwclock --rtc=$dev --systz --badyear
/sbin/hwclock --rtc=$dev --hctosys --badyear
else
/sbin/hwclock --rtc=$dev --systz
/sbin/hwclock --rtc=$dev --hctosys
fi
# Note 'touch' may not be available in initramfs
> /run/udev/hwclock-set
then do:
- Code: Select all
sudo chmod a+x /lib/udev/hwclock-set
and
- Code: Select all
sudo apt-get install fake-hwclock
to reinstall regular clock .
I actually really tested well install l HW clock , and may be once to remove it ..
or redo the SSD and push the regular config/pgm to the RPI.
The IP number etc should be all ok.
Karl