LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-09-2002, 11:28 PM   #1
cameronknives
LQ Newbie
 
Registered: Feb 2002
Distribution: Mandrake 8.1
Posts: 17

Rep: Reputation: 0
Simple compiling question???


Hello -
I've been having some trouble recompiling the new Mandrake cooker kernel 2.4.17 I downloaded both the kernel rpm and the source rpm's and type in rpm -i to install both packages.when done I reboot and my new kernel is installed and lilo is automatically setup. But how do I recompile this new kernel so that I can select my special hardware during xconfig? When I drop into /usr/src there is no linux directory for the new kernel only the old stock 2.4.8 kernel. What am I doing wrong and how do I REcompile this new kernel?
Thanks -
Scott

Pertinet info if it help solve my problem -
Mandrake 8.1
updated all libraries and compiler to kernel recommended versions
newest version of Lilo installed
iptables updated
checked rpm files against md5sum - complete and current
AMD Athlon XP 1600+
Via KT266A chipset motherboard
384mb PC2100 DDR memory
64mb Geforce GTS 2 DDR
Soundblaster Audigy Gamer+
Adaptec Ultra 160 SCSI card
Seagate Cheetah 10,000rpm 9.1 gig drive for O.S.'s
Maxtor 7200rpm IDE drive for programs and storage
 
Old 02-10-2002, 12:05 AM   #2
cameronknives
LQ Newbie
 
Registered: Feb 2002
Distribution: Mandrake 8.1
Posts: 17

Original Poster
Rep: Reputation: 0
rebuild rpms

Someone just told me that the kernel*.src.rpm file is an rpm package with source files in it that have not been compiled into a binary rpm package. Could this possibly be right. Is it the kernel.src.rpm file that creates theLinux and linux-2.4.17 directory in /usr/src during a kernel install? I'm still lost!!!
Thanks -
Scott
 
Old 02-10-2002, 06:58 AM   #3
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Hmm...

It seems like you only downloaded the running compiled version of 2.4.17 from Mandrake and all of its associated modules. Mandrake likes this rather bloated, so it was probably somewhere in the ballpark of 30+ megs.

The Kernel source for 2.4.17, unpacked, will be in excess of 130+megs.

If you want to compile a kernel, never, ever use the deranged excuse of a source package the distros give you. Get the tarball from www.kernel.org (or preferably, a mirror site) and read through the kernel-how-to. The process may seem daunting and letting Mandrake do it auto-magically may seem much less of a hastle, but it really isn't. Just remember that as long as you leave in the lilo entry for your old kernel and the copy of it still there... you've always got something to fall back on.

Cheers,

Finegan
 
Old 02-10-2002, 10:25 AM   #4
cameronknives
LQ Newbie
 
Registered: Feb 2002
Distribution: Mandrake 8.1
Posts: 17

Original Poster
Rep: Reputation: 0
that is right

Yes, it was 28 megs in size. I have now run into the problem of mandrake insisting that the old kernel-source and header files be uninstalled before installing the new kernel and sources. When I go to software/package manager to uninstall the kernel-source.rpm and the kernel-headers.rpm from the stock kernel, it says that it must also uninstall gcc and glibc-devel. Aren't those two needed to recompile and install the new kernel?
The reason why I have chosen the new Mandrake cooker kernel is the fact they incuded all the Alan Cox patches and other stuff in it. Installing the plain 2.4.17.tar.gz kernel is no problem and works fine but I haven't downloaded all the patches I want because there are so many. They must be applied sucessively I was told. That's a lot of patches!!!
If you know what two do about the old kernel-sources and headers I would appreciate it.
Thanks -
Scott
 
Old 02-10-2002, 10:45 AM   #5
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
There's no need to remove the source for the old kernel. /usr/src/linux should be a symlink pointing to the latest kernel version's directory (e.g. /usr/src/linux-2.4.17). But it's fine to have older versions nestling in there as well, so long as you make sure they're in their own directories (e.g. /usr/src/linux-2.4.8).

Do you really need those kernel patches, btw?

Not sure how much I'm answering your question, but I hope it's useful.
 
Old 02-10-2002, 10:58 AM   #6
cameronknives
LQ Newbie
 
Registered: Feb 2002
Distribution: Mandrake 8.1
Posts: 17

Original Poster
Rep: Reputation: 0
thanks

thanks for the reply. According to the Mandrake docs on kernel compiling it says, Quote 'keep in mind that if you have kernel-source/headers or whatever installed, you have to upgrade these packages along with the kernel-rpm or uninstall them before upgrading the kernel-rpm' and again on page two it says 'Notice that you can't have two different versions of the packages 'kernel-source' and 'kernel-headers' installed. How do I upgrade or uninstall these older sources and header files? Or should I just ignore that and install the kernel-source file and kernel.rpm file?
There are a few patches I need that are already in the Mandrake cooker kernel and it has fixes for some bugs I'm having and unsupported hardware.. Thats why I wanted to install that kernel over the standard kernel-2.4.17.tar.gz kernel. I also run Mandrake on my system so it just seemed natural to upgrade to their newest kernel versus a generic one or the non-optimized Linus-kernel series. I know there is hardly any performance difference but that is the one I chose.
Thanks -
Scott
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
simple question about compiling Xiangbuilder Programming 3 07-24-2004 10:58 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
Kernel Compiling Simple Question Obscure Slackware 5 08-19-2003 01:19 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:39 AM.

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