Slackware - ARMThis forum is for the discussion of Slackware ARM.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
And many thanks for doing that. I got my first ever Raspi this morning and it came bundled with a DS1307 rtc module, your instructions were very helpful.
And many thanks for doing that. I got my first ever Raspi this morning and it came bundled with a DS1307 rtc module, your instructions were very helpful.
You are very welcome, and I hope you have a wonderful Slackware ARM on a Raspberry Pi experience.
is now hooked up to it all and working fine. To play it safe I used 10 wires (because I know nothing about this stuff so I was being cautious) and just replicated the pins that the rtc usually covers on the GPIO but 10 seems excessive for a clock!
I've been goggling it for a while and as far as I can tell it will only need 5V, GND and the GPIO2, GPIO3 (aka SDA1 i2c and SCL1 i2c aaka Pins 3 & 5 depending on which schematic you follow)
I've been goggling it for a while and as far as I can tell it will only need 5V, GND and the GPIO2, GPIO3 (aka SDA1 i2c and SCL1 i2c aaka Pins 3 & 5 depending on which schematic you follow)
Is that right?
Only 4 connections are required and you already have it absolutely correct, slackist. Use the wiring layout from sarpi if it helps. The hardware may be different but the connections are exactly the same for DS1307 and DS3231 RTCs. For connecting a RTC such as yours you might consider using a GPIO extender, such as this, but only if raising the height of the GPIO pins is going to make things easier.
There are quite a few differences from device to device in quality and reliability with RTCs. I find the ones with Maxim controllers to be the easiest to work with, the best supported, and the most reliable. The DS1307 is regulated by a frequency-based crystal oscillator and the DS3231 is regulated by an integrated temperature-compensated crystal oscillator. The difference here is; the DS3231 is a hell of a lot more accurate at keeping time than the DS1307. With the DS1307 you could be very lucky and get a really good one which only loses/gains a second per month. With the DS3231 you probably won't lose/gain a second in two or three months.
Brilliant and thanks so much for the assist Penthux.
New cron.weekly job is set up to write clock time from a server.
After I fiddle with it tomorrow hopefully it will look better without so many wires attached to the breadboard.
You're welcome. Sharing experience and knowledge is hopefully going to save you time and effort. Although seriously, I would think about a GPIO extender (like these - 2x5pins) for your particular RTC, but only if it isn't going to get in the way of the heatsink/fan when it's installed. Then you could kiss goodbye and good riddance to those wires.
Last edited by Penthux; 09-15-2016 at 03:03 PM.
Reason: updated URL
I've got a 40 pin GPIO extender and the ribbon cable that leads to the T-cobbler on the breadboard takes up all of it and I am reluctant to start snipping wires off because I am a total newb at this sort of thing.
It now has a little (14x14x10mm) heat sink mounted the SoC and I think I can scavenge a fan from my Mrs desktop that has a spare one in the case so that will be the next steps.
Using their software I was able to get the rtc stuff together but not sure why system and rtc are 1 hour off, haven't had time to look into it.
I've had the same issue and the answer was setting the timezone manually. Perform this as 'root' and set <YOUR_LOCATION> - e.g. Europe/Paris, America/New_York, Africa/Johannesburg, Australia/Melbourne
It seems that when I add or remove anything from the breadboard it is connected to it resets itself. Even a simple led+resistor+cables will make the rtc forget its data.
My house electrics aren't earthed/grounded (that is pretty common here in Thailand) so I thought that was the problem but it seems to happen randomly. Sometimes a 'halt' command will carry the date from the rtc upon starting up again, sometimes a 'reboot' command will do also but as often as not either command will cause the clock to reset.
I have tried stopping anything that might write/reset to hwclock and also the ntpdate in rc.local is commented out but it is still happening.
Do you have just the one DS1307 RTC? If you have another then test with it and see if it produces the same error(s). It's a strange problem that might come about if you have a faulty back-up battery connection or some kind of reset going on. Perhaps getting rid of the breadboard setup is the first step?
I would highly recommend that you ditch the DS1307 and replace it with a DS3231 which are vastly more reliable/accurate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.