LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-09-2007, 09:36 AM   #1
sebastien.lorandel
LQ Newbie
 
Registered: Aug 2007
Location: Stuttgart, Germany
Distribution: SUSE SLES 10
Posts: 8

Rep: Reputation: 0
update to kernel 2.6.22.1


Hi,

I tried to update my SUSE SLES 10 SP1 kernel 2.6.16 to kernel 2.6.22.1... that's my first time, so I followed what I was told but now I get grub errror "error13 : invalid or unsupported executable format"

I extracted my linux-2.6.22.1.tar.bz2 file in /usr/src/
then:

zcat /proc/config.gz > .config
make defconfig
make modules-install


and I copied the following files to /boot:
-> cp vmlinux /boot/vmlinuz-2.6.22.1
vmlinuz.2.6.xx are the files used by grup so I decided to rename mine linuz also but when doing a "ls-l" I can see that they are not using the same format...
vmlinux files name police is green and rights are 755 while
vmlinuz files name police is black and rights are 644...
-> cp .config /boot/config-2.6.22.1
-> cp System.map /boot/System.map-2.6.22.1
-> no initrd was created... is that normal?)

Then I modified /boot/grub/menu.lst and added:

title Sebastien 2.6.22
root (hd0,1)
kernel /boot/vmlinuz-2.6.22.1 root=/dev/disk/by-id/scsi-35000c5000034d5a3-part2 resume=/dev/sda1 splash=silent showopts
# initrd /boot/initrd-2.6.16.46-0.12-default

Then I get the "error 13"... I don't know how to modify my vmlinux file to make it supported, has anyone a solution?
Or is there any other way to do it?

Thanks,
sébastien.
 
Old 08-09-2007, 03:18 PM   #2
mallux
Member
 
Registered: Jun 2007
Location: London, UK
Distribution: Ubuntu, RHEL, Fedora
Posts: 46
Blog Entries: 1

Rep: Reputation: 16
Hi sébastien

As you pointed out, vmlinux and vmlinuz are not the same type of file, so you can't just rename one to the other and expect it to work I'm afraid! vmlinuz is actually a compressed version of vmlinux, bundled up with some other stuff which makes it bootable.

Normally it is built for you when you do a "make", and you will find it in arch/(YOUR ARCH)/boot/bzImage

So your steps look correct, except that you should copy your compressed image to /boot instead:

cp arch/`arch`/boot/bzImage /boot/vmlinuz-2.6.22.1
 
Old 08-10-2007, 04:54 AM   #3
sebastien.lorandel
LQ Newbie
 
Registered: Aug 2007
Location: Stuttgart, Germany
Distribution: SUSE SLES 10
Posts: 8

Original Poster
Rep: Reputation: 0
Ok thanks a lot, now it works!

I just executed the line you said:
cp arch/`arch`/boot/bzImage /boot/vmlinuz-2.6.22.1
 
  


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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 10:27 AM
Latest Suse "YOU" update....Linux Kernel Update Failed Balarabay1 SUSE / openSUSE 10 06-11-2006 09:07 PM
YaST Online Update(YOU) Kernel Update? batorma Linux - Newbie 9 10-30-2005 03:17 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 11:01 AM
KDE update and RH 9.0 Kernel update massacre Linux - Newbie 1 02-02-2004 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:38 PM.

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