I have added the following line to the end of /boot/config.txt:
Code: Select all
dtoverlay=i2c-rtc,ds3231Using this command I found that linux uses my RTC chip:
Code: Select all
pi@rpi4-gui:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
... removed ...
60: 60 -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
Code: Select all
sudo apt-get -y remove fake-hwclock
sudo update-rc.d -f fake-hwclock remove
Code: Select all
sudo nano /lib/udev/hwclock-set
# Comment out these lines:
if [ -e /run/systemd/system ] ; then
exit 0
fiI would rather have fake-hwclock available as a fall-back.
Is that possible?
What happens if I do not remove fake-hwclock?