LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 08-01-2003, 09:08 AM   #1
diabelek
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
problem getting rh source kernels


Is it possible to get the 2.4.20-19.9 source code for Redhat 9? This is assuming that the 2.4.20-19.9 source is different from the 2.4.20 source. My understanding of it is that the -19.9 is the "redhat revision" of the 2.4.20 source. If thats not the case, please let me know otherwise....

I'm needing the source for it so I can apply a patch and recompile it. My issue is that if I download the 2.4.20-19.9 and the 2.4.20-18.9 source rpms, they will have the same kernel in them. Here's how I determine that

1. download kernel-2.4.20-19.9.src.rpm
ftp://kickstart.linux.ncsu.edu/pub/redhat/linux/updates/9/en/os/SRPMS/kernel-2.4.20-19.9.src.rpm
2. download kernel-2.4.20-18.9.src.rpm
ftp://kickstart.linux.ncsu.edu/pub/redhat/linux/updates/9/en/os/SRPMS/kernel-2.4.20-18.9.src.rpm
3. rpm -ihv kernel-2.4.20-19.9.src.rpm
4. cp /usr/src/redhat/SOURCES/linux.2.4.20.tar.bz2 ~/kernel1
5. rm -rf /usr/src/redhat/SOURCES/*
6. rpm -ihv kernel-2.4.20-18.9.src.rpm
7. cp /usr/src/redhat/SOURCES/linux.2.4.20.tar.bz2 ~/kernel2
8. cmp kernel1 kernel2

Step 8 will say the files are the same. So if they are the same then logically I would assume there is a patch to change the linux.2.4.20.tar.bz2 into the 2.4.20-19.9 kernel. Since there is no obvious file in /usr/src/redhat/SOURCES, I search for it by running the commands

fgrep "19.9" /usr/src/redhat/SOURCES/*
fgrep "18.9" /usr/src/redhat/SOURCES/*

that yields nothing and so I can only assume that the kernel-2.4.20-19.9.src.rpm is actually just the standard 2.4.20 kernel and nothing else.

Please correct anything I might be doing wrong. I would really like to know if I can get the redhat modified kernel (2.4.20-19.9).
 
Old 08-05-2003, 07:08 PM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
kernel-2.4.20-19.9.src.rpm is the redhat modified kernel; but what you are actually looking for (I think) is kernel-2.4.20-19.9.i386.rpm. This will, when installed, be a kernel in the right place (/usr/src/linux-2.4) so that you can patch or compile to your heart's content.

Cheers--
Charles

Last edited by cnjohnson; 08-05-2003 at 07:11 PM.
 
Old 08-06-2003, 10:49 AM   #3
diabelek
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I tried the kernel-2.4.20-19.9.i386.rpm but a kernel wasn't placed in usr/src. I also went sofar as to check the contents of the rpm using "rpm -qlp" and it looks like the precompiled kernel/drivers only.

That leaves me with the question.... Where do i get the source code for the kernel 2.4.20-19.9 since the file kernel-2.4.20-19.9.src.rpm only contains the 2.4.20 kernel (unless redhat didn't change the extraversion)? Do i get the kernel-2.4.20-19.9.src.rpm and then patch it? If so then which patch?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 09:48 PM
where can download the source of insmod for 2.6 kernels? oriate Linux - General 6 08-30-2005 08:58 PM
AMD bug problem fixed in newer kernels??? pkathgr Slackware 1 01-12-2005 06:48 AM
Two Kernels a problem? jeopardyracing Linux - Newbie 9 09-23-2004 09:18 PM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

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

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