GEC2440 RTC Clock

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.