LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-13-2004, 10:12 PM   #1
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
USB mouse works with bare.i kernel, but not with the one I compiled.


I'm using Slackware 9.1 on an IBM Thinkpad, and the mouse on the laptop works fine, but I can't get my USB mouse to work on the kernel I compiled. It works on the bare.i kernel though. The error I see when it's booting up is modprobe:modprobe:Can't locate module mousedev. Should I have compiled mouse support as a module instead of directly into the kernel?
 
Old 06-14-2004, 02:12 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
No, it can be built in or modules. Uncomment mousedev in /etc/rc.d/rc.modules and see
if that gets it going.
Code:
### USB event drivers:
# Keyboard input:
/sbin/modprobe keybdev
# Mouse input:
/sbin/modprobe mousedev
My USB mouse didn't work with the Slack 9.1 bare.i (2.4.22) kernel, so I just uncommented
those 2 lines and it works fine.
 
Old 06-14-2004, 03:10 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
For my part I enabled USB things as modules but I give you relevant part of my .config to let you see needed features for usb mouse.
Code:
# USB support
CONFIG_USB=y
# Miscellaneous USB options
CONFIG_USB_DEVICEFS=y
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
# USB Human Interface Devices (HID)
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
All other USB features are not set in my system, mouse works well
 
Old 06-14-2004, 09:56 PM   #4
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Original Poster
Rep: Reputation: 30
Well I got it to work, but I ended up finding the config file for the bare.i kernel and then just taking out what I was sure I didn't need out of there using menuconfig, and it worked when I booted up. I tried both of ya'lls suggestions, but I was never able to get anything to work. However, I am now having an error whenever I am booting up.
insmod: /lib/modules/2.4.22/kernel/dirvers/usb/host/uhci.o: unresolved symbol...
This message repeats about 50 or so times wtih something different after unresolved symbol everytime. Anyone have any ideas?
 
Old 06-14-2004, 10:05 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
After you changed the kernel config file, did you finish compiling the kernel? And then did you rerun lilo, or did you just reboot?
 
Old 06-14-2004, 10:17 PM   #6
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Original Poster
Rep: Reputation: 30
Yeah. I ran make dep, make clean, make bzImage, make modules, and then I catted the bzImage to /boot, and then copied the system map, and edited the lilo.conf file and then ran /sbin/lilo.
 
Old 06-14-2004, 10:27 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by blk96gt
Yeah. I ran make dep, make clean, make bzImage, make modules, and then I catted the bzImage to /boot, and then copied the system map, and edited the lilo.conf file and then ran /sbin/lilo.
It that's exact, then you didn't run make modules_install as root. That's what puts them into your kernel.
 
Old 06-14-2004, 10:47 PM   #8
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Original Poster
Rep: Reputation: 30
Dang, I didn't even think of that. The kernel installation instructions on slackware.org dont have that part in there, so I just never bothered doing it. So I guess I need to recompile the kernel again, or can I run that after I've already booted the kernel up.
 
Old 06-14-2004, 11:45 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by blk96gt
Dang, I didn't even think of that. The kernel installation instructions on slackware.org dont have that part in there, so I just never bothered doing it. So I guess I need to recompile the kernel again, or can I run that after I've already booted the kernel up.
I didn't think you were correct, but you are - those instructions don't say to run "make modules_install", but they do tell you how to get modules loaded if you read it carefully.

Well, I'll give you a link to the best kernel compile guide I've read.
http://www.digitalhermit.com/linux/K...ild-HOWTO.html
But let me also say that the Newbie Guide To Compiling A Kernel! by DrOzz here on LQ is very good, also.

AFAIK you can run "make modules_install" as root and then run "lilo" and reboot and you'll get them. However, since you'd rather be safe than sorry, just login as root, then cd to /usr/src/linux and run "make oldconfig". This will read the defaults from your existing .config and rewrite necessary links and files. Since you've not made any changes, it should just rip through to the end. Then, issue the following command
bash-2.05b# make dep; make clean; make bzImage;make modules;make modules_install
and go take a nap or something. It will run the whole process unless you have an error, which you shouldn't. Then you'll need to copy your bzImage and System.map as before. You should be able to scroll back through your bash commands with the up arrow key and find them, so you can just hit enter.

Hope you get it working properly, and don't forget to read one of those good kernel guides. I would suggest backing up any important data as a precaution before recompiling a kernel - always. It's just good practice.
 
Old 06-15-2004, 03:07 PM   #10
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Original Poster
Rep: Reputation: 30
Well I did exactly what you said, and now I don't get the uhci error, but the mouse doesn't work anymore. And now im getting an insmod error with the i810_rn or something like that. When I get some time I'm going to read those kernel guides and give it another shot. Thanks for all the help.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Mouse only works when plugged into USB PCI Card helliax Slackware 6 12-05-2005 01:18 AM
I compiled the 2.6.7 kernel, mouse problem psykon Slackware 2 08-14-2004 06:07 PM
USB thumb drive works great, but I still can't get my USB mouse to work. blk96gt Slackware 8 06-22-2004 01:52 AM
USB mouse, works in kernel 2.4.18, not in 2.4.21 or 2.4.22 Smerk Linux - Hardware 3 11-18-2003 04:11 PM
USB mouse that works with Mandrake 9.1? ncabell Linux - Hardware 5 11-07-2003 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration