05 2017 档案

字符型设备驱动程序-first-printf以及点亮LED灯(四)
摘要:怎么样 把 写的 代码 和 编译 放到 开发板上 去执行? 2017年5月22日16:34:13 需要 自己 编译 Linux 内核。。 需要 以下 几个 条件: 1、正常运行 Linux 的 开发板 1、烧录 板子上 的Linux 2、用 nfs 挂载 2、内核源码树 3、nfs 挂载的 root 阅读全文

posted @ 2017-05-19 17:22 所长 阅读(227) 评论(0) 推荐(0)

字符型设备驱动程序-first-printf以及点亮LED灯(三)
摘要:根据 字符型设备驱动程序-first-printf以及点亮LED灯(二) 学习 修改函数 中的printf 为 printk. #include <linux/module.h> /* Needed by all modules */ #include <linux/kernel.h> /* Nee 阅读全文

posted @ 2017-05-19 09:53 所长 阅读(325) 评论(0) 推荐(0)

字符型设备驱动程序-first-printf以及点亮LED灯(二)
摘要:编译这几个函数之前要学一下:Linux 的几个操作命令。 学习地址:http://edu.51cto.com/lesson/id-101824.html 重要的命令 有4个 :分别是 1、lsmod,2、insmod 3、modinfo 4、rmmod. 1、lsmod (list module) 阅读全文

posted @ 2017-05-19 09:18 所长 阅读(383) 评论(0) 推荐(0)

字符型设备驱动程序-first-printf以及点亮LED灯(一)
摘要:学习使用 Linux 的 字符型设备驱动 来 进行 . 学习地址:http://edu.51cto.com/lesson/id-25710.html 第一步: 首先写 三个函数 ,2017年5月17日15:59:06 第二步:告诉 linux 内核 有这样三个函数 的 存在。2017年5月17日16 阅读全文

posted @ 2017-05-17 16:59 所长 阅读(412) 评论(0) 推荐(0)

导航