Discussion:
Using a DS1307 RTC on a Beageboard xM with Ubuntu
Deimantas Žvirblis
2012-06-12 07:41:06 UTC
Permalink
I'm using the same Robert Nelson Kernel 11.10.
*
*
*modprobe rtc_ds1307*
*echo ds1307 0x68 > /sys/class/i2c-dev/i2c-3/device/new_device*
*
*
I can see the new dev rtc1 in /dev/, but i cant use it.
When i try to use rtc1 with hwclock this what i get:

****@omap:/# hwclock -f /dev/rtc1 -D*
*hwclock from util-linux 2.19.1*
*Using /dev interface to clock.*
*Last drift adjustment done at 1339162275 seconds after 1969*
*Last calibration done at 1339162275 seconds after 1969*
*Hardware clock is on local time*
*Assuming hardware clock is kept in local time.*
*Waiting for clock tick...*
*/dev/rtc1 does not have interrupt functions. Waiting in loop for time from
/dev/rtc1 to change*
*RTC_RD_TIME: Invalid argument*
*ioctl() to /dev/rtc1 to read the time failed.*
*...synchronization failed*
Hi,
I have a successfully setup an Ubuntu 10.10 system running on a
Beagleboard xM using one of Robert Nelson images. I can access the I2C
ports to which I have connected a Sparkfun I2C-RTC module (based on
the DS1307). I can access the RTC using the I2CTools utilities. But at
boot time the system does not pick up the RTC-DS1307 module, so
hwclock does not work.
How do I load appropriate driver software so I can see device
rtc’N’
which points to the DS1307?
Ernie
-- To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard+unsubscribe-/***@public.gmane.org
Frequently asked questions: http://beagleboard.org/faq
lazychino
2013-03-01 00:39:23 UTC
Permalink
Hello I'm not sure if you still have the problem, but i see an error in
your command ' *echo ds1307 0x68 > /sys/class/i2c-dev/i2c-3/device
/new_device* ' device don't go there
the correct comment is '* echo ds1307 0x68 >
/sys/class/i2c-adapter/i2c-3/new_device *'.

I'm using on angstrong and it works but dont know how to add the module to
boot because modutils not exist :/

Pedro
Post by Deimantas Žvirblis
I'm using the same Robert Nelson Kernel 11.10.
*
*
*modprobe rtc_ds1307*
*echo ds1307 0x68 > /sys/class/i2c-dev/i2c-3/device/new_device*
*
*
I can see the new dev rtc1 in /dev/, but i cant use it.
*hwclock from util-linux 2.19.1*
*Using /dev interface to clock.*
*Last drift adjustment done at 1339162275 seconds after 1969*
*Last calibration done at 1339162275 seconds after 1969*
*Hardware clock is on local time*
*Assuming hardware clock is kept in local time.*
*Waiting for clock tick...*
*/dev/rtc1 does not have interrupt functions. Waiting in loop for time
from /dev/rtc1 to change*
*RTC_RD_TIME: Invalid argument*
*ioctl() to /dev/rtc1 to read the time failed.*
*...synchronization failed*
Hi,
I have a successfully setup an Ubuntu 10.10 system running on a
Beagleboard xM using one of Robert Nelson images. I can access the I2C
ports to which I have connected a Sparkfun I2C-RTC module (based on
the DS1307). I can access the RTC using the I2CTools utilities. But at
boot time the system does not pick up the RTC-DS1307 module, so
hwclock does not work.
How do I load appropriate driver software so I can see device
rtc’N’
which points to the DS1307?
Ernie
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
lazychino
2013-03-01 00:45:57 UTC
Permalink
haha was easy put a file on /etc/modules-load.d/*name of module*.conf and
run update-modules this is on angstrom
Post by lazychino
Hello I'm not sure if you still have the problem, but i see an error in
your command ' *echo ds1307 0x68 > /sys/class/i2c-dev/i2c-3/device
/new_device* ' device don't go there
the correct comment is '* echo ds1307 0x68 >
/sys/class/i2c-adapter/i2c-3/new_device *'.
I'm using on angstrong and it works but dont know how to add the module to
boot because modutils not exist :/
Pedro
Post by Deimantas Žvirblis
I'm using the same Robert Nelson Kernel 11.10.
*
*
*modprobe rtc_ds1307*
*echo ds1307 0x68 > /sys/class/i2c-dev/i2c-3/device/new_device*
*
*
I can see the new dev rtc1 in /dev/, but i cant use it.
*hwclock from util-linux 2.19.1*
*Using /dev interface to clock.*
*Last drift adjustment done at 1339162275 seconds after 1969*
*Last calibration done at 1339162275 seconds after 1969*
*Hardware clock is on local time*
*Assuming hardware clock is kept in local time.*
*Waiting for clock tick...*
*/dev/rtc1 does not have interrupt functions. Waiting in loop for time
from /dev/rtc1 to change*
*RTC_RD_TIME: Invalid argument*
*ioctl() to /dev/rtc1 to read the time failed.*
*...synchronization failed*
Hi,
I have a successfully setup an Ubuntu 10.10 system running on a
Beagleboard xM using one of Robert Nelson images. I can access the I2C
ports to which I have connected a Sparkfun I2C-RTC module (based on
the DS1307). I can access the RTC using the I2CTools utilities. But at
boot time the system does not pick up the RTC-DS1307 module, so
hwclock does not work.
How do I load appropriate driver software so I can see device
rtc’N’
which points to the DS1307?
Ernie
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...