I am trying to use a Pi 4 with I2C DS3231 hardware clock, on alpine 3.11.5 aarch64. I have activated the i2c bus, and followed the wiki to add the
But at boot time, I have an error.
I looked at the
hwclock script, it tries to set kernel's TZ, but I have :
hwclock: settimeofday: Invalid argument
The commandline is
hwclock --systz --utc.
Then the command that really sets time from DS3231 works fine.
But since the script adds return values, it displays
Failed to set the system clock.
Also, I tried to disable
swclock that save/restore the time based on shutdown/reboots, but it stills survive the reboots (I am working in data mode, and I
lbu ci -d each time).
What have I missed ?