zfyseu
Posts: 29
Joined: Fri Jun 10, 2016 12:31 pm

How to build a kernel module on Raspbian?

Thu Jun 30, 2016 2:33 am

Hello, everyone!
I want to build a kernel module on Rpi 2 based on raspbian.

And I follow the link "https://github.com/notro/rpi-source/wiki" to build the module.

However when I run the command "rpi-source" it returns the error:
ERROR:
gcc version check: mismatch between gcc (4.8.2) and /proc/version (4.9.3)

Is there anyone know how to solve it?
Thank you!

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to build a kernel module on Raspbian?

Thu Jun 30, 2016 6:16 pm

Use the rpi-source switch (--skip-gcc) to ignore that.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “General discussion”