linux板卡支持USB键盘,让linux2.6.24内核在开发板支持usb鼠标

让linux2.6.24内核在开发板支持usb鼠标

发布时间:2008-03-27 16:06:22来源:红联作者:Inwind

今天下午,对以前移植的linux2.6.24内核不能检测USB鼠标进行了修改menuconfig,新内核的USB鼠标在内核drivers/hid/usbhid目录下,文件名:usbmouse.c,如果你需要对鼠标驱动修改就看这个文件,我的开发板暂时不需要对鼠标驱动定制特别的操作,于是在保证2410配置文件默认的情况下,make menuconfig然后选择 Device Drivers -->进入 选中HID Devices ---> 进入 USB HID Boot Protocol drivers ---> 看到 USB HIDBP Mouse (simple Boot) support,选中它,如果没有出现该项说明你在上边的步骤中选中了其他多余项,可以根据打开的kconfig文件中看到。

menu "USB HID Boot Protocol drivers"

depends on USB!=n && USB_HID!=y

config USB_KBD

tristate "USB HIDBP Keyboard (simple Boot) support"

depends on USB && INPUT

---help---

Say Y here only if you are absolutely sure that you don't want

to use the generic HID driver for your USB keyboard and prefer

to use the keyboard in its limited Boot Protocol mode instead.

This is almost certainly not what you want. This is mostly

useful for embedded applications or simple keyboards.

To compile this driver as a module, choose M here: the

module will be called usbkbd.

If even remotely unsure, say N.

config USB_MOUSE

tristate "USB HIDBP Mouse (simple Boot) support"

depends on USB && INPUT

---help---

Say Y here only if you are absolutely sure that you don't want

to use the generic HID driver for your USB mouse and prefer

to use the mouse in its limited Boot Protocol mode instead.

This is almost certainly not what you want. This is mostly

useful for embedded applications or simple mice.

To compile this driver as a module, choose M here: the

module will be called usbmouse.

If even remotely unsure, say N.

endmenu

选中以后,make zImage好了,烧录开发板,重启,可以看到检测到鼠标驱动了,原来的报出的错误没有了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值