LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   fedora kernel source (https://www.linuxquestions.org/questions/fedora-35/fedora-kernel-source-326950/)

khh80 05-25-2005 08:40 AM

fedora kernel source
 
i downloaded kernel-2.6.9-1.667.src.rpm and followed the instructions :
1- Install kernel-2.6.9-1.667.src.rpm
2- Change directory to /usr/src/redhat/SPECS/, and issue the following command:

rpmbuild -bp --target=i686 kernel.spec
3- cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs
4- cp kernel-2.6.9-1.667-i686-smp.config ./.config
5- #run the following command:

make oldconfig

the output of the last command is :
make: *** No rule to make target `oldconfig'. Stop.

what the wronge in the last command
and how can i knew if i installed the kernel-source correctly

uberNUT69 05-25-2005 09:55 AM

Re: fedora kernel source
 
Quote:

Originally posted by khh80
4- cp kernel-2.6.9-1.667-i686-smp.config ./.config

Are you sure?
All this does is copy the config to a .config in the same directory.
Perhaps you mean:

cp kernel-2.6.9-1.667-i686-smp.config ../.config

Quote:


5- #run the following command:
make oldconfig

Make sure your .config is in the root of your source directory,
and that the last command is executed in this directory.

('ls .config' will give an error if it doesn't exist.)

khh80 05-25-2005 11:54 AM

ok .. i excuted the following commands
3- cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs
4- cp kernel-2.6.9-1.667-i686-smp.config ../.config
5- cd ..
6- make oldconfig

it excuted correctly without the wronge message
but how can i sure that the kernel-source was install correctly

uberNUT69 05-25-2005 09:10 PM

If a make config works, then your source is installed (ie. you've just config'd it!)

However, all that 'make *config' does is configure the kernel source in PREPARATION for compilation.

ie. The new kernel itself has not been compiled or installed yet.

snarkout 05-25-2005 09:36 PM

In the past, I have found this to be a good but very basic guide.

nhusted 05-27-2005 12:05 AM

Also try http://crab-lab.zool.ohiou.edu/kevin...n-tutorial-en/ ... a Kernel Compile tutorial by Kevin Hobbs. Very handy. Remember to copy the fedora config over first or you can't compile the kernel right. The first few lines in the config file tell rpmbuild the proper architecture of the kernel build.

khh80 05-28-2005 07:23 AM

thanks all,
the problem with kernel-source happened when i try to install the driver for my nvidia card ,, i think that i installed the source correctly but untill now there are some error in this driver and these are the messages:
1- no matching precompiling kernel interface
2- con't find nvidia.ko module

what are that .. what is the kernel intarface and how can i download it

nhusted 05-28-2005 12:07 PM

Are you using the installer from the nvidia site? If so, I suggest going to www.fedorafaq.com, download their yum.conf, and then follow their instructions to use yum to update your nvidia drivers. It works a LOT better then Nvidia's driver install.

khh80 05-29-2005 06:25 AM

i will try it

reddazz 05-29-2005 10:33 AM

To install the nvidia drivers from the nvidia website, you need to install a package called kernel-devel. As root do,
Code:

#yum install kernel-devel
You don't need to the kernel source rpm.

khh80 05-30-2005 09:50 AM

i think that all my problem is in the "nvidia.ko " module because i try to run this command : /sbin/modprobe nvidia
but a message appeared that can't find nvidia module
how can i install this module

reddazz 05-30-2005 12:35 PM

Have you tried installing the "kernel-devel" package and then trying the nvidia installation afterwards?

khh80 05-30-2005 01:01 PM

i tried to install kernel-devel not using yum because i have some error in it that when i run "yum install package" i have a message that need GPG key or something like this

reddazz 05-30-2005 01:13 PM

To solve the yum problem with gpg key you need to do something like
Code:

rpm --import /usr/share/doc/rpm-4.3.2/RPM-GPG-KEY
Make sure you enter the right rpm version.

khh80 05-31-2005 06:54 AM

when i run" yum install kernel-devel " i have this message:
No Match for argument kernel-module-nvidia-2.6.9
Nothing to do


All times are GMT -5. The time now is 10:23 AM.