Hi, I'm using the latest kamikaze trunk on an ASUS WL-500W (brcm-2.4 kernel), to which I have a Creative Xmod USB audio card attached. I needed /dev/input/eventX support to allow me to use the volume knob on the Xmod. So I've patched the kernel package configs to allow kmod-input-core, kmod-input-evdev and kmod-usb-hid to be selected from the menuconfig for a 2.4 kernel. I've only tested this in a 2.4 build and for the purpose described above (using empcd to control mpd). Hope this can find it's way into the trunk or be of help to other users.
Regards Mark Gibson <[email protected]> Index: package/kernel/modules/other.mk =================================================================== --- package/kernel/modules/other.mk (revision 14803) +++ package/kernel/modules/other.mk (working copy) @@ -577,9 +577,16 @@ define KernelPackage/input-core SUBMENU:=$(OTHER_MENU) TITLE:=Input device core - DEPENDS:=...@linux_2_6 KCONFIG:=CONFIG_INPUT - FILES:=$(LINUX_DIR)/drivers/input/input-core.$(LINUX_KMOD_SUFFIX) +endef + +define KernelPackage/input-core/2.4 + FILES:=$(LINUX_DIR)/drivers/input/input.o + AUTOLOAD:=$(call AutoLoad,50,input) +endef + +define KernelPackage/input-core/2.6 + FILES:=$(LINUX_DIR)/drivers/input/input-core.ko AUTOLOAD:=$(call AutoLoad,50,input-core) endef @@ -592,7 +599,7 @@ define KernelPackage/input-evdev SUBMENU:=$(OTHER_MENU) - TITLE:=Input even device + TITLE:=Input event device DEPENDS:=+kmod-input-core KCONFIG:=CONFIG_INPUT_EVDEV FILES:=$(LINUX_DIR)/drivers/input/evdev.$(LINUX_KMOD_SUFFIX) @@ -608,8 +615,8 @@ define KernelPackage/hid SUBMENU:=$(OTHER_MENU) - TITLE:=Input even device - DEPENDS:=+kmod-input-core +kmod-input-evdev + TITLE:=HID input device support + DEPENDS:=...@linux_2_6 +kmod-input-core +kmod-input-evdev KCONFIG:=CONFIG_HID FILES:=$(LINUX_DIR)/drivers/hid/hid.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,61,hid) Index: package/kernel/modules/usb.mk =================================================================== --- package/kernel/modules/usb.mk (revision 14803) +++ package/kernel/modules/usb.mk (working copy) @@ -637,14 +637,23 @@ define KernelPackage/usb-hid - $(call usbdep,@LINUX_2_6 +kmod-input-core +kmod-input-evdev +kmod-hid) + $(call usbdep,+kmod-input-core +kmod-input-evdev) TITLE:=Support for USB Human Input Devices +endef + +define KernelPackage/usb-hid/2.4 + KCONFIG:=CONFIG_USB_HID CONFIG_USB_HIDINPUT=y + FILES:=$(LINUX_DIR)/drivers/usb/hid.o + AUTOLOAD:=$(call AutoLoad,70,hid) +endef + +define KernelPackage/usb-hid/2.6 + $(call usbdep,+kmod-hid) KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko AUTOLOAD:=$(call AutoLoad,70,usbhid) endef - define KernelPackage/usb-hid/description Kernel support for USB HID devices such as keyboards and mice endef _______________________________________________ openwrt-devel mailing list [email protected] http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
