逃避虽然可耻但有用

逃避虽然可耻但有用

少壮不努力,一生在内地

  • 主页
  • 归档
  • 关于
  • 消失

Linux下编译驱动发现没有内核源码的解决办法

2013-06-02

CentOS系统

yum install -y kernel-devel

Ubuntu系统

apt-get install linux-source

以上~!

参考:《或许你不需要整个内核的源代码》 - http://wiki.centos.org/zh/HowTos/I_need_the_Kernel_Source

Linux
Install Kernel Ko Linux Yum

Linux下编译驱动代码时smp_lock.h文件找不到的解决方案

2013-06-01

kernel

项目中有个驱动代码之前在老版本linux系统中编写的 在移植到 linux-kernel-3.2.0 后,编译时出现一处错误 fatal error: linux/smp_lock.h: No such file or directory

解决办法

将:

#include <linux/smp_lock.h>

替换成:

#include <linux/hardirq.h>
Linux
C Hardirq.h Linux Smp_lock.h
首页 上一页 1 2

文章分类

  • 1 deploy
  • 1 interesting
  • 29 linux
  • 6 notices
  • 28 programing
  • 1 sites
  • 10 summarys
  • 2 works

文章标签

  • c3
  • centos5
  • compress2
  • conf2
  • css2
  • gcc2
  • git3
  • html2
  • https2
  • hugo2
  • install4
  • kernel3
  • layout2
  • libc2
  • linux12
  • ln2
  • make3
  • mud2
  • python3
  • safeseh2
  • style2
  • sudo2
  • ubuntu8
  • windows4
  • yum4
  • zlib4
RSS 订阅

Hello, this is leaker's blog in github.
Leaker: "Living without an aim is like sailing without a compass."

Powered by Hugo and Theme by Fika © 2022 leaker