天嵌 ARM开发社区

 找回密码
 注册
查看: 2226|回复: 3

hello 驱动开发

[复制链接]
wxdcxp 发表于 2009-12-7 15:58:49 | 显示全部楼层 |阅读模式
请问版主,我用2.6.30.4内核按手册上的写一个hello驱动程序,编译时提示错误
No rule to make target '|',need by firmware/dabusb/firmware.fw.stop
Error 2
但是已经生成了.ko文件,这个问题要怎么解决?
 楼主| wxdcxp 发表于 2009-12-7 16:14:23 | 显示全部楼层
我把hello.ko 文件下载到开发板,运行后可以看到结果,为什么会提示以上错误?
亚瑟王 发表于 2009-12-8 11:42:12 | 显示全部楼层
你编译我们提供的2.6.30.4的内核中的hello驱动能用吗?你将你的hello代码替换掉我们提供的那个hello代码编译出来能用吗?
 楼主| wxdcxp 发表于 2009-12-8 17:16:27 | 显示全部楼层
将make modules
改为make M=drivers/char/ modules
可以解决了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-28 06:59 , Processed in 1.027384 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表