rarok10410
Posts: 2
Joined: Mon Mar 02, 2020 1:41 pm

Will a real time clock be found/configured on a new OS install?

Mon Mar 02, 2020 2:42 pm

I'm mostly a windows user and this is the first time I've used an addon chip to the raspberry. I see a lot of instructions out there about how to configure it but I'm wondering if I just do a fresh install of Raspbian will the install process find and use/setup my new chip or do I need to go through the setup steps anyway?
Thanks

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Will a real time clock be found/configured on a new OS install?

Mon Mar 02, 2020 3:35 pm

What extra real time clock hardware are you intending to buy/have you bought for your RPi? There's no clock on any factory fresh RPi and the set-up for each isn't a standardised process.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

rarok10410
Posts: 2
Joined: Mon Mar 02, 2020 1:41 pm

Re: Will a real time clock be found/configured on a new OS install?

Mon Mar 02, 2020 4:02 pm

I ordered one off aliexpress this is the title if it means anything "Precision DS3231 Real Time Clock Module RTC DS3231 3.3V/5V with Battery for Raspberry Pi for arduino DIY Kit". I can still cancel the order if this is a bad idea.

W. H. Heydt
Posts: 12430
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Will a real time clock be found/configured on a new OS install?

Mon Mar 02, 2020 4:38 pm

No. A fresh install will not automatically find your RTC. You are probably aware that if your Pi is always connected to the internet, it doesn't need an RTC. However, if you actually need an RTC, the vendor *should* have instructions for setting it up. Recent releases of Raspbian have made that considerably easier than it used to be.

My currently preferred RTC is this https://chicagodist.com/products/rasclo ... spberry-pi one. Not the cheapest, but accurate and takes a replaceable battery.

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Will a real time clock be found/configured on a new OS install?

Mon Mar 02, 2020 5:58 pm

Add

Code: Select all

 dtoverlay=i2c-rtc,ds3231
to /boot/config.txt and your RTC will be recognised when you poweroff, connect it and reboot.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

knute
Posts: 550
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Will a real time clock be found/configured on a new OS install?

Wed Mar 04, 2020 10:47 pm

DougieLawson wrote:
Mon Mar 02, 2020 5:58 pm
Add

Code: Select all

 dtoverlay=i2c-rtc,ds3231
to /boot/config.txt and your RTC will be recognised when you poweroff, connect it and reboot.
Dougie do you still need to kill off the fake-hwclock and modify /lib/udev/hwclock-set?

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Will a real time clock be found/configured on a new OS install?

Thu Mar 05, 2020 12:07 am

knute wrote:
Wed Mar 04, 2020 10:47 pm
DougieLawson wrote:
Mon Mar 02, 2020 5:58 pm
Add

Code: Select all

 dtoverlay=i2c-rtc,ds3231
to /boot/config.txt and your RTC will be recognised when you poweroff, connect it and reboot.
Dougie do you still need to kill off the fake-hwclock and modify /lib/udev/hwclock-set?
Yes. Because it does nothing useful when the system has a real hwclock.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”