View previous topic :: View next topic |
Author |
Message |
t3rm1nal Apprentice
Joined: 17 May 2004 Posts: 173 Location: US
|
Posted: Fri Jun 18, 2004 1:51 pm Post subject: USB and the 2.4.25 kernel |
|
|
Im trying to manually configure the kernel and I have a USB mouse, my compile is failing due to some USB drivers. Can someone tell me what I need to do to resolve this please? Thanks in advance.
Code: | drivers/usb/usbdrv.o(.text+0x173e5): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x1745b): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x174cf): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x1751b): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x176ba): In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o(.text+0x1770d): In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o(.text+0x17867): In function `hidinput_disconnect':
: undefined reference to `input_unregister_device'
drivers/usb/usbdrv.o(.text+0x17411): In function `hidinput_hid_event':
: undefined reference to `input_event'
make: *** [vmlinux] Error 1 |
_________________
Adopt an unanswered post.
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54799 Location: 56N 3W
|
Posted: Fri Jun 18, 2004 2:31 pm Post subject: |
|
|
t3rm1nal,
Please post the USB section of your kernel .config file. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
t3rm1nal Apprentice
Joined: 17 May 2004 Posts: 173 Location: US
|
Posted: Fri Jun 18, 2004 6:31 pm Post subject: |
|
|
Code: | CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
# CONFIG_USB_DEVICEFS is not set
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_UHCI is not set
# CONFIG_USB_UHCI_ALT is not set
# CONFIG_USB_OHCI is not set
# CONFIG_USB_SL811HS_ALT is not set
# CONFIG_USB_SL811HS is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_BLUETOOTH is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_STORAGE is not set
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_HP8200e is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_CATC is not set
# CONFIG_USB_CDCETHER is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_USS720 is not set
# Input core support
#
CONFIG_INPUT=m
CONFIG_INPUT_KEYBDEV=m
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=m
CONFIG_INPUT_UINPUT=m
|
would also mention my mother board is the biostar M7NCD _________________
Adopt an unanswered post.
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54799 Location: 56N 3W
|
Posted: Fri Jun 18, 2004 7:20 pm Post subject: |
|
|
t3rm1nal
You have omitted the drivers for your root hub. Choose from the following:-
Quote: | # CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_UHCI is not set
# CONFIG_USB_UHCI_ALT is not set
# CONFIG_USB_OHCI is not set |
EHCI is for USB 2.0 on any hardware and may be freely mixed with the others.
UHCI is for Intel and Via hardware for USB 1.1 - choose one only.
OHCI is for everyone else for USB 1.1
Build them all as modules and use modprobe to see which one works best/at all. Add that one to /etc/modules.d/kernel<Ver>
Do not say Y to them all to build them in. They fight amongst themselves and USB won't work at all.
============== edit =====================
Say Y to Quote: | # CONFIG_USB_DEVICEFS is not set | too. usbview needs it to work and its a good USB debug aid. emerge usbview _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
t3rm1nal Apprentice
Joined: 17 May 2004 Posts: 173 Location: US
|
Posted: Fri Jun 18, 2004 8:44 pm Post subject: |
|
|
still gives me the same undefined..... errors _________________
Adopt an unanswered post.
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54799 Location: 56N 3W
|
Posted: Fri Jun 18, 2004 9:02 pm Post subject: |
|
|
t3rm1nal,
Heres whay I have in my last 2.4 kernel. (2.4.20-gentoo-r7) Items configured out are not included. Code: | # USB support
#
CONFIG_USB=y
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
CONFIG_USB_LONG_TIMEOUT=y
#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI=m
CONFIG_USB_UHCI_ALT=m
CONFIG_USB_OHCI=m
#
# USB Device Class drivers
#
CONFIG_USB_AUDIO=m
CONFIG_USB_STORAGE=m
CONFIG_USB_PRINTER=m
#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
#
# USB Imaging devices
#
CONFIG_USB_SCANNER=m
#
# USB Multimedia devices
#
CONFIG_USB_PWC=m
#
# USB Network adaptors
#
CONFIG_USB_USBNET=m
CONFIG_USB_USBDNET=m
CONFIG_USB_USBDNET_VENDOR=049f
CONFIG_USB_USBDNET_PRODUCT=505a
CONFIG_USB_USBDNET_CLASS=0000
CONFIG_USB_USBDNET_SUBCLASS=0000
|
If you want, I can post the whole .config file on the web. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
t3rm1nal Apprentice
Joined: 17 May 2004 Posts: 173 Location: US
|
Posted: Fri Jun 18, 2004 9:43 pm Post subject: |
|
|
thanks neddy : back in business!
the issue was that the core input devices weren't enabled, for somereason, when I did a modprobe it threw the same undefined reference error, so i figured id just throw them in modules.autoload.d/kernel-2.4 and hope that the boot process would detect the correct ones. looking through dmesg, turns out it detected the right ones. now i just need to take out the modules that failed (assuming those are the drivers not needed)
thank you neddy _________________
Adopt an unanswered post.
|
|
Back to top |
|
|
|