LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   problem compiling kernel 2.6 on RedHat (https://www.linuxquestions.org/questions/red-hat-31/problem-compiling-kernel-2-6-on-redhat-156995/)

Ninja_212 03-13-2004 12:29 AM

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

Thetargos 03-13-2004 12:44 AM

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 :o

I hope this info helps.

Ninja_212 03-13-2004 01:00 AM

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.

Thetargos 03-13-2004 01:03 AM

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.

Ninja_212 03-16-2004 12:27 AM

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

Thetargos 03-16-2004 01:55 PM

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 ;)

Ninja_212 03-16-2004 08:53 PM

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

Thetargos 03-18-2004 12:53 PM

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.

Ninja_212 03-18-2004 09:58 PM

Thank's for all your help thetargos, i think i'll try fedora.... hey...what is the latest fedora release?

Thank's

Thetargos 03-19-2004 03:23 AM

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!).

kamit 04-03-2004 11:48 AM

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

Thetargos 04-03-2004 11:58 AM

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.

saposmak 04-30-2004 09:56 AM

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?

Thetargos 04-30-2004 12:32 PM

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.

saposmak 05-02-2004 11:27 AM

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


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