Linux self-study _ new driver steps

Source: Internet
Author: User

1. Write the driver sourceProgram

2. Modify the kconfig file in the directory and add the configuration options supported by the system for the driver.

3. Enter "make menuconfig", check the corresponding driver option, compile the system, and download the image to the Development Board.

4. Modify the MAKEFILE file in the directory

5. Execute "make modules" in the directory to generate the driver module File Ko

6. Download the newly produced driver module file to the lib directory of the Development Department's file system.

7. Execute insmod to load the driver to the kernel (rmmod is unmounted)

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