33 lines
471 B
Plaintext
33 lines
471 B
Plaintext
apt-get install i2c-tools
|
|
|
|
i2cdetect -y 1
|
|
|
|
modprobe rtc-ds1307
|
|
|
|
bash
|
|
|
|
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
|
|
|
|
exit
|
|
|
|
zeit mit internet synchronisieren
|
|
|
|
hwclock -w
|
|
|
|
nano /etc/modules und rtc-ds1307 hinzufügen
|
|
|
|
|
|
nano /etc/rc.local
|
|
----------------------------------------------------
|
|
|
|
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
|
|
hwclock -s
|
|
|
|
----------------------------------------------------
|
|
|
|
|
|
Zusatz:
|
|
|
|
date -s "29 AUG 1997 13:00:00"
|
|
|