Vocore, openwrt and DS1307 kernel module
Posted: Tue Apr 25, 2017 1:21 pm
Hi,
I am new to vocore, openwrt etc, so please be gentle!
I am trying to get a DS1307 I2C real time clock (RTC) to work with a vocore using the kernel RTC module kmod-rtc-ds1307.
I have got the I2C interface working. I can detect a device at the correct I2C address (0x68) and I can communicate with the DS1307 using the i2c-tools applications. I can see the seconds and minutes registers counting up on the DS1307 so I am happy that that part of the system is working correctly.
I want to use the kmod-rtc-ds1307 module so I can use the "hwclock" application to simplify synchronising the hardware clock to the system clock.
I am not able to find the kmod-rtc-ds1307 module to enable it when I run "make menuconfig", it is not there under kernel modules or available using opkg or from anywhere else I have looked.
Can anyone tell me how I go about enabling the kmod-rtc-ds1307 module?
I have also looked at what is available under "make kernel_menuconfig" and found a generic sounding "Real Time Clock" option under "Device Drivers", but I am not sure if just enabling this setting is enough or how the settings under "make kernel_menuconfig" interact with those under "make menuconfig".
I have run "./scripts/feeds update", but I have not installed all feeds. Last time I did this I wasn't able to get the system to compile because of broken links to source code that it was trying to download (they were also things that I'd never use and it was also taking forever to compile)... so I am reluctant to run "./scripts/feeds install -a" again. But either way, I can't see the kernel module in the feeds list anyway.
I have also created a build environment and successfully downloaded and compiled CHAOS CALMER (15.05.1) and flashed it to my vocore. I have also downloaded and cross-compiled the i2c-tools applications, which also didn't seem to be available in the opkg list or feeds.
Any idea how to proceed or where to enable the kmod-rtc-ds1307kernel module?
Cheers,
Tom
I am new to vocore, openwrt etc, so please be gentle!
I am trying to get a DS1307 I2C real time clock (RTC) to work with a vocore using the kernel RTC module kmod-rtc-ds1307.
I have got the I2C interface working. I can detect a device at the correct I2C address (0x68) and I can communicate with the DS1307 using the i2c-tools applications. I can see the seconds and minutes registers counting up on the DS1307 so I am happy that that part of the system is working correctly.
I want to use the kmod-rtc-ds1307 module so I can use the "hwclock" application to simplify synchronising the hardware clock to the system clock.
I am not able to find the kmod-rtc-ds1307 module to enable it when I run "make menuconfig", it is not there under kernel modules or available using opkg or from anywhere else I have looked.
Can anyone tell me how I go about enabling the kmod-rtc-ds1307 module?
I have also looked at what is available under "make kernel_menuconfig" and found a generic sounding "Real Time Clock" option under "Device Drivers", but I am not sure if just enabling this setting is enough or how the settings under "make kernel_menuconfig" interact with those under "make menuconfig".
I have run "./scripts/feeds update", but I have not installed all feeds. Last time I did this I wasn't able to get the system to compile because of broken links to source code that it was trying to download (they were also things that I'd never use and it was also taking forever to compile)... so I am reluctant to run "./scripts/feeds install -a" again. But either way, I can't see the kernel module in the feeds list anyway.
I have also created a build environment and successfully downloaded and compiled CHAOS CALMER (15.05.1) and flashed it to my vocore. I have also downloaded and cross-compiled the i2c-tools applications, which also didn't seem to be available in the opkg list or feeds.
Any idea how to proceed or where to enable the kmod-rtc-ds1307kernel module?
Cheers,
Tom