如何获取 raspbian 的 linux 头文件?
它没有安装包。我也尝试下载源代码 但没有用。
嗨下面的教程 http://www.raspberrypi.org/forums/viewtopic.php?f=71&t=17666
http://sandsoftwaresound.net/raspberry-pi/build-a-kernel-module/
但是还是不行。
最佳答案
Linux 内核源码安装程序
我找到了一个 linux 内核源代码安装程序。有用 !!! 该脚本可以为正在运行的内核安装和准备内核源。
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/wiki/Examples-on-how-to-build-various-modules
http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=76261
关于linux - 树莓派 raspbian3.10.25+ linux 头文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23632729/