How to make a built-in device driver in linux

后端 未结 2 731
再見小時候
再見小時候 2021-01-29 09:02

I know how to make loadable kernel modules in Linux. But i want that loadable kernel module to be a part of the kernel , and after booting that driver should automatically load,

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-29 09:59

    You have to configure modprobe to load automatically driver after kernel boot. Here an example of configuration.

    If you want to a built-in module, you must re-compile the kernel, and set Y in the configuration file on all modules that you want inside the kernel

提交回复
热议问题