User Tools

Site Tools


le_potato


Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
le_potato [2023/04/08 22:33] – [Enable UART-A] millerjsle_potato [2024/11/14 02:30] (current) – external edit 127.0.0.1
Line 15: Line 15:
   - To persist after reboot, merge: ''sudo ldto merge uart-a''   - To persist after reboot, merge: ''sudo ldto merge uart-a''
  
 +Somewhat confusingly, both ''uart-a'' and ''uarta'' exist as device tree overlays. ''uarta'' maps to ''uart-a-rts-cts'' which uses pins 16 and 18 for hardware flow control.
 ==== Enable i2c and the DS3231 ==== ==== Enable i2c and the DS3231 ====
 Specifically, SDA and SCL pins on GPIOs 3 & 4. Specifically, SDA and SCL pins on GPIOs 3 & 4.
Line 20: Line 21:
   - Clone, build, and install the libretech-wiring-tool as above   - Clone, build, and install the libretech-wiring-tool as above
   - Install i2c tools: ''sudo apt install i2c-tools''   - Install i2c tools: ''sudo apt install i2c-tools''
-  - enable the i2c-ao DTO: ''sudo ldto enable i2c-ao'' +  - Enable the i2c-ao DTO: ''sudo ldto enable i2c-ao'' 
-  - Check for your devices: ''i2cdetect -y 1'' +  - Check for your devices: ''i2cdetect -y 1'' (DS3231 should be at 0x68) 
-  - +  - Enable for DS3231 on i2c-ao: ''sudo ldto enable i2c-ao-ds3231'' 
 +  - Check dmesg: <code>[ 4024.485534] rtc-ds1307 1-0068: SET TIME! 
 +[ 4024.488196] rtc-ds1307 1-0068: registered as rtc0 
 +[ 4024.489394] rtc-ds1307 1-0068: setting system clock to 2000-01-01T01:07:25 UTC (946688845)</code> 
 +  - Merge to save: ''sudo ldto merge i2c-ao ; sudo ldto merge i2c-ao-ds3231''
  
le_potato.1680993186.txt.gz · Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki