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.
|