Fujitus
Posts: 1
Joined: Tue Sep 13, 2016 8:28 am

Kernel Module Compilation

Tue Sep 13, 2016 8:37 am

Hi All, I would like to compile my own kernel module but i'got a problems.

I try different way to compile the module but each time it's tell me that the build directory in the kernel dosn't existe

make -C /lib/modules/4.4.11-v7+/build SUBDIRS=/home/pi modules
make[1]: *** /lib/modules/4.4.11-v7+/build: No such file or directory. Stop.
Makefile:14: recipe for target 'modules' failed
make: *** [modules] Error 2

If some one got a idea let me know

User avatar
nl3prc
Posts: 160
Joined: Sun Jul 24, 2016 12:39 pm
Location: Den Helder the netherlands

Re: Kernel Module Compilation

Tue Sep 13, 2016 6:56 pm

look in your system if the target directory exists

User avatar
DougieLawson
Posts: 36150
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Kernel Module Compilation

Tue Sep 13, 2016 7:23 pm

Use Notro's rpi-source to get a good source tree and build environment.
https://github.com/notro/rpi-source/wiki
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Return to “Advanced users”