How to create an embedded device driver in Linux

I know how to create loadable kernel modules in Linux. But I want the loadable kernel module to be part of the kernel and load automatically after loading this driver, like most other common drivers.

How to do it?

-1
source share
2 answers

There are two ways to make your request 1) create yours module as statically compiled along with kernel(your source code should be in the kernel tree), so when building it is static, which is part of the kernel, so when the kernel boots, your module will be loaded. 2) The same as above, but while building build as dynamic loadable module so that wheneever required you can load it.

, helloworld.

http://www.agusbj.staff.ugm.ac.id/abjfile/Chap8.pdf

+1

modprobe . .

, ​​ Y ,

+1

Source: https://habr.com/ru/post/1531478/


All Articles