LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-05-2003, 08:07 PM   #1
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Rep: Reputation: 15
Vanilla 2.6.0-test9 on MDK 9.2= WOW!


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:

HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -march=athlon-xp -falign-functions=16 -falign-loops=16 -falign-jumps=16 -falign-labels=1 -fomit-frame-pointer

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.

wrc1944
 
Old 11-05-2003, 08:34 PM   #2
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Rep: Reputation: 0
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
 
Old 11-06-2003, 09:05 AM   #3
hulkt
Member
 
Registered: Oct 2003
Posts: 172

Rep: Reputation: 30
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...
 
Old 11-06-2003, 10:27 AM   #4
Lostman
Member
 
Registered: Nov 2003
Location: Chicago, IL
Posts: 239

Rep: Reputation: 30
you want to tell us what that command is? lol
 
Old 11-06-2003, 11:30 AM   #5
FallGuy
Member
 
Registered: Sep 2003
Location: Indianapolis, IN USA
Posts: 31

Rep: Reputation: 15
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?
 
Old 11-06-2003, 11:44 AM   #6
Hcman
Member
 
Registered: Jan 2003
Location: Holland
Distribution: OpenBSD 3.6 - Arch Linux 0.7
Posts: 210

Rep: Reputation: 30
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.

HC
 
Old 11-06-2003, 03:57 PM   #7
hulkt
Member
 
Registered: Oct 2003
Posts: 172

Rep: Reputation: 30
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 ;-)
 
Old 11-06-2003, 05:34 PM   #8
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Rep: Reputation: 0
so, what can I do to try mdk with 2.6 test 9?
 
Old 11-06-2003, 07:21 PM   #9
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
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.

wrc1944
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PCMCIA-CS on 2.6-test9 valve Linux - Laptop and Netbook 1 11-25-2003 10:35 AM
2.6.0-test9 - sound rlculver Linux - Hardware 0 11-07-2003 09:57 AM
kernel-2.6.0-test9 BlinkEye Slackware 3 11-04-2003 01:08 PM
Kernel 2.6.0-test9 StoopInc Linux - General 7 11-03-2003 03:31 PM
2.6.0-test9 issues stevenhasty Slackware 3 11-02-2003 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration