This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| libre_computer_board_aml-s905x-cc_le_potato [2023/04/26 22:07] – austin | libre_computer_board_aml-s905x-cc_le_potato [2024/09/22 22:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 118: | Line 118: | ||
| FEATURES=" | FEATURES=" | ||
| </ | </ | ||
| + | |||
| + | === Adding RTC === | ||
| + | |||
| + | * wire your RTC to the GPIO same as a raspberry pi{{: | ||
| + | * install deps< | ||
| + | * clone libretech-wiring-tool< | ||
| + | git clone https:// | ||
| + | </ | ||
| + | * compile and install the overlays and commands< | ||
| + | make | ||
| + | make install | ||
| + | </ | ||
| + | * create an init script to add the overlays: | ||
| + | * < | ||
| + | * < | ||
| + | # | ||
| + | # Copyright 2023 Gentoo Authors | ||
| + | # Distributed under the terms of the GNU General Public License v2 | ||
| + | |||
| + | name=" | ||
| + | description=" | ||
| + | |||
| + | depend() { | ||
| + | before hwclock | ||
| + | } | ||
| + | |||
| + | start() { | ||
| + | / | ||
| + | / | ||
| + | } | ||
| + | </ | ||
| + | * set make script executable and add too boot runlevel< | ||
| + | chmod 755 rtc | ||
| + | rc-update add rtc boot | ||
| + | </ | ||
| + | * reboot and check dmesg, if it worked you'll see a log like so< | ||
| + | [ | ||
| + | [ | ||
| + | </ | ||
| + | * you can also check with i2cdetect denoting the UU in 0x68 location< | ||
| + | mobilemouse ~ # i2cdetect -y 1 | ||
| + | | ||
| + | 00: -- -- -- -- -- -- -- -- | ||
| + | 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- | ||
| + | 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- | ||
| + | 70: -- -- -- -- -- -- -- -- | ||
| + | </ | ||
| + | |||
| + | === GPIO Reference === | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||