I have added an RTC to the I2C bus of the Raspberry Pi. If I follow the steps mentioned here (I am using the DS1307 RTC IC), I can run
hwclock and read the time.
root@raspberrypi:~# modprobe rtc-ds1307 root@raspberrypi:~# echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
Once, I run this, I cannot access the RTC from my python script any more. However, I have to do this at each boot. Is there a way I can specify my RTC address on the I2C so than the system recognizes it at boot time?