TOS6 - compile DS1307 in a kernel (not as a module) to avoid problems with hctosys
From a dmesg on my Turris 1.0 router i see:
root@turris:~# dmesg |grep rtc
[ 2.004145] hctosys: unable to open rtc device (rtc0)
[ 11.957997] rtc-ds1307 0-006f: registered as rtc0
According to Lede-dev list this is caused by rtc driver compiled as a module. Here is an example of commit fixing it: https://patchwork.ozlabs.org/project/lede/patch/1476826019-8802-1-git-send-email-ynezz@true.cz/
I think it should be done for the Turris kernel as well.
Additional information:
root@turris:~# uname -a
Linux turris 5.4.171 #0 SMP Sun Jan 23 00:15:44 2022 ppc GNU/Linux
root@turris:~# cat /etc/os-release
NAME="TurrisOS"
VERSION="6.0"
ID="turrisos"
ID_LIKE="lede openwrt"
PRETTY_NAME="TurrisOS 6.0"
VERSION_ID="6.0"
HOME_URL="https://www.turris.cz/"
BUG_URL="https://gitlab.nic.cz/groups/turris/-/issues/"
SUPPORT_URL="https://www.turris.cz/support/"
BUILD_ID="r16474+63-97b95ef8b9"
OPENWRT_BOARD="mpc85xx/p2020"
OPENWRT_ARCH="powerpc_8540"
OPENWRT_TAINTS="busybox"
OPENWRT_DEVICE_MANUFACTURER="CZ.NIC"
OPENWRT_DEVICE_MANUFACTURER_URL="https://www.turris.cz/"
OPENWRT_DEVICE_PRODUCT="Turris 1.x"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="TurrisOS 6.0 97b95ef8b9186518cda6f2d3cec8a01860fae2e7"