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.
I'd been waiting for this!
Just compiled a vanilla 2.6.0-test9 on my new updated 9.2 install, and all I can say is, WOW!
I've been on Gentoo for the last 3 months, fooling around with all the 2.6.0-test versions, so I pretty much have my kernel .config files down perfectly for any of my three Linux boxes.I've only been having problems with the last test9-mm1 and mm2, with ps/2 mouse, and Radeon DRM broken (seems a common flaw with these mm patches).
Anyway, I edit my kernel Makefiles with these flags:
I did do a few 2.6 kernels on Mandrake 9.1, with good results, but this is even better. I always compile as user in my /home directory (Gentoo or Mandrake), then su to root for the make modules_install stage, and copy bzImage (renamed) over to /boot, then edit lilo appropriately. I dispense with System.map & initrd files- in my case they aren't needed. Makes trying new kernels a breeze.
Glad to hear it works for you!
I tried the 2. 6 test 5 kernel on mdk 9.2 and man it flies!!
I cant seem to get test 9 because there is no mdk compilation for it yet and i have never recompiled a kernel
i like the easy way to compile new kernels offer, just one command.
test5 locked lots on my system, including my mouse!!!
im trying again with test9...
I know Gentoo has a single command (genkernel), but was unaware that something similar existed for Mandrake. What is the Mandrake command for this "easy way", or were you referring to Gentoo?
I think hulkt means that typing 'make' does 'make dep', 'make bzimage' and 'make modules'. After that you still have to install the modules and copy your bzimage.
its new kernel's command, nothing to do with mdk.
yes, make makes everything then you just have to enter the diff. install command...
life is getting easier ;-)
OK- Here's a short description of how I do it (this is for Mandrake, Gentoo is slightly different):
This assumes you have all the required devel tools installed, and a working 9.2 install.
1. You need to know your hardware, so you can get your kernel .config file correct. This is the main reason for failure! "make xconfig" might take a few tries. Best to make it as lean as possible, and compile every needed thing into the kernel your hardware requires, not as modules (for the first time). Remember, this is cutting edge stuff.
2. Create a /home/user/kernels directory.
3. Download 2.6.0-test9 to that directory, and unpack.
4. Open a konsole (as user), and cd (as user) to the new linux-2.6.0-test9 directory.
5. make mrproper
6. make xconfig, and try to get it lean, and right- at this point, you want 2.6 to at least boot, and then recompile things you might have missed, later, and refine your config after you have gotten a 2.6 to boot, and RUN!
7. Skip make dep, but do make clean.
8. make bzImage- (if it fails, your config is wrong, or you don't have the required packages installed).
9. make modules (will be quick, if you didn't select "m" too much)
10. SU to root, then: make modules_install
11. Then: cp arch/i386/boot/bzImage /boot/linux-2.6.0-test9
12. Edit lilo/grub as required, to create the stanza for the 2.6 kernel. At this point, what I do is omit the initrd, and System.map. (This might cause problems if you hac scsi devices, but usually is not needed- the point is to get 2.6 to boot, and run)) Just copy the original Mandrake kernel stanza to the bottom of your /etc/lilo.conf file, and edit- remove the initrd line, and edit for linux-2.6.0-test9. Here's an example stanza, edited from the original copied Mandrake 9.2 install (But, this is based on my hardware setup, as reflected in my fstab- yours might be slightly different, but if you wish to compile kernels, this will be understandable):
image=/boot/linux-2.6.0-test9
label="2.6.0-test9"
root=/dev/hda10
vga=788
read-only
13. Save your edited lilo (as root), and then at root command line run "lilo" to update lilo bootloader (no quotes).
14. Reboot, and the new kernel option will appear. If it fails, you have made a mistake in xconfig, or have a conflict that is as yet unknown.
Good luck!
If you have problems, I'll try and help if posssible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.