LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-12-2003, 12:02 AM   #1
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Rep: Reputation: 30
USB mouse problems - undefined reference when make bzImage??


ok gurus, here is where I am at:

latest kernel-2.4.22 compile using config from 2.4.18-bf2.4

in kernel 2.4.18-bf2.4 the usb mouse works perfectly.
lsmod shows:

Module Size Used by Tainted: P
mousedev 3744 1
usbmouse 1760 0 (unused)
hid 18784 0 (unused)
usb-uhci 20676 0 (unused)
usbcore 48000 1 [usbmouse hid usb-uhci]
keybdev 1664 0 (unused)
input 3040 0 [mousedev usbmouse hid keybdev]

if i disconnect and then reconnect mouse it appears in messages as:
Sep 12 14:47:17 zeus kernel: usb.c: USB disconnect on device 2
Sep 12 14:47:20 zeus kernel: hub.c: USB new device connect on bus1/1, assigned device number 3
Sep 12 14:47:20 zeus kernel: input0: USB HID v1.10 Mouse [Logitech Logitech] on usb1:3.0


in kermel 2.4.22 lsmod shows:

Module Size Used by Not tainted
mousedev 3864 1
usbmouse 1820 0 (unused)
hid 16708 0 (unused)
usb-uhci 21996 0 (unused)
usbcore 58464 1 [usbmouse hid usb-uhci]
keybdev 1696 0 (unused)
input 3456 0 [mousedev usbmouse keybdev]

if i disconnect and then reconnect mouse it appears in messages as:
Sep 12 14:38:23 zeus kernel: usb.c: USB disconnect on device 00:1d.0-1 address 3
Sep 12 14:38:25 zeus kernel: hub.c: new USB device 00:1d.0-1, assigned address 4
Sep 12 14:38:25 zeus kernel: hiddev0: USB HID v1.10 Mouse [Logitech USB Optical Mouse] on usb1:4.0

From this I can see that in the working kernel the last line shows that input0 is picking up the mouse whereas the non working kernel shows hiddev0 picking up the mouse.

when compiling the new kernel if i select all of the hid options I get this result:
drivers/usb/usbdrv.o(.text+0xeaf5): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0xeb6e): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0xeb80): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0xebc5): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0xebe8): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0xec0a): more undefined references to `input_event' follow
drivers/usb/usbdrv.o(.text+0xeed3): In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o(.text+0xef31): In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o(.text+0xef65): In function `hidinput_disconnect':
: undefined reference to `input_unregister_device'
make: *** [vmlinux] Error 1

If I build the kernel without HID input layer support I do not get this message.
from this I am guessing that HID input layer support is what I need to make the mouse work.

how do I go about fixing this?!!

or is it a problem with the kernel sources (which I kinda doubt)
 
Old 09-12-2003, 05:04 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
there is a unmarked dependancy somewhere in the hid/input code its been there for the last few kernels, i meant to report it but forgot, anyway if you enable all the hid stuff other than hiddev and you enable mouse keyboard and joystick support it should be ok. if its not we can compare .config files
 
Old 09-12-2003, 06:34 AM   #3
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
Ahhhhhh!
that could explain it! will give it a whirl...

cheers for the pointer!
 
Old 09-12-2003, 07:18 AM   #4
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
yup! thats fixed it!

thx mulchly!
 
Old 09-30-2003, 10:40 AM   #5
leohuang
LQ Newbie
 
Registered: Sep 2003
Posts: 11

Rep: Reputation: 0
Thank you very much, kev82!
 
Old 10-06-2003, 05:22 PM   #6
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Rep: Reputation: 30
I enabled all of the HID options and still got the same error. Where is this config file that you speak of?
 
Old 10-06-2003, 08:59 PM   #7
leohuang
LQ Newbie
 
Registered: Sep 2003
Posts: 11

Rep: Reputation: 0
In the kernel configuration, USB support, and the disable the /dev/hiddev. That's what I did.
 
Old 10-07-2003, 08:08 AM   #8
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
this is from memory as im not infront of a linux machine at the moment but i think you need mouse, keybd, joystk from input core support and the usb hid options but you dont need hiddev. i'll have a look later and send you my .config file if that doesnt work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linking problems - 'undefined reference' errors back2morrie Programming 1 06-14-2005 08:02 AM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
make bzImage problems otciii Linux - General 4 06-08-2004 10:49 AM
Undefined Reference errors during make. sheenak Programming 5 05-14-2004 06:14 AM
make error/ undefined reference apljdi Linux - Newbie 1 10-29-2002 01:10 PM


All times are GMT -5. The time now is 03:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration