Difference between revisions of "RTC"
From ArmadeusWiki
(→Configuration) |
|||
Line 9: | Line 9: | ||
− | First be sure to | + | First be sure to use an armadeus 2.0 or higher. |
+ | The RTC/DS1374 support is already present 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 linux-menuconfig | $ make linux-menuconfig | ||
+ | ** check the i2c module drivers i2c-imx and i2c-dev | ||
+ | ** check the RTC module driver rtc-dev and rtc-ds1374 | ||
+ | ** if you intagrates these module statically in the kernel then the system date will be set at power-up. | ||
+ | ** fix me..; | ||
$ make | $ make | ||
+ | and reload your kernel and/or rootfs | ||
== Installation == | == Installation == |
Revision as of 19:52, 28 January 2007
On this page, you will find usefull informations to use an external DS1374 Real Time Clock. This feature apply to the armadeus software release 2.0 and above.
Contents
[hide]Hardware
No permanent RTC is present on the APF9328 but it is not so complex to add a DS1374 (with quartz integrated) on the I2C bus. Do not forget to provide the power-supply.
Configuration
First be sure to use an armadeus 2.0 or higher. The RTC/DS1374 support is already present 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 linux-menuconfig
- check the i2c module drivers i2c-imx and i2c-dev
- check the RTC module driver rtc-dev and rtc-ds1374
- if you intagrates these module statically in the kernel then the system date will be set at power-up.
- fix me..;
$ make
and reload your kernel and/or rootfs
Installation
Usage
Load the module:
# insmod /lib/modules/kernel/pwm/pwm.ko
...........