nationals 发表于 2014-4-15 14:38:59

rtc model


找到 http://nicegear.co.nz/raspberry-pi/high-precision-real-time-clock-for-raspberry-pi/

在TB购入,测试中。

参考:http://nicegear.co.nz/blog/using-an-i2c-real-time-clock-rtc-with-a-raspberry-pi/
forum.php?mod=image&aid=4389&size=300x300&key=0e4a7d1a703e95f8&nocache=yes&type=fixnoneforum.php?mod=image&aid=4390&size=300x300&key=787d8223543e12d7&nocache=yes&type=fixnoneforum.php?mod=image&aid=4388&size=300x300&key=c94c16b16cf6b3f6&nocache=yes&type=fixnoneforum.php?mod=image&aid=4391&size=300x300&key=d672522685aefecd&nocache=yes&type=fixnone

nationals 发表于 2014-4-15 15:43:45

待测。

关机。断电。

插上模块。

通电进入系统。(当然是raspbian)#!/bin/sh

# Remove the module blacklist entry so it can be loaded on boot
sudo sed -i 's/^blacklist i2c-bcm2708/# blacklist i2c-bcm2708/' /etc/modprobe.d/raspi-blacklist.conf

# Load the module now
sudo modprobe i2c-bcm2708

# Notify Linux of the Dallas RTC device
echo ds1307 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device

# Add the RTC device on boot
sodo sed -i '/^exit 0$/i\echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device' /etc/rc.local

exit

nationals 发表于 2014-4-15 15:45:48

https://github.com/fabletang/mydoc/blob/master/raspberrypi/install_rtc.txt
页: [1]
查看完整版本: rtc model