Since 1998Main SiteFarmall TractorsCamp LivingstonCamp ClaibornePWSDoctor Blue BoxLouisiana Drones La GMRSUTV MulesLandlords

WinnFreeNet.com

March 15, 2023

Libre Computer Real Time Clock libre AML-S905X-CC Le Potato

Filed under: Computers,libre computer 905,pi — tmaster @ 6:31 pm

Instructions to add the RTC are not the same as the PI so take care.

First install the wiring tool.

sudo apt update
sudo apt install libretech gpio libretech dtoverlay

Then install the overlays

sudo ldto enable i2c-ao
sudo ldto enable i2c-ao-ds3231

Check that 68 displays in the center of the chart by typing

sudo i2cdetect -y 0

if you get 68 your all set if not…. Be sure the clock is working.

You now need to merge the overlays for the next boot. Remember if it doesn’t detect the clock it will undo the merge. So if you later unplug the clock you will have to do this over again.

sudo ldto merge i2c-ao
sudo ldto merge i2c-ao-ds3231

reboot

You should now get a UU in place of the 68 when you type

sudo i2cdetect -y 0

type

sudo hwclock -r

It should display a data. Save the current date with

sudo hwclock -w

 

All is working you need to modify start up script to add hwclock -s

sudo nano /etc/rc.local

and add:

sudo hwclock -s

before the exit 0

sudo may not be needed above.

 

I had lots of trouble with the above as I had it working and it stopped. I was swapping clocks and if you boot with a non working clock all the overlays will be disabled.   If I keep having problems with the overlays being disabled its possible just to enable them on every boot by a script.  Im using this for a shop background music system and it has no Wifi so the clock needs to be working so I can tell what month it is and play Christmas music in dec.

Also this board plays much better music than the pi.

Leave a Reply

Upload your avator at Gravatar.com or you will get a default one.


56 queries. 0.149 seconds.

WinnFreeNet.com

Copyright 1998-2026 by WinnFreeNet.com all rights reserved. M&M Autoban PHP Powered