This makes it easy to build kernel modules, both in-tree and external.
It works on a fresh Raspian image and on a rpi-update'd image.
Wiki: https://github.com/notro/rpi-source/wiki
Some examples: https://github.com/notro/rpi-source/wik ... us-modules
Code: Select all
$ rpi-source -h
usage: rpi-source [-h] [-d DEST] [--nomake] [--uri URI] [--delete] [-s]
[--verbose] [-q] [--skip-gcc] [--skip-space]
Raspberry Pi kernel source installer
optional arguments:
-h, --help show this help message and exit
-d DEST, --dest DEST Destination directory. Default is $HOME
--nomake Don't run 'make modules_prepare'
--uri URI Github repository to use. Default is
'https://github.com/Hexxeh/rpi-firmware'
--delete Delete downloaded archive
-s, --dry-run No action; perform a simulation of events that would
occur but do not actually change the system.
--verbose Verbose
-q, --quiet Quiet
--skip-gcc Skip gcc version check
--skip-space Skip disk space check
For more help see: https://github.com/notro/rpi-source/wiki