General Research on LINUX driver and RTC driver

Source: Internet
Author: User
General Research on LINUX driver and RTC driver-Linux general technology-Linux programming and kernel information. The following is a detailed description. 1. The directory in linux is clearer. ARCH is related to the CPU of the Board or hardware system and is also the focus of transplantation. drivers is the file directory of the driver, FS, NET is a directory with special drivers.

2. Kconfig and Makefile are used in combination. Kconfig defines some macros. You can choose to define or not to define them. However, Makefile is used to determine which files are cheaper to manage defined macros, based on this, we can easily find the source file behind each option.

3. The transplanted and board-related content is between MACHINE_START and MACHINE_END, and the brackets contain the mach-type.

. Boot_params: determine the location of the physical address that the bootloader uses to transmit parameters to the inland river.
. Init_irq
. Map_io
. Init_machine

Initialize three work functions

4. Correct the RTC time. Otherwise, it will not work properly.

Next, set the correct system time and pass the system time to RTC.

[Root @ kevin/] # Day 040612282008.20

Sun Apr 6 12:28:20, UTC 2008

[Root @ kevin/] # hwclock-w

[Root @ kevin/] # hwclock

Sun Apr 6 12:29:01 2008 0.000000 seconds

[Root @ kevin/] # hwclock

Sun Apr 6 12:30:15 2008 0.000000 seconds
Related Article

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.