LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-13-2004, 12:29 AM   #1
Ninja_212
Member
 
Registered: Sep 2003
Location: Indonesia
Distribution: Mandrake,RedHat,Slackware
Posts: 58

Rep: Reputation: 15
problem compiling kernel 2.6 on RedHat


Guys... i've been successfully compiling 2.6 kernel on redhat, but when i boot the kernel, from the boot message it told me that usb-uhci modules cannot be loaded. and i can't display the loaded modules using lsmod.

it gives me message QM_MODULES:Not defined..... what was that mean. I use the old config file from 2.4.20-8.
And i've heard a lot of people having problem using their usb peripherals when using 2.6 kernel...can someone please tell me how to survive from those problems...it start to give me a headache.... Thank's
 
Old 03-13-2004, 12:44 AM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
This problems have two roots:

The 2.6.x kernels depend on an updated init-modules package (or modutils rpm package) of version 2.4.25 (modutils-2.4.25) or grater (also I've heard that version 3 has some problems with 2.6.x). I'm pretty sure this is the problem with the modules query. On the other hand, the USB problem is has two sources as well:
  • For one the modules are named differently, from usb-ohci, uhci to ohci-hcd, uhci-hcd (the ehci dirver has the same name for 2.4x and 2.6x kernels).
  • RH tries to load the modules from a system boot script called /rc/rc.sysinit, there the complaint about the mice and keyboards USB-HID not being intialized and hence an error message while booting.
Of these two errors the second is pretty much harmless (I have a working USB mouse, gampad and digital camera with my 2.6.4 kernel). However, with the need of updated modutils, comes the need of another file to control the modules (much similar to that of modules.conf) in which you should manually enter the aliases for the new USB modules names. Edit The file name is modprobe.conf, sorry for not posting it the first time

I hope this info helps.

Last edited by Thetargos; 03-13-2004 at 01:08 AM.
 
Old 03-13-2004, 01:00 AM   #3
Ninja_212
Member
 
Registered: Sep 2003
Location: Indonesia
Distribution: Mandrake,RedHat,Slackware
Posts: 58

Original Poster
Rep: Reputation: 15
Thank's for your reply. it sure shows me some light. I'm concedering trying Fedora 1. I'm planning on trying every big distro that i know. Do you know what kernel does Fedora use.
 
Old 03-13-2004, 01:03 AM   #4
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Fedora Core 1 (which I currently use) comes with a 2.4.22 kernel tuned for NPTL (Native POSIX Thread Library). You'll find it much like Red Hat 9 (with a little more features, I still have to find one that lacks from RH9). Very recommendable distribution.
 
Old 03-16-2004, 12:27 AM   #5
Ninja_212
Member
 
Registered: Sep 2003
Location: Indonesia
Distribution: Mandrake,RedHat,Slackware
Posts: 58

Original Poster
Rep: Reputation: 15
the kernel can load my usb now...but now i've got a new problem the kernel didn't load my ethernet card. i compile it as a module via-rhine. But the kernel tells me that eth0 not present.

i've editted /etc/modules.conf, the module are there. can you tell me what's wrong
 
Old 03-16-2004, 01:55 PM   #6
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Quote:
Originally posted by Ninja_212
the kernel can load my usb now...but now i've got a new problem the kernel didn't load my ethernet card. i compile it as a module via-rhine. But the kernel tells me that eth0 not present.

i've editted /etc/modules.conf, the module are there. can you tell me what's wrong
Wrong modules control file. You need to edit modprobe.conf which is what 2.6 uses instead of moudles.conf
 
Old 03-16-2004, 08:53 PM   #7
Ninja_212
Member
 
Registered: Sep 2003
Location: Indonesia
Distribution: Mandrake,RedHat,Slackware
Posts: 58

Original Poster
Rep: Reputation: 15
hmmm.... ok my eth0 is ok now.. but what about the keybdev and mousedev ?? on boot the rc.sysinit always load those modules...but i don't think kernel 2.6 support those modules anymore, and the iptables and firewall won't load at boot time.

I'm sorry i suppose to post this earlier...

I've found rpm packages for the 2.6.4 kernel and the source rpm too.. do you think i should try it....

Thanks
 
Old 03-18-2004, 12:53 PM   #8
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
If you feel like trying those, by all means do so. About the rc.sysinit script, I've made a rather rude workaround for it:

Code:
/etc/rc.d/rc.sysinit @ line 207:
needusbstorage= <-- line 203
if [ $usb = "1" ]; then
    needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /proc/bus/usb/devices 2>/dev/null`
    LC_ALL=C fgrep 'hid' /proc/bus/usb/drivers || action $"Initializing USB HID interface: " modprobe hid 2> /dev/null
	if [ `uname -r | awk 'BEGIN {FS = "."};{print $2}'` -lt 6 ]; then
		action $"Initializing USB keyboard: " modprobe keybdev 2> /dev/null
		action $"Initializing USB mouse: " modprobe mousedev 2> /dev/null 
	fi
fi
This will try to find out the current kernel version and load or not load the mousedev and keybdev modules respectively.

Last edited by Thetargos; 03-18-2004 at 12:54 PM.
 
Old 03-18-2004, 09:58 PM   #9
Ninja_212
Member
 
Registered: Sep 2003
Location: Indonesia
Distribution: Mandrake,RedHat,Slackware
Posts: 58

Original Poster
Rep: Reputation: 15
Thank's for all your help thetargos, i think i'll try fedora.... hey...what is the latest fedora release?

Thank's
 
Old 03-19-2004, 03:23 AM   #10
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Quote:
Originally posted by Ninja_212
Thank's for all your help thetargos, i think i'll try fedora.... hey...what is the latest fedora release?

Thank's
The latest test release is the 1.90 (test 1 of FC2). The latest stable release is FC 1 for the AMD 64 platform. I use FC1 heavily modified (starting with my 2.6.4 kernel :P ) and other applications I've gotten trhough apt-get (with synaptic) and yum (they rock!).
 
Old 04-03-2004, 11:48 AM   #11
kamit
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
eth0

Hello,
I have redhat 9.0 and I am not able to configure my network for 2.6.3. in the /etc/modprobe.conf file shows it as alias eth0 ee1000 and its the same in /etc.modules.conf.

I have created a very base minimal kernel and lsmod doesnt show any modules. Am I missing sm thing. I also get errors related to usbkbd and usbmouse. I made the changes to rc.sysinit for that. I guess I need to compile them as modules and same for eth0? Can somebody gimme pointers how to do this.

thanks in advance
 
Old 04-03-2004, 11:58 AM   #12
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Re: eth0

Quote:
Originally posted by kamit
Hello,
I have redhat 9.0 and I am not able to configure my network for 2.6.3. in the /etc/modprobe.conf file shows it as alias eth0 ee1000 and its the same in /etc.modules.conf.

I have created a very base minimal kernel and lsmod doesnt show any modules. Am I missing sm thing. I also get errors related to usbkbd and usbmouse. I made the changes to rc.sysinit for that. I guess I need to compile them as modules and same for eth0? Can somebody gimme pointers how to do this.

thanks in advance
It shouldn't matter much whether you have as modules or not keybdev or mousedev with my rc.sysinit hack... Anyway those error are harmless... I'd recommend though compiling all your USB support as modules as well as your ethernet drivers.
 
Old 04-30-2004, 09:56 AM   #13
saposmak
Member
 
Registered: Sep 2003
Distribution: Redhat
Posts: 72

Rep: Reputation: 15
I've been having these same problems since 2 days ago... been trying to fix it forever. Tried everything that's been said in this thread, and in many others... it never recognizes my usb mouse or my usb printer....... besides the fact that it won't load my nvidia drivers (yay)...
Just a question... why would they change the names of the modules... ? to make it more difficult to upgrade?
 
Old 04-30-2004, 12:32 PM   #14
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
I don't know why, but for what you say, it may be due to either of two things:
  1. You do not have the latest module-init-tools (modutils) package installed; or
  2. You do not have an /etc/modprobe.conf file from which module information is read on boot (like it was with modules.conf).

To create one just execute (as root) the generate-modprobe.conf command from within /etc like this:
Code:
$ su
pasword:
# cd /etc
# /sbin/generate-modprobe.conf modules.conf modprobe.conf
Additionally you can open your modules.conf and just change the addequate entries (namely the USB hub driver names) and try again.
 
Old 05-02-2004, 11:27 AM   #15
saposmak
Member
 
Registered: Sep 2003
Distribution: Redhat
Posts: 72

Rep: Reputation: 15
Thanks, I was able to fix the USB support (finally)... Now the only prob I have is my NVIDIA drivers....... apparently nvidia has released new drivers that work under kernel 2.6... heh if only I were able to install them

I need to install the source for kernel 2.6.5, but I can't find one for redhat... the only source i can find for redhat is kernel-source-2.6.5-1.347...

I'm not sure if that source will work for my kernel, since from what I know, the versions have to be equal
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems compiling 2.6.x kernel on RedHat 8.0 africantiger Linux - Newbie 0 07-13-2004 09:42 PM
RedHat kernel compiling tarballedtux Linux - General 3 05-23-2002 06:56 AM
Help on Compiling the Linux Kernel FOR Redhat 7.2! Alinuxnoob Linux - Software 4 02-21-2002 11:51 PM
Redhat 7.2: Kernel Compiling wildbillm Linux - General 3 11-10-2001 01:53 PM
Compiling new kernel with Redhat 7.1 Sylhouette Linux - General 5 10-18-2001 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:05 PM.

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