Files
boxtools/rpi/configrtc.sh
Markus Zolliker d7162993ad move the rpitools repo to boxtools/rpi
as we will need anyway boxtools also for rpis
2025-04-04 16:23:00 +02:00

8 lines
219 B
Bash
Executable File

#!/bin/bash
modprobe i2c-dev
# Calibrate the clock (default: 0x47). See datasheet for MCP7940N
i2cset -y 1 0x6f 0x08 0x47
modprobe i2c:mcp7941x
echo mcp7941x 0x6f > /sys/class/i2c-dev/i2c-1/device/new_device
hwclock -s