Forum Discussion
Altera_Forum
Honored Contributor
16 years agoMichael, here is everything I could mine from the old thread. There's not much I can do about the length; it is what it is.
Hi all, I am having trouble getting uClinux to recognize the DS1338 RTC on my hardware. The device is functioning and I can read and set the time with the i2c utils and it is keeping time, so I think the hardware I/F is ok. I have the following options checked in the kernel config: --- Real Time Clock [*] Set system time from RTC at startup and resume [rtc0] RTC used to set the system time [*] /sys/class/rtc/rtcN (sysfs) [*] /proc/driver/rtc (procfs for rtc0) [*] /dev/rtcN (character devices) <*> Dallas/Maxim DS1307/37/38/39/40, ST M41T00 When the system boots I get the following error message: . Linux version 2.6.27-rc4 ... . . /home/chris/nios2-linux/linux-2.6/drivers/rtc/hctosys.c: unable to open rtc device (rtc0) . . /> ls -al /dev/rtc* crw-r----- 1 0 0 10, 135 Nov 29 16:00 /dev/rtc /> Thanks and Good Huntin' cb hi cb, I've been following this thread as I am having trouble with the RTC also. I have managed to reproduce all of your data using a different RTC chip and with the same result I'm sorry to say. At the moment this issue has become a priority so I will be continuing to look at it. Please post anything you find and I will do the same.. Alex Hi cb and halfdome, Please check if you added i2c board info in arch/nios2/kernel/config.c, like that of arch/blackfin/mach-bf527/boards/ezkit.c. i2c_register_board_info() and I2C_BOARD_INFO("ds1307", 0x68) Cheer, Hippo