LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-03-2005, 09:06 AM   #1
luqman
Member
 
Registered: Feb 2005
Posts: 43

Rep: Reputation: 15
kernel-source-2.4.25-040218??? where to find ???


||| uname -r ||| shows
2.4.25-040218

and i need to install the package kernel-source, but the problem is that i cannot find the |||kernel-source-2.4.25-040218|||.

I have googling for it for the last so many weeks.

Any solutions for this problem?

Kindest
Muhammad Muzzamil Luqman
 
Old 03-03-2005, 01:36 PM   #2
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Rep: Reputation: 46
You need the source for 2.4.25 . The rest of the extension is the date that someone compiled it. The best source of kernels is kernel.org. You should find what you need.
 
Old 03-04-2005, 02:57 AM   #3
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
thankx apolinsky, i was quite worried for the kernel-source. I guess i will easily find the kernel-source-2.4.25

Is this the normal practice that people put the compilation date after the kernel or this is something compulsary? can i change this date to todays date or something else?

And also please tell me about some official reposiroty for the kernel-source-2.4.25.

Kindest
Muhammad Muzzamil Luqman
 
Old 03-04-2005, 07:36 AM   #4
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Rep: Reputation: 46
If you go to kernel org you will find current and prior kernels. Make sure you choose the complete package, not a 'patch'. Spend some time at the site. Regarding the date: generally when people compile kernels they will affix a date onto the name indicating they have made certain changes on a specific date. It doesn't matter what date you put on the kernel.
 
Old 03-04-2005, 07:48 AM   #5
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
apolinsky, on a seperate machine i have installed the Redhat9.0 and when i issue the command:

uname -r

it says
2.4.20-8

doest this "8" follows the same login and the package kernel-source-20.4.20 will work???
 
Old 03-04-2005, 08:46 AM   #6
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Rep: Reputation: 46
The kernel version is 2.4.20 The 8 indicates a revision made by someone. They have started with the 2.4.20 kernel, and probably chose certain compile options when they compiled it. If you compile a kernel, you have many options you can choose to include or exclude in the compiled kernel. (For ease, you might try a make menuconfig on one of your kernels.) You will be able to include an enormous number of items in the kernel, possibly load them as modules, or exclude them altogether for compactness of the kernel size. The larger you make a kernel, the slower it will load. You have to produce an initrd preloader if it exceeds a certain size. Getting back to the question at hand, Redhat started with the 2.4.20 kernel, and in the compile chose to enable or disable certain portions of the code to tailor the kernel for what they considered to be 'typical' needs.
 
Old 03-04-2005, 09:03 AM   #7
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
sorry apolinsky for disturbing you again and again. But i am really worried.

The problem is that

i have got the kernel-2.4.25-040218 installed.

The only thing that i have access to is the tar ball for the kerenl-2.4.25-040218.

I thought that by compiling and installing the kernel i would get the kernel-source-2.4.25.040218. But after wasting three days in getting the kernel compilation and then installation understand i have come to know that the compilation and the installtion from source does not alter any packages and i have to update the packages manually.

The thing is apolinsky that i do not have any kernel-source-2.4.25.040218 and i can't find it over the web. I thought that kernel-source-2.4.25 would work but i have come to know that for different patches you have to get different sources as well and if the sources are not identical then i may ruin your system, even.

Now at the moment i am really confused and i do not know what to do. Please if you can suggest me some thing?
 
Old 03-04-2005, 01:10 PM   #8
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Rep: Reputation: 46
Generic kernels, the ones used to produce all others, are available at kernel.org. If you have a custom modified kernel, it must be obtained from a different source. For example Redhat has a site where you can get all their sources. The same can be said for Debian, Suse, and Slackware. I'm sure all of the other major players provide kernel sources. I think you may be worrying too much. You should be able to take the generic source from kernel org for 2.4.25. It should work. If you know specifically that it doesn't, go to the website for your specific distribution. You will have to search for a bit. For instance, I seem to recall the update site for Redhat is something like updates.redhat.com. The Suse sites are reachable with yast. The Debian sites would use apt-get.

If your kernel source is rejected because the name is slightly different from the compiled version, try renaming the generic kernel to the specific compiled kernel name.
 
Old 03-05-2005, 02:43 AM   #9
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
Thankx again!

The problem is almost solved but can you please tell me how can i rename the "generic kernel to the specific compiled kernel name"???
 
Old 03-06-2005, 05:12 PM   #10
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Rep: Reputation: 46
In the Unix (or Linux) universe, it is always easier to be careful. You have obviously downloaded the kernel to a certain directory. Gernerally kernels get compiled, and installed from the /usr/src directory. Since I have my home directory as /usr/alan that is the directory I use for all downloads. I would copy the source code using the following command:
cp /home/alan/kernel-source-2.4.25 /usr/src/kernel-source-2.4.25-040218

As a general rule /usr/src can only be written to by root.

Good luck

Last edited by apolinsky; 03-06-2005 at 05:13 PM.
 
Old 03-07-2005, 03:47 AM   #11
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
thankx alot apolinsky

you've moved a big big burdon off me.

Kindest
Muhammad Muzzamil Luqman
 
  


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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
Where can I find kernel-2.4.20-6 source s74b Linux - Newbie 3 11-20-2004 03:51 AM
Where Can I Find Kernel Source after Installation s74b Linux - Software 4 11-19-2004 02:59 AM
Where can you find old Kernel-source packages (2.4.21)? forgox Debian 2 10-27-2004 07:28 AM
Where can I find kernel-source-2.6.6? Hell-Shooter Linux - General 5 06-05-2004 02:03 PM

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

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