I've setup my DS3231N RTC module on prior versions of PiCore without issue, but I don't seem to be able to get it to work on PiCore 8 beta 5. I've followed the instructions from another post but I don't seem to be able to get it working:
http://forum.tinycorelinux.net/index.php/topic,17608.msg105734.htmlI've run tce and installed the rtc-4.4.20-piCore+.tcz package to obtain the RTC kernel modules.
When I run sudo hwclock I get:
tc@box:~$ sudo hwclock
hwclock: can't open '/dev/misc/rtc': No such file or directory
When I run sudo i2cdetect -y 1 I get:
tc@box:~$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
tc@box:~$
So I know the module is there on the i2c bus and responding. I've issued a few commands to get the temperature and haven't had any issues. Finally I've followed the bit from the previous post mentioned above:
tc@box:~$ sudo modprobe i2c-bcm2708
tc@box:~$ echo ds1307 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device
ds1307 0x68
tc@box:~$ sudo hwclock
hwclock: can't open '/dev/misc/rtc': No such file or directory
tc@box:~$
I've made sure the i2c-bcm2708 module is loaded (it's being loaded already anyway) and issued the line to set my RTC device in new_device, but I still have errors when I run sudo hwclock. I've verified that I do not have a /dev/misc/rtc. Just for grins, I've done a fresh reboot and then:
sudo modprobe -r i2c-bcm2708
sudo modprobe i2c-bcm2708
echo ds1307 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device
just to make sure the module is unloaded and freshly re-loaded before registering my device but this hasn't seemed to help. Also, I've tried the device register line as:
echo ds3231 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device
just to see if the device id made a difference. Again, in the previous post the user was using a DS3231N and had success registering as a DS1307. Either way this hasn't worked for me.
I don't remember having to load any other modules in the past to get this to work. I know over on Raspbian, you have to load the rtc-ds1307 module to get the RTC working over there, but I don't see any other RTC related modules in the TC PiCore repo.
Any suggestions? Any help would be greatly appreciated. This is the very last step to my project and I've been stuck on it for over a week.
On another note, PiCore 8 beta 5 have been very stable and I've had no issues with the 100 or packages I've pulled down (other than this RTC).
Thanks in advance. Sorry for such a large post; just want to make sure I cover all the details.