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.
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.