Being calm, calm, and patient is the key to technology.

Source: Internet
Author: User
Being calm, calm, and patient is the key to technology-general Linux technology-Linux programming and kernel information. For more information, see the following. From solving the problem to finding the problem, an infrared problem finally prompted me to upgrade the kernel to 2.6.24. As a result, I first transplanted the latest kernel, and then set up a file system, then we transplanted the original driver, and finally transplanted the qtopia program, which increased a lot of work, but it is very worthwhile. As of today, the original program runs normally on the Development Board, looking at the new kernel and the original program running in the new file system, I feel that it is not in vain, especially during the transplantation of the QT program, it takes nearly two hours to compile the qtopia lib library. I have tested it with different cross-compilation tools. If I have no patience, I am afraid I have already gave up, during driver transplantation, the latest kernel has a finer division of the system. After reading the relevant driver files, I feel that the code writing is more standardized, and the data structure is unified and simplified.

But I didn't make a lot of changes to my original driver, and didn't rewrite it. I have consulted some netizens, so I should take my issue first, in the future, we will take a lot of time to carefully study the driver compiling specifications of the new kernel. It will be concise, easy to read, and highly efficient, in particular, I read the reading and writing functions at the lowest layer of the netizens, such as ioread32 (), and read some functions configured on the IO pins: s3c2410_gpio_cfgpin () in fact, there are a lot of source code in the new kernel. As long as you take the time to study it, you should be able to understand the usage. Although I didn't use these usage, I used the old method ioremap () functions and writel () are used to implement IO serial port configuration. Large rows can only be placed temporarily.

Although the Code is not as readable and less efficient as the new kernel driver, the project should be the first priority. "No matter whether it is a white cat, a black cat, or a flower cat, it is a good cat to catch a mouse ", for the time being, it will take time to study the Source Code related to the new kernel, the best teacher is the source code.

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.