How .ko file is built

2019-05-22 13:46发布

I am trying to port my own driver to a Beagle board xm arm-cortex-A8. While porting I am trying to figuring out how the .ko file actually builds. In our Makefile we only have a command to build an.o file.

How is a .ko file built?

Using linux-2.6.38.8 kernel and trying to configure my driver for my kernel.

1条回答
聊天终结者
2楼-- · 2019-05-22 13:59

The kernel kbuild module document has lots of information on how to build an external module. If you have Raspberian or some other embedded ARM Linux, you will need to get the source package for your kernel. The process differs based on whether you are compiling on the same machine the module will run on, or if you are trying to build it on a PC (hopefully a Linux PC).

Please specify which way you need to build, if the kbuild module document doesn't explain things well enough.

查看更多
登录 后发表回答