LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-12-2005, 12:52 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,113

Rep: Reputation: 57
GRUB - boot two diffent kernels


I had to to add SIP support to my kernel 2.6.13-15 on my SUSE 10 box for my VOIP phone.I have attempted to add this new kernel to grub loader. When I try and boot with this new kernel I get these errrors:


Error is
13 : Invalid or unsupported executable format

and

file not found

here is my /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd0,0)
kernel /vmlinuz root=/dev/system/root selinux=0 x11i=vesa resume=/dev/hda2 splash=silent showopts
initrd /initrd

#######NEW SIP KERNEL############### My new Kernel#####
title SIP KERNEL 2.6.13-15.SIP
root (hd0,0)
kernel /vmlinuz1 root=/dev/system/root selinux=0 x11i=vesa resume=/dev/hda2 splash=silent showopts
initrd /initrd


###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
root (hd0,0)
kernel /vmlinuz root=/dev/system/root showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /initrd

here is an ls -l of my /boot partition:

total 10207
drwxr-xr-x 4 root root 1024 Dec 12 12:30 .
drwxr-xr-x 21 root root 488 Dec 12 11:54 ..
-rw-r--r-- 1 root root 756641 Nov 29 16:36 System.map-2.6.13-15.7-default
-rw------- 1 root root 512 Nov 27 21:26 backup_mbr
lrwxrwxrwx 1 root root 1 Nov 27 21:16 boot -> .
-rw-r--r-- 1 root root 0 Dec 12 12:30 boot_file
-rw-r--r-- 1 root root 63904 Nov 29 16:51 config-2.6.13-15.7-default
drwxr-xr-x 2 root root 1024 Dec 12 11:41 grub
lrwxrwxrwx 1 root root 26 Dec 12 11:05 initrd -> initrd-2.6.13-15.7-default
-rw-r--r-- 1 root root 2084336 Dec 12 11:05 initrd-2.6.13-15.7-default
drwx------ 2 root root 12288 Nov 27 21:06 lost+found
-rw-r--r-- 1 root root 73528 Nov 29 16:53 symvers-2.6.13-15.7-i386-default.gz
-rw-r--r-- 1 root root 1839103 Nov 29 16:51 vmlinux-2.6.13-15.7-default.gz
lrwxrwxrwx 1 root root 27 Dec 9 11:49 vmlinuz -> vmlinuz-2.6.13-15.7-default
-rw-r--r-- 1 root root 1541452 Nov 29 16:36 vmlinuz-2.6.13-15.7-default
-rw-r--r-- 1 root root 4025532 Dec 12 09:57 vmlinuz-2.6.13-15.7-sip
lrwxrwxrwx 1 root root 23 Dec 12 11:40 vmlinuz1 -> vmlinuz-2.6.13-15.7-sip

Why is it that they use a symbolic link to the kernel?
I have made a symbolic link to the new sip kernel but that makes no difference! I have changed the paths and etc.....
What am I doing wrong? Help!

Last edited by metallica1973; 12-14-2005 at 08:25 PM.
 
Old 12-15-2005, 04:08 PM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,113

Original Poster
Rep: Reputation: 57
Never mind I figured it out. It was an ID10T error. I was trying to load the wrong file whichh wasnt the kernel.
 
Old 12-16-2005, 03:42 AM   #3
vangelis
Member
 
Registered: Nov 2004
Location: Hellas
Distribution: Zenwalk 6.4
Posts: 337
Blog Entries: 4

Rep: Reputation: 30
could you please post the solution, if someone else has the same problem it could be useful
nothing in the computer world can make us look id1ots.. it's just the programer's fault(it's always and we gotta live with)
 
Old 12-18-2005, 07:50 PM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,113

Original Poster
Rep: Reputation: 57
of course,

My whole reason for recompling my kernel was to add additional SIP support for my new VOIP phone.

1st - I downloaded the sources from kernel.org to /usr/src/linuxXXX

2nd - I downloaded and complied the SIP support (netfilter.com) for my kernel.

3rd - ran menuconfig and configured what I wanted into my new kernel

4th - (make in the kernel) performed standard make dep(while in /usr/src/linuxXX.XX),make bzImage, make modules && make modules_install

5th - cp usr/src/linux/arch/i386/boot/bzImage to /boot partition.

6th - created ramdisk image for kernel. mkinitrd.

7th - modified my boot/grub/menu.lst. This line was added under my default kernel:

###############SIP KERNEL 2.6##############################

Title 2.6 SIP Kernel

root (hd0,0)
kernel /vmlinuz-2.6.13-15-SIP root=/dev/system/root
initrd /initrd-2.6.13-15-SIP

############################################################

8 - I cryed tears of joy that I finally did something right.

******* Key Point**************

- Always keep your original kernel as a backup option just in case you newly compiled kernel does not work. This was my first kernel compile and I feel pretty damn good - Good luck.
 
  


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
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 08:32 AM
intel536 in suse10 yugi Suse/Novell 3 09-08-2006 03:25 AM
apt-get upgrade does not upgrade my kernel halfpower Debian 5 12-11-2005 09:53 AM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM
Kernel upgrade: Unable to handle kernel paging request deviantintegral Debian 4 07-14-2004 04:59 PM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
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