remove the file: /etc/modprobe.d/rpitc-blacklist.conf
(blacklisting the i2c-bcm2708 and spi-bcm2708 module on startup)
Thanks. I'll give it a whirl when I have some time. I'll report back asap with my findings.
I re-imaged the SD card. Removed the blacklist.conf file.
Rebooted the device. Ran the install script.
When I type lsmod both modules i2c_dev and i2c_bcm2708 show. So that works fine.
When I attempt to see the hardware clock by the command "hwclock -r" I get the below error
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
I use the command "sudo hwclock --debug" and get the following below.
hwclock from util-linux 2.25.2
hwclock: cannot open /dev/rtc: No such file or directory
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
So I check to see if the device is detected. I use the command "sudo i2cdetect 1" and get the below error.
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
I've been searching online and found a few forums on it. Could there be further work that needs to be done? See post #8.
http://www.element14.com/community/threa...hread=true
Could this be an issue with this being used in a Rapsberry Pi 2 board?
OK So I've managed to suss this one out. I've included some steps incase anyone else out there is having issues.
sudo rm /etc/modprobe.d/rpitc-blacklist.conf
sudo nano /etc/modules
Ensure that the below modules are added
snd_bcm2835
i2c-bcm2708
i2c-dev
sudo nano /boot/config.txt
Add add the bottom
dtparam=i2c1=on
dtparam=i2c_arm=on
wget
https://raw.githubusercontent.com/piface...e-clock.sh
chmod +x install-piface-real-time-clock.sh
sudo ./install-piface-real-time-clock.sh
sudo reboot
sudo date -s "02 JUN 2015 22:20:30"
sudo hwclock -w
sudo hwclock -r
sudo -s
hwclock -w
hwclock -r
Unplug the network cable
sudo reboot
Test and ensure the hardware clock is now working. Should be all good.
Also I did notice if you plug the PiFace RTC Shim in to the incorrect GPIO headers it short circuits the battery. This then acts as if you were to remove the battery from the device. Hence the clock resets.
Thanks to Admin for helping me out and everyone else who has worked and helped on this project.