ds1307 clock module

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

ds1307 clock module

Postby crashmaster » Thu Mar 28, 2013 4:34 pm

Hello,

i've got a hwclock based on the mostly used ds1307. The kernels rtc-ds1307 routine is currently compiled as module. To use it i do
$this->bbcode_second_pass_code('', '
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
modprobe rtc-ds1307
')
which works fine, but during bootup the time is set a little bit too late (an "initrd" would probably solve this, but on RPi we don't have one).

Wouldn't it make sense to compile the ds1307 into the kernel and not as module, so time can be set as soon as possible like in PCs ?

Thanks,
Manfred
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am

Re: ds1307 clock module

Postby pepedog » Thu Mar 28, 2013 5:00 pm

I'll bookmark to remind me next build
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ds1307 clock module

Postby crashmaster » Thu Mar 28, 2013 5:11 pm

Many thanks!
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests