Red Hat General - USB HID on Fedora Core 1 no longer works with custom kernel

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat General > August 2004 > USB HID on Fedora Core 1 no longer works with custom kernel





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author USB HID on Fedora Core 1 no longer works with custom kernel
noone

2004-08-17, 2:59 am


I am running the stock 2.4.22-1.2199.nptl i686 kernel, but the NTFS
modules was not built. So what I did was:

*) cd /usr/src/linux

*) make mrpoper

*) make menuconfig

*) Changed processor type to Pentium IV

*) Then selected NTFS module

*) Then de-selected other modules that I dont need ( e.g.: wireless,
radio, ISDN, etc ... )

*) make bzImage

*) copied arch/i386/boot/bzImage to /boot/vmlinuz-2.4.22-1.2199.nptlcustom
*) make modules

*) make modules_install, which created the directory
/lib/modules/2.4.22-1.2199.nptlcustom

*) copied System.map to /boot/System.map-2.4.22-1.2199.nptlcustom
mkinitrd --with=ext3 /boot/initrd-2.4.22-1.2199.nptlcustom.img
2.4.22-1.2199.nptlcustom

*) Created a new entry in /boot/grub/menu.lst to boot off my new
compiled kernel

.... then rebooted.
However, the Microsoft optical USB wheel mouse no longer works ( not
even on the non-X console ).

Just to make sure I have the necessary modules installed, I compared
/usr/src/linux/.config with /boot/config-2.4.22-1.2199.nptl:

$ grep HID /boot/config-2.4.22-1.2199.nptl
# USB Human Interface Devices (HID)
CONFIG_USB_HID=m
CONFIG_USB_HIDDEV=m
CONFIG_USB_HIDINPUT=m

$ grep HID /usr/src/linux-2.4/.config
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=m
CONFIG_USB_HIDDEV=m




$ grep MOUSE /boot/config-2.4.22-1.2199.nptl
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_ATIXL_BUSMOUSE=m
CONFIG_LOGIBUSMOUSE=m
CONFIG_MS_BUSMOUSE=m
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
CONFIG_MK712_MOUSE=m
# CONFIG_USB_MOUSE is not set
CONFIG_BUSMOUSE=m
CONFIG_82C710_MOUSE=m

$ grep MOUSE /usr/src/linux-2.4/.config
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_BUSMOUSE=m
CONFIG_ATIXL_BUSMOUSE=m
CONFIG_LOGIBUSMOUSE=m
CONFIG_MS_BUSMOUSE=m
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
CONFIG_82C710_MOUSE=m
CONFIG_MK712_MOUSE=m
# CONFIG_USB_MOUSE is not set



I could not find anything different that would affact the USB mouse.
What I did notice different were the following:


1) /sbin/lsmod on the stock 2199.nptl kernel shows:

hid 23908 0 (unused)
usb-ohci 21544 0 (unused)
usbcore 78752 1 [hid usb-ohci]
mousedev 5268 1 (autoclean)
input 5888 0 (autoclean) [keybdev hid mousedev]

/sbin/lsmod on the custom 2199.nptl kernel shows:

hid 23908 0 (unused)
usb-ohci 21544 0 (unused)
usbcore 78752 1 [hid usb-ohci]
mousedev 5268 1 (autoclean)
input 5888 0 (autoclean) [keybdev mousedev]

* This is not the exact output, copied and pasted from the above to
here, the different being the sizes of the modules.

( Note that input is not referred to by the hid module )


2) dmesg on the stock 2199.nptl kernel shows:

hub.c: new USB device 00:02.3-1, assigned address 2
input: USB HID v1.00 Mouse [Microsoft Microsoft Wheel Mouse Optical?] on
usb2:2.0


dmesg on the custom 2199.nptl kernel shows:

hub.c: new USB device 00:02.3-1, assigned address 2
: USB HID v1.00 Mouse [Microsoft Microsoft Wheel Mouse Optical?] on usb2:2.0

( Note that missing "input" before the colon ( )


3) /lib/modules/2.4.22-1.2199.nptl/modules.dep shows:

/lib/modules/2.4.22-1.2199.nptl/kernel/drivers/usb/hid.o:
/lib/modules/2.4.22-1.2199.nptl/kernel/drivers/usb/usbcore.o \
/lib/modules/2.4.22-1.2199.nptl/kernel/drivers/input/input.o


/lib/modules/2.4.22-1.2199.nptlcustom/modules.dep shows:

/lib/modules/2.4.22-1.2199.nptlcustom/kernel/drivers/usb/hid.o:
/lib/modules/2.4.22-1.2199.nptlcustom/kernel/drivers/usb/usbcore.o



So what am I missing ?
The necessary modules are certainly loaded, but somehow, it seems that
the hid.o module compiled from the kernel source does not access / refer
to the input.o module, as if CONFIG_USB_HIDINPUT is not selected at
all!, even though it is.

I even tried a silly thing as manually adding the input.o module as
being one of the modules that hid.o depends on. Of course, that does not
work.


Any help appreciated.




noone

2004-08-17, 2:59 am

noone wrote:
>
> I am running the stock 2.4.22-1.2199.nptl i686 kernel, but the NTFS
> modules was not built. So what I did was:
>
> *) cd /usr/src/linux
>
> *) make mrpoper
>
> *) make menuconfig
>
> *) Changed processor type to Pentium IV
>
> *) Then selected NTFS module
>
> *) Then de-selected other modules that I dont need ( e.g.: wireless,
> radio, ISDN, etc ... )
>


Forgot to add that I did do a make dep; make clean prior to make bzImage
and make modules


> *) make bzImage
>


Lenard

2004-08-17, 5:54 pm

On Tue, 17 Aug 2004 06:03:18 +0000, noone wrote:


Corrected custom kernel process, as per;
http://www.redhat.com/docs/manuals/...odularized.html

> I am running the stock 2.4.22-1.2199.nptl i686 kernel, but the NTFS
> modules was not built. So what I did was:
>
> *) cd /usr/src/linux
>
> *) make mrpoper


Copy the working /boot/config-2.4.22-1.2199 to .config here or use the
command 'make oldconfig' here


> *) make menuconfig
>
> *) Changed processor type to Pentium IV
>
> *) Then selected NTFS module
>
> *) Then de-selected other modules that I dont need ( e.g.: wireless,
> radio, ISDN, etc ... )



make dep

make clean

> *) make bzImage


make modules

> *) make modules_install


make install

You might want to have a look here;
http://linux-ntfs.sourceforge.net/rpm/fedora1.html


--
Hi! I'm a .sig virus! Please copy me to your .sig! so I can spread
This E-mail is safe, no Microsoft products where used in creating me!

Jan Gerrit Kootstra

2004-08-18, 2:48 am


"Lenard" <lenard@127.0.0.1> schreef in bericht
news:pan.2004.08.17.14.23.00.310689@127.0.0.1...
> On Tue, 17 Aug 2004 06:03:18 +0000, noone wrote:
>
>
> Corrected custom kernel process, as per;
>

http://www.redhat.com/docs/manuals/...odularized.html
>
>
> Copy the working /boot/config-2.4.22-1.2199 to .config here or use the
> command 'make oldconfig' here

or should be and
>
>
>
>
> make dep
>
> make clean
>
>
> make modules
>
>
> make install
>
> You might want to have a look here;
> http://linux-ntfs.sourceforge.net/rpm/fedora1.html
>
>
> --
> Hi! I'm a .sig virus! Please copy me to your .sig! so I can spread
> This E-mail is safe, no Microsoft products where used in creating me!
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com