Skip to content

Instantly share code, notes, and snippets.

View Crowdedlight's full-sized avatar

Crowdedlight Crowdedlight

  • Denmark
View GitHub Profile
@Crowdedlight
Crowdedlight / rtc-ds3231-ubuntu-19.10-rpi4.txt
Last active June 27, 2021 05:05 — forked from maage/rtc-ds3231-ubuntu-19.10-rpi4.txt
High Accuracy Pi RTC (DS3231) installation in Ubuntu 19.10 in Raspberry Pi 4 Model B Rev 1.1
Base instructions are here:
http://wiki.seeedstudio.com/High_Accuracy_Pi_RTC-DS3231/
But I've diverted my setup procedure somewhat because Ubuntu boot setup is different than Raspbian and setup does some things not needed.
To use RTC early in the boot add "fixrtc" to kernel boot command line. Correct file is "/boot/firmware/nobtcmd.txt".
This is implemented in "/usr/share/initramfs-tools/scripts/local-premount/fixrtc".