Reference: http://www.cnblogs.com/Neddy/archive/2011/12/07/2278761.html2440 RTC Clock
Porting Linux to 2440 found no clock information, the workaround is as follows:
1, in the Linux kernel inside with make menuconfig open configuration screen, device drivers options
Find the real Time clock screen, press space to select "*", then enter this option
Select the Samsung S3C series SoC RTC
Save after exit exits
2. Modify file Mach-smdk2440.c (/linux2.6.22.6/arch/arm/mach-s3c2440/mach-smdk2440.c), add &s3c_ in array smdk2440_devices[] DEVICE_RTC, and then make generates Zimage file to download in 2440.
3. Add the RTC Driver node to the RCS file in the/ETC/INIT.D of the file system
MKNOD/DEV/RTC C 135 &
chmod 777/DEV/RTC &
Plus/sbin/hwclock-s, start reading the CPU's RTC clock to the Linux system
4, after re-rinse the machine, set the time
Date-s [YYYY.] Mm. DD-HH:MM[:SS]
Date-s 2011.12.07-9:40:30
Updating the CPU RTC clock with the Hwclock command
Hwclock-w
*****************************************************
Hwclock parameters
Options:
-R Show Hardware clock time
-S Set system time from hardware clock
-W Set hardware clock to system time
-U Hardware clock is in UTC
-L Hardware Clock is in local time
-F FILE use specified device (e.g./dev/rtc2)
*****************************************************
GEC2440 RTC Clock