LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Closed Thread
  Search this Thread
Old 03-25-2008, 10:50 AM   #1
tsnider
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
vmlinuz file format problems - redhat kernel source tree & make


I’m having problems getting a customized RHEL 5 kernel built correctly so it can be booted by grub. The makes seem to succeed but grub gives the following messages when it gets control:
Booting 'Red Hat Enterprise Linux Server ASMLib (2.6.18.trs)'
root (hd0,0)
FileSystem type is ext2fs partition type 0x83
kernel /boot/vmlinuz-2.6.18-trs ro root=LABEL=/ rhgb quiet

Error 13: Invalid or unsupported executable format
Press any key to continue...

The problem seems to be that make doesn’t produce vmlinuz in the correct format the good version shows a type of “shared object” and my version shows “executable”.
File on a good vmlinuz:
vmlinuz-2.6.18-53.el5: ELF 64-bit LSB shared object, AMD x86-64, version 1, stripped
File on my vmlinuz
vmlinuz-2.6.18-asmTRS: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), statically linked, stripped

I’m doing the following commands:
make all
make modules
make modules_install
make install
mkinitrd –f /boot/initrd-2.6.18-trs.img 2.6.18-trs

The other strangeness is that zImage and bzImage can’t / won’t be made:
[root@Redhat107 linux]# make bzImage
make: Nothing to be done for `bzImage'.
[root@Redhat107 linux]# make zImage
make: *** No rule to make target `zImage'. Stop.

Yes - I realize that I’m breaking protocol and posting this same message to 2 forums – didn’t know which one would be better.
Thanks for the help.
 
Old 03-25-2008, 11:26 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here: http://www.linuxquestions.org/questi...d-make-630514/
 
  


Closed Thread



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
vmlinuz file format problems - redhat kernel source tree & make tsnider Linux - Kernel 1 04-05-2008 09:45 AM
crash: vmlinuz-2.6.11-1.1369_FC4: not support a file format? kholostoi Linux - General 2 03-24-2008 10:22 AM
source tree modification not showing in 'make menuconfig' dohpaz Slackware 14 01-28-2007 01:38 PM
make only specific module is kernel source tree saranjothy Linux - Kernel 2 08-16-2006 10:05 AM
configs file in the linux kernel source tree ashlesha Linux - Newbie 7 06-29-2006 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:47 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