Jump to content

Kernel source from kernel.src.rpm? I need help!


Guest bizofun
 Share

Recommended Posts

Guest bizofun

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Guest bizofun

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...