User Tools

Site Tools


ubuntu:pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
ubuntu:pi [2021-02-01 18:00] – remove cloud-init netplan config gabrielubuntu:pi [2021-02-08 16:26] – adding rtc notes gabriel
Line 119: Line 119:
  
 Quick reference for Raspberry Pi hardware tools on Ubuntu. Quick reference for Raspberry Pi hardware tools on Ubuntu.
 +
 +==== Configuring RTC on Ubuntu 20.04 LTS ====
 +
 +<code>
 +# Install the I2C tools to access the bus and configure your RTC
 +apt install i2c-tools
 +
 +# Enable your RTC in the Pi boot config
 +RTCMODEL=ds3231
 +echo "dtoverlay=i2c-rtc,$RTCMODEL" >> /boot/firmware/usercfg.txt 
 +
 +# show I2C bus config (68 means hardware detected, UU after reboot means dtoverlay configured correctly and driver is loaded)
 +i2cdetect -y 1
 +</code>
 +
 +//Reference: [[https://pimylifeup.com/raspberry-pi-rtc/|Raspberry Pi RTC: Adding a Real Time Clock//
  
 ===== Reference ===== ===== Reference =====
ubuntu/pi.txt · Last modified: 2021-02-08 16:27 by gabriel