摘要:
学习目标: 编写一个简单的Linux驱动程序,实现应用程序能通过系统调用,调用相应驱动函数,驱动程序中仅打印信息,不实现一些特定功能 写第一个驱动程序需要以下几个步骤: 1)写出open、read等系统调用在进入内核空间中调用的对应函数xxx_open、xxx_read 2)定义file_opera 阅读全文
posted @ 2020-07-18 21:09
quinoa
阅读(920)
评论(0)
推荐(0)
摘要:
实验环境:linux-3.4.2 busybox-1.20.0 问题描述: 学习驱动开发时,使用rmmod卸载已经安装成功的驱动模块时出现了rmmod: chdir(/lib/modules): No such file or directory错误提示 解决方法: step1: 报错之后第一反应怀 阅读全文
posted @ 2020-07-18 09:40
quinoa
阅读(1441)
评论(0)
推荐(0)