OpenWrt Forum Archive

Topic: Openwrt add rtc ds1307

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want add RTC clock module for AR9330 , use the DS1307 chip .
Reference to the post,to do this

Compile and build the firmware , but did not find rtc-ds1307.ko  drive in ./lib/modules/3.3.8/

After burning to the board and start the router

root@openwrt:/#dmesg | grep rtc
[2.950000] drivers /rtc/hctosys.c: unable to open rtc device (rtc0)

root@openwrt:/# ls /sys/bus/i2c/drivers/rtc-ds1307/ -l
--w-------    1 root     root          4096 Sep  9 01:40 bind
--w-------    1 root     root          4096 Sep  9 01:40 uevent
--w-------    1 root     root          4096 Sep  9 01:40 unbind

Next, how do I troubleshoot ?

If I want to add ds1302 driver to the router , how should I do ?
Can anyone give me some advice, I can't start now . . . .

All ok.

[2.950000] drivers /rtc/hctosys.c: unable to open rtc device (rtc0)


Not selected
Device Drivers  ---> Real Time Clock  --->   Set system time from RTC on startup and resume

The discussion might have continued from here.