linux - 树莓派 raspbian3.10.25+ linux 头文件

标签 linux module kernel raspbian

如何获取 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/

相关文章:

php - 在 PHP 中执行 Linux 命令

Java FileUtils.writeLines 采用 ANSI 格式,换行符为 CR LF

javascript - 如何将对象从 React 文件导入到普通的 javascript 文件

linux-kernel - Linux内核如何管理小于1GB的物理内存?

linux - logrotate.conf 中 "daily"关键字的用途是什么

python - 如何将多个 Python 源文件连接成一个文件?

node.js - Azure Web应用程序乏味

linux - 这个脚本可以在 Linux 中运行吗?

assembly - 如何在汇编中使用 28 位 PIO 正确从磁盘读取多个扇区?

linux - iMacros + FF : Linux, 命令行