摘要: 在Linux下建个DriverHello目录,在DriverHello目录下编写源文件hello.c和Makefile文件。 1、编写源文件 hello.c #include <linux/init.h> #include <linux/module.h> #include <linux/sched 阅读全文
posted @ 2021-02-03 18:25 bizhenLiu 阅读(999) 评论(0) 推荐(0) 编辑
摘要: 1 、打补丁 先下载内核源码和补丁,例如 内核源码:linux-3.10.tar.gz 下载补丁:patch-3.10.1.gz 在Linux下创建一个patch-3.10.1目录,把patch-3.10.1.gz放到patch-3.10.1目录下,进入到patch-3.10.1目录,并使用以下命令 阅读全文
posted @ 2021-02-03 18:01 bizhenLiu 阅读(1456) 评论(0) 推荐(0) 编辑