LinuxQuestions.org
Help answer threads with 0 replies.
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 05-30-2006, 04:17 AM   #1
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Rep: Reputation: 15
kernel code


hello friends..
I am using RedHat Linux (kernel 2.6)(Evaluation Version)
Can anyone tell me, where can i have an access to its kernel source code.. Is it installed along or i need to install it manually again from somewhere else??
 
Old 05-30-2006, 05:34 AM   #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
The source to the kernel is not installed by default, please review the RELEASE-NOTES found on the installation media (first CD or the DVD) for how to get the kernel source installed and prepared for use.

The basic steps are to download/install via up2date then prep the kernel for development/patching/compiling. Please make sure you have install the kernel development packages as instructed in the on-line manuals. The Release Notes can also be found here;

http://www.redhat.com/docs/manuals/enterprise/
 
Old 05-30-2006, 10:56 PM   #3
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
The procedure specified here to install the kernel source requires our linux system to be connected to the internet so that it cam download the code from redhat.com.
Isnt the source code of kernel available on any of the installation cd's of linux ?? I am using - RedHat (Kernel 2.6) (version 4) (Enterprise Edition)
 
Old 05-30-2006, 11:03 PM   #4
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
www.kernels.org is the forte for linux kernels.
 
Old 05-31-2006, 01:56 AM   #5
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
i cudnt find anything relevant on this site..
 
Old 05-31-2006, 02:05 AM   #6
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
my mistake. its www.kernel.org
sorry!
 
Old 05-31-2006, 05:41 AM   #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
Quote:
Originally Posted by ashley_31
The procedure specified here to install the kernel source requires our linux system to be connected to the internet so that it cam download the code from redhat.com.
Isnt the source code of kernel available on any of the installation cd's of linux ?? I am using - RedHat (Kernel 2.6) (version 4) (Enterprise Edition)
Yes, it is on one of the SRPMS CDs or on the SRPMS DVD, if you puchased a standard RHEL installation package the media should have been included.

Please note Red hat does use the kernl.org source as a base but backports patches and applies additional "fixes and tweaks" to the vanilla kernel source. While the vanilla kernel.org source will work just fine with a RHEL 4 installation it is not supported by Red Hat.
 
Old 06-01-2006, 12:06 AM   #8
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
Can you please give me an idea of what will be the name of that rpm in those CD's.?
 
Old 06-01-2006, 01:04 AM   #9
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
Can you please give me an idea of what will be the name of that rpm in those CD's.?
 
Old 06-01-2006, 02:56 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You might find this useful. Also, please be patient.
 
Old 06-01-2006, 05:21 AM   #11
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
Yes, it is on one of the SRPMS CDs or on the SRPMS DVD, if you puchased a standard RHEL installation package the media should have been included.
Hey Nylex, I have already tried that & that is what demands an internet connection with linux system.

To Lenard: It is not in any of the SRPMS packages in those CD's. If u know the folder/package name, please tell me about it.
Thanks.
 
Old 06-01-2006, 08:10 AM   #12
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
The latest for RHEL4 update 3 is;

ftp://ftp.redhat.com/pub/redhat/linu...0.1.EL.src.rpm

This is both the name and where to get the file. If you have paid for support then use it and request the update and source media packages.
 
Old 06-05-2006, 11:12 PM   #13
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by Lenard
The latest for RHEL4 update 3 is;

ftp://ftp.redhat.com/pub/redhat/linu...0.1.EL.src.rpm

This is both the name and where to get the file. If you have paid for support then use it and request the update and source media packages.
I used this ftp to download and install the rpm.
But after downloading, when i tried to install it, it gave me a message " This is a source RPM , hence cannot be installed with system - config packages. "
Please, help me out..
 
Old 06-06-2006, 06:39 AM   #14
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
Yep this is want you want the kernel source and the message is correct, the binary installer cannot install source packages, as root or equilivent do something like (from the console or xterm session);

rpm -ivh package_filename_here
cd /usr/src/redhat/RPMS/SPECS
rpmbuild -bp --target $(uname -m) kernel-2.6.spec

Then your kernel source can be found in the /usr/src/redhat/BUILD location.

This all changes a bit if you have the fedora-rpmdevtools and redhat-rpm-config packages installed, instead of being root as a normal user;

rpm -Uvh package_filename_here
cd ~/rpmbuild/SPECS
rpmbuild -bp --target $(uname -m) kernel-2.6.spec

Then your kernel source can be found in the ~/rpmbuld/BUILD location.
 
  


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
kernel source code ashley_31 Linux - General 10 05-23-2006 04:47 PM
Want 2.6.9-5 kernel source code bishalpoudyal Conectiva 1 04-13-2006 11:23 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
where to D/L kernel source code Almazick Linux - Software 6 09-03-2004 03:41 PM
kernel source code nabil_boussetta Linux - Software 7 02-13-2004 06:57 AM

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

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