jxnuxdy
驱动牛犊
驱动牛犊
  • 注册日期2002-10-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1376回复:5

有没有人做过solaris下驱动的,交流一下?

楼主#
更多 发布于:2003-07-10 14:12
真惨,现在做这个下面的驱动,没人交流,看看一大堆的PDF也没什么进展,急需交流!
piggy
驱动牛犊
驱动牛犊
  • 注册日期2001-08-24
  • 最后登录2012-01-14
  • 粉丝0
  • 关注0
  • 积分4分
  • 威望27点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-07-11 04:15
What kind of driver you want to develop? I have some experience on developing device driver on Solaris. Actually there is a forum on Sun website. http://forum.sun.com. But this forum is not very well. Sometime no one reply your question.
jxnuxdy
驱动牛犊
驱动牛犊
  • 注册日期2002-10-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-07-11 13:55
太好了,终于遇到了高手,我现在就写个虚串口驱动程序,但要把串口数据发送到网络上。
具体任务也就是,用open了这个设备后,write的数据就发送到指定的网络上,READ就是从网络上读过来的。
在linux下与windows下我都完成了这个功能,但solaris下的设备管理我不清楚,驱动程序结构我倒是看了很多遍。关健是不理解它这个
“设备注册”、“设备创建”是怎样完成的,如有个例子程序就好。
jxnuxdy
驱动牛犊
驱动牛犊
  • 注册日期2002-10-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-07-11 16:10
email:jxnuxdy@163.com
piggy
驱动牛犊
驱动牛犊
  • 注册日期2001-08-24
  • 最后登录2012-01-14
  • 粉丝0
  • 关注0
  • 积分4分
  • 威望27点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-07-11 22:17
I think you can turn to the books, Solaris Internals and Writing Device Drivers. Actually the device register and device creation are not very difficult after you read the books.

If you want to get more detailed information, such as samples, you can download the source code of Solaris OS. Just send a fax to SUN company. They will give you a link to download the entire source code. As my point of view it is very helpful to your development.

I am not very familar to the serial port. I am working on the storage device driver. So I couldn\'t give you big help. Sorry about that.
jxnuxdy
驱动牛犊
驱动牛犊
  • 注册日期2002-10-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-07-17 14:45
大侠,我现在不是说思路上的问题,而是按照SUN的这些例子及步螂,就是报attach失败:
devfsadm: driver failed to attach: com
Warning: Driver (com) successfully added to system but failed to attach
这是什么原因,你的设备不过是块设备嘛,考个框架给偶,让偶再拆腾一下。谢谢了先!
游客

返回顶部