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:29] millerjsle_potato [2024/11/14 02:30] (current) – external edit 127.0.0.1
Line 10: Line 10:
  
   - Clone, build, and install the libretech-wiring-tool   - Clone, build, and install the libretech-wiring-tool
-  - Enable the DTO for UART-A <code> +  - Enable the DTO for UART-A ''sudo ldto enable uart-a'' 
-sudo ldto enable uart-a +  - Check dmesg ''c11084c0.serial: ttyAML6 at MMIO 0xc11084c0 (irq = 49, base_baud = 1500000) is a meson_uart''
-</code> +
-  - Check dmesg <code>c11084c0.serial: ttyAML6 at MMIO 0xc11084c0 (irq = 49, base_baud = 1500000) is a meson_uart</code>+
   - Test with ''minicom'' or whatever   - Test with ''minicom'' or whatever
-  - To persist after reboot, merge: <code>sudo ldto merge uart-a</code>+  - 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.
  
   - 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'' 
 +  - Enable the i2c-ao DTO: ''sudo ldto enable i2c-ao'' 
 +  - 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.1680992971.txt.gz · Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki