Build RTC kernel module for DS1339 RTC chip

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Build RTC kernel module for DS1339 RTC chip

Postby jakebpg » Fri Jan 04, 2013 10:58 pm

I have just finished building a RTC using the ds1339AU+ chip. The system sees this device as evidenced by running i2cdetect, but I don't have a mod to load into the kernel to speak to it. Now the specs on the ds1339AU are almost identical to the ds1307 that many bought rtc modules use. Where can I get the driver I need to speak to this device?

When I have it all working I'll post my design(schematic/board) to a website where all can get to it and download if they wish to build their own instead of buying a ready built module.

Any help would be greatly appreciated!

Oh and this is the 4th :D board I've built for the RPI, the first is an IO board with basic pin protection, the second is just 8 LEDs(used for learning to control the gpio pins through python and the last is a simple temp sensor for a 1wire system. All these device work perfectly and I'm more then willing to post the info for those designs as if anyone is interested.

8-) 8-) have fun RPIing

OK found this on the net, the ds1337 driver mod should work for reading and writing, so now where can I download this driver from and will it need to be ported to arm?
Last edited by jakebpg on Sat Jan 05, 2013 4:48 pm, edited 1 time in total.
jakebpg
 
Posts: 21
Joined: Fri Sep 14, 2012 3:27 pm
Location: NE, USA

Re: RTC module-drivers

Postby jakebpg » Sat Jan 05, 2013 4:02 pm

Ok, I found a file on the web called rtc_ds1339.c

Now I need help to compile into a mod that I can modprobe and load so that I can talk to the DS1339AU+ chip I have installed for my rtc through the I2C bus.

Any help would be greatly appreciated.

It does have one include I'm not sure about that I've read is no longer used or was changed and the name of it is, #include <linux/config.h>

Ok found a site to build the module but I keep getting this error:

rpishare/ds1339/rtc_ds1339.c' doesn't match the target pattern
jakebpg
 
Posts: 21
Joined: Fri Sep 14, 2012 3:27 pm
Location: NE, USA


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 69 guests

cron