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

Notices


Reply
  Search this Thread
Old 03-02-2006, 04:58 PM   #1
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Rep: Reputation: 15
kernel compilation and yum


Im new to fedora and yum. So bare with me.

I'm using the latest kenel (2.6.15-1.1831_FC4) on my laptop. Seeing as my hardware with regards to network cards and stuff is set in stone my goal was to compile a new kernel, minus all the drivers, and other junk I did not need. So I compiled a new 2.6.15 kernel from the source rpm of my current kernel (2.6.15-1.1831_FC4). I call it 2.6.15-toshiba, and save it as an rpm for future install, or to share with other toshiba M30 laptop users.

Everything worked beautiful. My laptop boots quicker, kernel is smaller, no boot errors. Im a happy camper. Then I go to add in the nvidia, and ntfs driver modules from livna...

kernel-module-ntfs-2.6.15-1.1831_FC4.i68 2.1.25-0.lvn.1.4
kernel-module-nvidia-2.6.15-1.1831_FC4.i 1.0.8178-0.lvn.3.4

However I encouter errors. I do some more reading on the Livna web site and see this
Code:
 If you use an unsupported kernel (why do you do that?) you need to compile the kernel-module yourself.
If I rename my new toshiba kernel to 2.6.15-1.1831_FC4 will this trick yum into installing the modules??

OR

Can I re-compile my 2.6.15-1.1831_FC4 kernel, and minus the options I dont need. It seems like yum wont install anything kernel related unless its installing it against the generic FC4 kernel.

Will any of this trick it, or does the fact the change in kernel configuration make it impossible to install the modules with yum???
 
Old 03-02-2006, 05:12 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Since your building you own kernel build the ntfs modules yourself, it is one of the options that you can change in the configuration. The same holds true for the nvidia driver download the source and build your own.

Yum is a binary designed to assist you with using rpm and repositories, you do not really need it. As long as you know exactly where a certian rpm file is you can download directly with rpm, please see 'man rpm' minus the single quotes for the informational details and options. For example (I choose something that should install [not installed normally] or be updated [if installed] as a single item);

rpm -Uvh http://download.fedora.redhat.com/pu...4.FC4.i386.rpm
 
Old 03-02-2006, 05:50 PM   #3
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
but if i install the nvidia driver manually with the source rpm form one of the repos, will it be able to update via yum, and tell me when I have a new one... or will I have to check from time to time, and always install a newer version manually???
 
Old 03-02-2006, 05:53 PM   #4
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
also will I lose the abiltiy for yum to upgrade my recompiled kernel when a newer version comes out??? So I will have to install manually install a new kernel everytime one comes out (if there is some functionality i need)

Last edited by jturnbul; 03-02-2006 at 05:55 PM.
 
Old 03-02-2006, 06:45 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You build you install. The custom kernels and other binary packages are not upgradable via yum, think about it. Have you ever seen an update for 2.6.XX-toshiba???? I think not, you built it so you have to supply the update.
 
Old 03-02-2006, 06:53 PM   #6
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
You build you install. The custom kernels and other binary packages are not upgradable via yum, think about it. Have you ever seen an update for 2.6.XX-toshiba???? I think not, you built it so you have to supply the update.
Its compiled from the exact same kernel source, just with different options, either added or deleted. If I left the name the same as the FC4 version of the kernel, could yum not update the kernel with whatever is new.

I dont quite know what happens when yum updates your kernel to a newer version. I'm assuming the automated process just recompiles the new kernel from the old kernels .config ??? So what makes what Im doing any different?
 
Old 03-03-2006, 12:57 PM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yum can install a newer kernel then the one you custom built but it will not rebuild the new kernel to fit your custom config file. Yum will install a new binary (pre-compiled) kernel nothing more, nothing less.

If you make changes to the kernel (apply patches for example) then the kernel is not a Fedora/Red Hat kernel , it your own custom kernel. Attempting to install some packages (like the two mentioned) which are specially built for a specific kernel will not work.

If as you state just changing the configuration for your hardware only then you need to edit the kernel Makefile, Fedora/Red Hat normally adds custom (or something like that) to the EXTRAVERSION line. In other words you need to keep the exact same name as an already built and supplied kernel. Changing the name breaks yum ability to install compiled binary packages that rely on the exact kernel that the package (and yum therefore) is expecting.
 
Old 03-04-2006, 01:15 PM   #8
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
thx, I think I'll stick with the generic kernel for now. To many hassles, and the kernel seems to get upgraded once or twice a month, plus FC5 is due out soon.
 
  


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
kernel compilation amsri Linux - Software 17 01-23-2006 06:37 PM
kernel compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 01:08 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:26 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