MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
When you recompile the kernel in mandrake, the name of the kernel stays the same except the mdk at the end becomes mdkcustom. I'd like to keep that mdk as mdk when I recompile. How do I do this? I'm not recompiling the kernel to change the kernel in any way, I actually just have to have a configured kernel source to compile another module (drm). Problem is that it wants me to run make dep on the source, and Mandrake won't let you do that, plus the name gets changed, so the module that I'm building won't load on start up. It would be completely retarded to have to recompile and installed the kernel and ALL the modules just to get this one module working correctly. I haven't found a way to change the name that the kernel gets when it recompiles though.
Help please any expert out there.
EDIT: Don't worry about this, I think I found the answer. For those who are curious, I think it is in one of the top lines in the base Makefile of the source (i.e. /usr/src/linux/Makefile). Sorry, maybe this one was obvious, I just couldn't find it right away because there were so many different files to look at.
Last edited by springshades; 07-15-2005 at 01:39 PM.
that's a pretty odd thing to want to change... why not have more fun and call it after yourself, or the machine... infact you really shouldn't force it back to mdk, as that implies it's a stock kernel again, which it isn't and could easily confuse others if you are after support for a kernel related issue.
Well, this is something of a strange case. In order to get 3D support for my card, I needed to build dri from CVS. That involves compiling X.org, Mesa, and DRM. In order to build DRM, it is necessary to have a configured kernel source for your current kernel. Now I havent had to recompile my kernel yet, but I downloaded it and was having errors with the compile because I wasn't able to go far enough into the recompile process. This is because make dep doesn't work for some reason, it says it's unnecessary and won't execute... I know it's unnecessary in most cases, but in mine it is, because make clean isn't enough to make the DRM build go without errors.. (I don't know if the make dep thing is a Mandrake specific thing, or if it's just part of the newer kernels.) So... I decided to just go through with it and recompile the kernel. It IS in fact the stock kernel or an equivalent because I simply loaded the existing .config file and recompiled the kernel. After that, DRM built itself with no errors. However, the modules wouldn't load because... you guessed it... version magic gave me hell about the kernel being called mdk instead of mdkcustom. Yippy. So, the quick and easy fix, without any major side effects to speak of, was to just change the name of the kernel to mdk when I compiled it. The alternative would've been to recompile the kernel AND all the modules then actually install them. I just wish make dep would've worked, then I wouldn't have had to deal with any of this stuff.
Last edited by springshades; 07-16-2005 at 08:08 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.