-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rasp-pi-brpred: add notes on how to build out-of-tree kernel module
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
You need to have kernel headers that match your running kernel. | ||
|
||
One source of these is here: | ||
https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/ | ||
|
||
after installing the matching one you might have to install the "right" | ||
version of gcc too, in this case I had to install | ||
linux-compiler-gcc-4.7-arm | ||
|
||
I then had to chown -R /usr/src/linux-headers* to belong to me for some | ||
reason | ||
|
||
after that, at least on my pi-2 I was able to build my module and install | ||
it (with insmod ./rasp-pi-brpred.ko) just fine. |