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 |
Re: fedora kernel source
Quote:
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:
and that the last command is executed in this directory. ('ls .config' will give an error if it doesn't exist.) |
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 |
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. |
In the past, I have found this to be a good but very basic guide.
|
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.
|
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 |
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.
|
i will try it
|
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 |
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 |
Have you tried installing the "kernel-devel" package and then trying the nvidia installation afterwards?
|
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
|
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 |
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. |