[英]raspberry pi raspbian3.10.25+ linux headers
How can I get the linux headers for the raspbian? 如何获得raspbian的linux标头?
There is no installation package for it. 没有安装包。 Also I tried to download the sources but in didn't work.
我也尝试下载源,但是没有用。
hi the following tutorials http://www.raspberrypi.org/forums/viewtopic.php?f=71&t=17666 嗨,以下教程http://www.raspberrypi.org/forums/viewtopic.php?f=71&t=17666
http://sandsoftwaresound.net/raspberry-pi/build-a-kernel-module/ http://sandsoftwaresound.net/raspberry-pi/build-a-kernel-module/
But it still does not work. 但这仍然行不通。
Linux kernel source installer Linux内核源安装程序
i have found a linux kernel source installer. 我已经找到了Linux内核源安装程序。 it works !!!
有用 !!! the script can install and prepare the kernel source for the running kernel.
该脚本可以为正在运行的内核安装并准备内核源代码。
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.
它适用于新的Raspian图像和rpi更新的图像。
Wiki: https://github.com/notro/rpi-source/wiki
Wiki: https : //github.com/notro/rpi-source/wiki
Some examples: https://github.com/notro/rpi-source/wiki/Examples-on-how-to-build-various-modules
一些示例: 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 http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=76261
to get Raspbian kernel headers you should install rpi-source
and have the latest firmware 要获取Raspbian内核头文件,您应该安装
rpi-source
并拥有最新的固件
on Raspberry follow those steps : 在Raspberry上,请执行以下步骤:
1 Perform an sudo rpi-update
you have to be on the latest firmware to do next steps. 1执行
sudo rpi-update
您必须使用最新的固件才能进行下一步。 see [ https://github.com/Hexxeh/rpi-update ] for details on rpi-update . 有关rpi-update的详细信息,请参见[ https://github.com/Hexxeh/rpi-update ]。
2 Install and run rpi-source
to install the source code that built the latest kernel that you are running. 2安装并运行
rpi-source
以安装构建了您正在运行的最新内核的源代码。 Instructions to install rpi-source can be found at [ https://github.com/notro/rpi-source/wiki ] . 可以在[ https://github.com/notro/rpi-source/wiki ]中找到安装rpi-source的说明。 This will create the correct entry in
/lib/modules
for the kernel that you are running. 这将在
/lib/modules
为您正在运行的内核创建正确的条目。
if you have space problem error : Not enough diskspace (900MB) on /root
, see [ https://raspberrypi.stackexchange.com/questions/16977/download-kernel-source-code-error-not-enough-diskspace-900mb-on-root ] to resize the partition to be able to use the remaining free space on the SD card. 如果您遇到空间问题错误:
Not enough diskspace (900MB) on /root
,请参阅[ https://raspberrypi.stackexchange.com/questions/16977/download-kernel-source-code-error-not-enough-diskspace-900mb -on-root ]来调整分区大小,以便能够使用SD卡上的剩余可用空间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.