Talk:RTC

From ArmadeusWiki
Jump to: navigation, search

Driver installation

First be sure to use an armadeus 2.0 or higher. The RTC/DS1374 support is already configured in U-BOOT and linux kernel 2.6.18.1 and higher. Therefore you have nothing to configure to use the RTC. Nevertheless these are the parameters to check to have the RTC supported:

$ make linux26-menuconfig
  • check the i2c module drivers "I2C support", "I2C DEVICE", "I2C HARDWARE/bus on imx"
  • check the RTC module driver "RTC class", "set time from RTC" "RTC interface dev"
  • if you integrates these module statically in the kernel then the system date will be set at power-up.
$ make

and reload your kernel and/or rootfs

Installation

  • Installation is automatic with the default configuration but if you choose to compile rtc and i2c drivers as module then you have to load them:
$ modprobe i2c-imx
$ modprobe rtc-ds1374
$ modprobe rtc-dev