Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello -
I just downloaded kernel 2.4.17.14mdk-1-1mdk.i586.rpm and the sources to go with it. I did a rpm -i first to the sources and then to the kernel package and rebooted. Everything booted fine, Lilo was setup for me, uname -r shows 2.4.17mdk.
So I went to usr/src and found that my linux folder is still a link to the stock M8.1 kernel 2.4.8-26 What I want and need to do is recompile my 2.4.17 kernel so that I can select a few things I need to get support for my hardware and network. How can I recompile my kernel and do a xconfig when I don't have a Linux folder for my new 2.4.17 kernel? Don't I go to a terminal and drop into my linux folder that is linked to kernel 2.4.17 and type xconfig and then select the options I need? Problem is that I don't have a linux folder for the new 2.4.17 kernel, just the older stock one. How do I recompile my kernel then?
Thanks for your help
Scott
I ran rpm -i on the kernel and sources packages from my HOME directory. When I go to /usr/src the only folders in there are linux, linux 2.4.8 and rpms. There is no folder that I can find anywhere on my system for linux-2.4.17mdk? That is the main problem. Is there any other places where it could possibly be? I need to run make xconfig from within my Linux folder for the new kernel to find the .config file so that I can recompile, right? Is it possible that the new kernel is not installed even though uname -r say it is and during boot after Lilo it displays 2.4.17-14mdk?
Thanks for the help so far, I can really use it : )
Scott
Last edited by cameronknives; 02-09-2002 at 12:59 AM.
Thanks for your help so far Dave. In /usr/src I don't have a linux-2.4.17 folder like I should. Therefor I am having difficulty linking linux to said folder. What I originally did was download kernel-2.4.17.14mdk-1-1mdk.i586.rpm and linux-2.4.17.14mdk-1-1.src.rpm from Rpmfind.net to my HOME directory. I ran rpm -i on both of those files. I did the source file first then the kernel file last. I then rebooted and saw a new entry for it on my Lilo screen. It booted fine and I did a uname -r and it verified it as 2.4.17mdk. I then went to /usr/src to recompile my newly installed kernel but there was no folder for the new 2.4.17 kernel. The only folders there were the Linux folder symbolically linked to linux 2.4.8 and then the RPMS folder for it. Inside the RPMS folder I found a lot of stuff for the 2.4.17 kernel. In my /boot folder there is a system.map for the new kernel and also initrd-2.4.17.img and vmlinuz-2.4.17 and config-2.4.17 Everything seems to be in place except for the darn /usr/src/linux-2.4.17 folder? Am I really running the new kernel and can I recompile it without having a linux-2.4.17 folder for it? If there is no Linux-2.4.17 folder in there then how can I be running the new kernel?
Thanks -
Scott
Last edited by cameronknives; 02-09-2002 at 01:14 AM.
The correct thing to do at this point if you have the kernel folder in /usr/src/linux-2.4.8 and that's the way it came then that should be /usr/src/linux.
you can do this
mv /usr/src/linux-2.4.8 /usr/src/linux
that will make it a folder not a link, if you want a link do this
ln -s /usr/src/linux-2.4.8 /usr/src/linux
then you will still have the folder linux-2.4.8 but a link will point to it.
then you should leave that folder alone.
build you new kernels somewhere else, anywhere, it don't matter.
if you decide at some point to recompile the glibc library then you move your kernel you want to use to /usr/src/linux and compile glibc.
other than that don't move the original kernel from /usr/src/linux
I would go to kernel.org and get the kernel you want. then compile it
what this command does is make a link named linux-2.4.17 linking to a file named linux
I think that is backwards
Opps yea sorry that is bass ackwards.. I've been up for too many hours.. sorry if I confused anyone.
So enlighten me David, I guess I'm missing your point to Cameron.. why should you relink /usr/src/linux ot the new kernel? Are you saying because if he boots to the old kernel it will choke on the new modules/headers?
(something tells me I should stop posting after 12am)
Well I'm not sure if that makes sense now or not.. when you download a new kernel, the new tar ball include new kernel headers for the new kernel source.
I read the thread you posted, but it's to deep for me. The only thing I can see breaking if you relinked /usr/src/linux would be your old kernel.. because when it boots up with will be linked against /usr/src/linux which now has new kernel headers, etc from the newest kernel.
Hence, that is why my old kernel bombs out big time when I load it now.
Sorry, I'm just trying to get this thought process correct for me, and I'm sure we're confusing the heck out of Cameron! LOL
Last edited by ryanstrayer; 02-09-2002 at 01:49 AM.
Hi -
Thanks again everyone for your help so far. Maybe I am just slow or not expressing my problem correctly. There is no linux-2.4.17 folder in usr/src to link to. There is no Linux-2.4.17 folder anywhere on my system that I can find. I can't link to a folder that doesn't exist.
LOL - I think I edited my last comment after you posted.. maybe you should IM me so we could talk..
I see what you're saying, but what if you do all of that, leave /usr/src/linux linked to the old headers, then when you compile new programs, you'd be compiling with old headers ... unless you put in the paramater in the 'configure' or 'make' to use the new /usr/src/linux-2.4.17 or whatever.. so it would use the new headers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.