Bug 75706

Summary: usb mouse not working after kernel compile
Product: [Retired] Red Hat Linux Reporter: Ronny Bremer <rbremer>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: cochranb
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-17 23:03:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ronny Bremer 2002-10-11 08:23:22 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Description of problem:
Logitech USB mouse detected and usable with the shipped kernel by RedHat 2.4.18-14
I tried to compile my own kernel (with the config file for i686 machines) and I
changed only one option (SCSI LUN on), recompiled and installed.

Machine boots up, USB detects the mouse and loads the hid driver, X starts fine,
with mouse pointer shown, but I can't move the mouse. Same in gpm.

Switched back to old kernel, all fine.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. attach Logitech USB mouse
2. start with vanilla 2.4.18-14 kernel
3. mouse works
4. install kernel-source package, copy i686 config file to
/usr/src/linux-2.4/.config
5. make mrproper dep bzImage install modules modules_install
6. reboot with custom kernel
	

Actual Results:  mouse works with vanilla kernel
mouse does not work with compiled kernel

Expected Results:  mouse should work with both kernels ;)

Additional info:

Comment 1 Arjan van de Ven 2002-10-11 08:30:25 UTC
careful: make mrproper wipes your .config!


Comment 2 Ronny Bremer 2002-10-11 08:38:53 UTC
DOH!

I will try again ......

Thanks, Ron

Comment 3 Arjan van de Ven 2002-10-11 09:47:34 UTC
o btw the scsi lun scanning thing is a module option, no need to recompile your
kernel for that


Comment 4 Ronny Bremer 2002-10-11 09:52:04 UTC
kernel still compiles, I will try as soon as its finished

re: module option, I assume you mean "max_lun=255" to mod_sg. I thought this is
only for advanced server, stupid me. I will try that! Can I specify it on the
linux boot line?

Thanks!
Ron

Comment 5 Arjan van de Ven 2002-10-11 10:00:54 UTC
scsi is a module so the option (I don't think it's called max_lun) needs to be a
module option

Comment 6 Ronny Bremer 2002-10-16 16:13:39 UTC
ok, thanks for the tip with the modules options, max_scsi_luns did the trick

nevertheless, I did the following with the kernel:
cd /usr/src/linux-2.4
make mrproper
cp configs/*i686.config .config
make dep bzImage install modules modules_install

no errors, created custom kernel

reboot

mouse gets detected but doesnt work :/

Ronny

Comment 7 Bob Cochran 2002-11-18 00:13:37 UTC
I have this same problem also. My USB Microsoft Intellimouse doesn't work,
exactly as described above, if I recompile the kernel.I just did this with the
recently installed 2.4.18-18.8.0 kernel, changing only the processor option
(from Pentium II to Pentium III.) The mouse doesn't work after. This has been
true of every kernel bundled with Red Hat 8.0 but not of 7.3.

Bob Cochran
Greenbelt, Maryland, USA

Comment 8 Arjan van de Ven 2002-11-18 08:45:21 UTC
which exact .config did you use ?
I mean, the configs/ directory contains the exact configs we use for the rpms so
I can't explain why an exact recompile wouldn't work, other than that 
rbremer forgot "make oldconfig" (or menuconfig or xconfig)

Comment 9 Ronny Bremer 2002-11-18 09:04:34 UTC
I was using the kernel-2.4.18-i686.config, and yes, looks like I did forget
"make oldconfig". I thought this is only neccessary, if you upgrade from one
kernel release to another and you want to keep your settings and fill all new
settings with defaults. So, if your config file is complete, then it should not
cause any difference, should it?

Ronny

Comment 10 Arjan van de Ven 2002-11-18 09:07:11 UTC
yes it would ;(
make mrproper wipes out all the settings RH ever did so what you compiled was
effectively a kernel with everything set to it's default values, which seems to
exclude mouse support :(


Comment 11 Ronny Bremer 2002-11-18 09:28:18 UTC
I agree, but if you look at my comment from Oct 16, I did copy the config file
after performing make mrproper.

Ronny

Comment 12 Arjan van de Ven 2002-11-18 09:36:46 UTC
but just copying the config file is not enough :(
make oldconfig (or the other config targets) transform the .config file to
something compiler/makefile readable 


Comment 13 Ronny Bremer 2002-11-18 10:13:44 UTC
ok :) I will make another attempt like this:

make mrproper
cp configs/kernel-2.4.18-i686.config .config
make oldconfig dep bzImage install modules modules_install

results will follow in a bit :)

Thanks so far!

Ronny

Comment 14 Reid 2002-12-17 22:21:35 UTC
Has anyone got there kernel recompiled successfully so that the usb mouse will
work.  I want compile a kernel with ntfs support, and I can get the kernel to
recompile but the usb mouse still doesn't work :(  Any pointers would be greatly
appreciated.
Thanks

Comment 15 Ben LaHaise 2002-12-17 23:03:51 UTC
This wasn't a bug, closing.

Comment 16 Reid 2002-12-18 00:10:57 UTC
I know this wasn't a bug, however, if I wanted to compile one thing in earlier
redhat releases I did it without any problems.  Why doesn't it work now?