Guest bizofun Posted November 9, 2002 Report Share Posted November 9, 2002 Ok so I am running 2.4.19-16mdk-1-1mdk as my kernel right now. I need the sources so I can recompile it to disable pcmcia support as well as a few other things. So I downloaded the kernel-2.4.19-16mdk-1-1mdk.src.rpm and then I did a % urpmi kernel-source ... hopping to get the /usr/src/linux directory so I can reconfigure and remake the kernel but it just says that the kernel is already installed. So if I remove the kernel with gnoRPM and then try it, it goes through but then I get the .bz2 images which don't appear to have all the modules in them. So basically I am asking how do I get the /usr/src/linux directory from a .src.rpm? Thanks for the help Jim Quote Link to comment Share on other sites More sharing options...
bvc Posted November 9, 2002 Report Share Posted November 9, 2002 The kernel-source is on CD3, you don't need to dnload it, and you definately don't want to try to rebuild it from src. It's about 150MB and would top out your cpu for about...well a long time, like a day! I compiled my kernel just fine with the kernel-source on CD3. You had it right though urpmi kernel-source I don't know what you mean by the .bz2 images? I know make bzImage if you mean after this and the other commands all the modules aren't there, make sure you cp /usr/src/linux/arch/i386/defconfig /usr/src/linux/.config then make mrproper before you make xconfig or menuconfig make dep clean bzImage make -j5 modules (-j5 says to make 5 at a time instead of 1 at a time) make modules_install If you do want to rebuild the kernel-source-src.rpm rpmbuild --rebuild <pkgname> Quote Link to comment Share on other sites More sharing options...
Guest bizofun Posted November 9, 2002 Report Share Posted November 9, 2002 Thank you that was extremely helpful! I thought for some reason I could donwload the source but I guess not... well off to go burn the 3rd cd. Thanks again. Jim Quote Link to comment Share on other sites More sharing options...
bvc Posted November 9, 2002 Report Share Posted November 9, 2002 If you don't want to download and burn CD3 you can just download the kernel-source-i586.rpm and install it. BUT there are a lot of devel.rpms on CD3 and there's a very good chance others are on there you'll need. If not for this, in the future. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.