准备树莓派下的模块开发环境

sudo apt-get install linux-image-rpi-rpfv linux-headers-rpi-rpfv

 编辑/boot/config.txt,在末尾加入以下内容:

# set parameters for raspbian debian style boot
kernel=vmlinuz-3.12-1-rpi
initramfs initrd.img-3.12-1-rpi followkernel

重新启动,即可启用新内核。

原文地址:https://www.cnblogs.com/brep/p/4201867.html