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

Thetargos 05-02-2004 04:34 PM

Quote:

Originally posted by saposmak
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

How did you install the kernel? If it was from source (i.e if you compiled it yourself) you should be able to install the nVidia driver without prblems... just in case check the build symlink in /lib/modules/2.6.5/:
Code:

ls -l /lib/modules/2.6.5/build
It should point to a directory like /usr/src/linux-2.6.5 or wherer you built the kernel from.

saposmak 05-03-2004 09:48 AM

I compiled the kernel myself from source. I checked the symbolic link in build, and it does indeed redirect to the directory I built the kernel from. Apparently there should be no problem installing the nvidia drivers. I attempted to install an older driver, and it gives me this error:

Kernel header file /lib/modules/2.6.5/build/include/linux/modversions.h
does not exist. The most likely reason for this is that the kernel header files in /lib/modules/2.6.5/build/include have not been configured.

Now, how do those header files get configured? I did a locate modversions.h and it exists in /usr/include/linux

should i copy this file into my .../linux-2.6.5/include/linux folder?

saposmak 05-03-2004 12:05 PM

I tried copying the modversions.h located in /usr/include/linux to my .../linux-2.6.5/include/linux folder and the installation seems to go fine, but right at the end, it halts and tells me the nvidia module could not be created, and it gives me no reason.

I'd have given up a long time if I wasn't so stubborn.

saposmak 05-03-2004 01:21 PM

Anyway, I was able to get X11 to work by downloading the patch to version 4496 (from www.minion.de) of the driver, applying the patch, installing the patched 4496 driver, and then installing the new version 5336 driver...

After I had installed the patched 4496 driver, X still would not start... I checked and double checked the XF86Config file to make sure that the apropriate driver was being called, and no progress. Then I tried installing the 5336 driver and now it works perfectly, with one tiny big problem: none of my games run (i have unreal tournament and quake III).... not even tux racer runs. Anyway, I'll figure it out later... thanks Thetargos for your help.

Note: I did have to copy the modversions.h to my kernel source folder in order for the driver to be able to install.

Thetargos 05-03-2004 06:36 PM

Question, did you issue a make clean or make mrproper when done building your kernel? If so, to restore the modversions.h (which is actually generated) is to start either of the confiugration tools of the kernel (menuconfig, xconfig or gconfig, etc). That file is written at compile time, usually make clean will not erase it, but make mrproper will.

saposmak 05-04-2004 07:25 PM

i did a make clean after compiling the kernel apparently I should've also done a make mrproper... I'll do it next time, thanks a lot........ but anyway I finally got it to work... the games wouldn't run because

1) XFree86 wasn't loading glx (although ¨load glx¨ was in the XF86Config file)... to fix this I uninstalled the latest NVIDIA driver 5336 and installed the 4496 driver (I installed it using make install, because the nvidia-installer app wouldn't work.... ) and then it worked... glx got loaded.

2) Because OpenGL couldn't run because of the new tls feature of the graphics drivers....... anyway, I just renamed the symbolic links in the /usr/lib/tls folder and voila, unreal tournament is on!

Thetargos 05-05-2004 01:51 PM

Good to hear that you got it working!

saposmak 05-06-2004 12:03 AM

By the way, isn't kernel 2.6.5 supposed to be able to write to ntfs? i built that feature into my kernel, and whenever I try to write to my ntfs partition, it says ¨Permission denied¨ or something like that...... I've tried mounting it in rw mode manually, but nothing... I even changed permisions of the device so that it can be read and written to... Still no progress... heh if it's not one problem, it's another, or like they say here,
si no es Juan, es Juana, y si no, es su hermana

Thetargos 05-06-2004 01:41 AM

Quote:

Originally posted by saposmak

si no es Juan, es Juana, y si no, es su hermana

:lol:
We say that here as Si no es chana es juana, y si no, su hermana :lol:

Anyway, read carefully what the NTFS kernel drivers says about NTFS writting...

kenji1903 05-06-2004 04:03 AM

Hi guys,

I've just upgraded my existing RH9 kernel (2.4.20-8) to 2.6.3...

here are the errors seen during boot time (i got it from boot.log, is this the correct file to refer to?):
** mount: /proc/bus/usb already mounted or /proc/bus/usb busy
** mount: mount: according to mtab, usbdevfs is already mounted on /proc/bus/usb
** netfs: Mounting other filesystems: failed

I edited ftab and added /proc/bus/usb..... I think there's something similar in mtab..... which file should I modify?

My IPTables also Failed..... saw something like "IPTables need upgrading"

kenji1903 05-06-2004 04:15 AM

OK, I've deleted the line I added in "fstab" and added the if statement into the "rc.sysinit file", its working now! ;D

but I still have problems with "usb-uhci" or something like that.... also IPTables..... any suggestions one what I can do?

Thetargos 05-06-2004 05:06 AM

Quote:

Originally posted by kenji1903
OK, I've deleted the line I added in "fstab" and added the if statement into the "rc.sysinit file", its working now! ;D

but I still have problems with "usb-uhci" or something like that.... also IPTables..... any suggestions one what I can do?

if you compiled the kernel, you may configure every netfilter as modules, that way you'll ensure that iptables will be loaded correctly, is a rather rude but effective work around. What's the problem with the usb-uhci? (rembember that in 2.6 that module is called uhci-hcd, make sure you have that name in /etc/modprobe.conf as one of the usb-controller aliases ;) )

kenji1903 05-06-2004 06:41 AM

Cheers for the prompt reply!

Looks like I have to recompile the kernel again..... I'll do that now ;)

about the usb-uhci, i ahve these 2 lines in my modprobe.conf:
* alias usb-controller ehci-hcd
* alias usb-controller1 usb-uhci

I'm just wondering..... I shouldn't have 2 controller at the same time, should I?

kenji1903 05-06-2004 07:21 AM

hmm..... this is the second time I've experienced this.....
I type "make menuconfig" and select an option like "loadable module support", but when I try to exit, the terminal hangs..... did I mess up something again?

saposmak 05-06-2004 10:46 AM

you should change the alias usb-controlleer1 usb-uhci to uhci-hcd

I had a very similar problem that was solved that way.


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