LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 11-26-2004, 05:12 AM   #1
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Compile 2.6.9 keeps failing.


What I'm trying to do:
I'm trying to update my system to 2.6.9, so I downloaded the 2.6.9 kernel source and do the following steps
- su root
- make oldconfig
- make menuconfig
- make bzImage
- make modules_install install
- cp arch/i386/boot/bzImage /boot/ (pretty sure about the path)
Then edit my grub config and I leave the original entry there in case I get a kernel panic.

PROBLEM:
I've done this three times, and I've looked at posts which I believe those are the correct steps to take. The kernel always panics (no I'm to stupid to write the error down. I'll will next time as I'm fairly certian it will fail.) Now the even better part, for whatever reason, I can't just select the original entry in grub and boot the stock kernel. It panics as well.

Does someone see and error in the sequence I execute the commands?
I'm not giving up, so I should have this compiled tonight and I will post my errors. Thanks for any/all help.
 
Old 11-26-2004, 05:24 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Hi,

Don't you have to "make modules" before "make modules_install"?

John
 
Old 11-26-2004, 06:26 AM   #3
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Original Poster
Rep: Reputation: 46
Possibly, but the strangest thing that happens is the stock kernel becomes useless as it will give me the same error when I boot it that the newly compiled one does.
I suspect posting the error will give some insight, but I have to sleep then wake up and compile.
 
Old 11-26-2004, 01:07 PM   #4
Beads
Member
 
Registered: Nov 2004
Location: Missouri
Distribution: Suse - Latest kernel always
Posts: 97

Rep: Reputation: 15
Actually, after expanding the kernel tarball, you want to do the following in the order shown:

su
make clean
make mrproper
make menuconfig
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/bzImage-2.6.9

Then edit your bootloader (GrUB is what I think you are using) to point to bzImage-2.6.9 by adding a new paragraph in the menu.lst file. I simply copy the original lines that point to the vmlinuz, paste & edit a new set of lines that point to bzImage-2.6.9. This leaves the original kernal (vmlinuz) in tact, and bootable, in case you need to adjust the new kernel by recompiling. Even after getting the new kernel tuned up, I leave the original in place as a safety.

You do not have to use the System.map, nor create an initrd file.

This procedure has always worked for me on all SuSE distro's.
 
Old 11-27-2004, 03:15 AM   #5
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Original Poster
Rep: Reputation: 46
Ok, this time when trying to boot the new 2.6.9, I got

kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,3)

I was actually able to boot my stock kernel and get back to the system this time
 
Old 11-27-2004, 03:32 AM   #6
tcrimella
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
You have to create the RamDisk!
Look this link http://www.digitalhermit.com/linux/K...ild-HOWTO.html and follow all steps exactly.
ciao
 
Old 11-27-2004, 05:16 AM   #7
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Original Poster
Rep: Reputation: 46
Editted:
Ok, I did eventually get the 2.6.9 kernel compiled and was able to boot the system. With that, I happily blew away the install and reloaded 9.1 professional, Downloaded the 2.6.9 source and used my notes. With a stock 2.4.6-52, I first made a 2.6.9 without any changes and tested to make sure it was bootable, afterwards I am going to use menuconfig to make the changes. Here are the steps I did:

make clean
make mrproper
make oldconfig
make menuconfig (1st compile I didn't change anything)
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.9
mkinitrd -k vmlinux-2.6.9 -i initrd-2.6.9

Now edit the /boot/grub/menu.lst

Add this entry, you could leave out the comments or put in your own
### New 2.6.9 kernel ###
title linux-2.6.9
kernel (hd0,2)/boot/vmlinux-2.6.9 root=/dev/hda3
initrd (hd0,2)/boot/initrd-2.6.9


Now you WILL HAVE TO change the numbers inside the () to match the previous kernel entry as my partition layout isn't the same as yours.
Save and reboot, then boot your new kernel.


I will make another entry similar but change all the "-2.6.9" entires to -test which will be the kernel I actually used menuconfig on and changed some values.
I hope this helps at least one person.


Last edited by musicman_ace; 11-28-2004 at 04:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
failing to compile a simple glade app florg Programming 1 08-06-2005 04:25 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 08:34 AM
can't compile qtparted, config OK, make failing slackist Linux - Software 3 06-03-2004 10:19 AM
Kernel compile failing due to a file I can't find GreenPenInc Libranet 7 10-21-2003 12:55 PM
xfree compile failing et1ssgmiller Linux - Software 2 02-13-2003 08:43 AM


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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration