All is in the subject line. I Have a Pi 5 but have been unable to find out how to use the RTC, there is a a dearth of information it seems.
All is in the subject line. I Have a Pi 5 but have been unable to find out how to use the RTC, there is a a dearth of information it seems.
There's no RTC in the conventional sense. Linux will maintain its own clock, by obtaining the current time from the network. The time will need to be obtained this way each time the Pi is powered on.
If you want a RTC that retains its time (for instance through battery back-up with a coin cell etc) and does not require the Pi to be connect to a network time server, then you'd need additional hardware plugged onto the Pi. If you mention your actual end use-case, then it may be possible to provide a better answer to meet your needs.
There's no RTC in the conventional sense. Linux will maintain its own clock, by obtaining the current time from the network. The time will need to be obtained this way each time the Pi is powered on.
If you want a RTC that retains its time (for instance through battery back-up with a coin cell etc) and does not require the Pi to be connect to a network time server, then you'd need additional hardware plugged onto the Pi. If you mention your actual end use-case, then it may be possible to provide a better answer to meet your needs.
RTC DS3221 I have used with some success.
Or it seems just a battery on the Pi 5 (apparently that's new for the Pi 5).
andylhart I'm presuming you can just use the Linux 'date' command, provided that the correct driver is already part of the new Pi OS. Not many people probably have the Pi 5 yet (I don't), so if there's no other information, I'd try the 'date' command (type 'man date' to see how to use it, or temporarily connect to a network for the time to automatically update).
There's no RTC in the conventional sense
The Raspberry Pi 5 now has an RTC!
It's part of the Renesas / Dialog DA9091 PMIC.
It's supported by a 3v coin cell battery that connects to J5. This means we can now use "hwclock".