All of lore.kernel.org
 help / color / mirror / Atom feed
* (no subject)
@ 2010-09-02 11:58 lode leroy
  2010-09-02 13:43 ` Wrong format of kernel.img if build on Cygwin (was: no subject) Christian Franke
  0 siblings, 1 reply; 2+ messages in thread
From: lode leroy @ 2010-09-02 11:58 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]


I tried compiling grub from bzr on cygwin.

grub-mkimage failed with the following error:

~/grub/build/grub-core $ ../grub-mkimage -v -O i386-pc -d . -o core.img biosdisk part_msdos fat ntfs
../grub-mkimage: info: getting the size of ./biosdisk.mod.
../grub-mkimage: info: getting the size of ./part_msdos.mod.
../grub-mkimage: info: getting the size of ./fat.mod.
../grub-mkimage: info: getting the size of ./fshelp.mod.
../grub-mkimage: info: getting the size of ./ntfs.mod.
../grub-mkimage: info: the total module size is 0x6280.
../grub-mkimage: info: getting the size of ./kernel.img.
../grub-mkimage: info: reading ./kernel.img.
../grub-mkimage: info: getting the size of ./kernel.img.
../grub-mkimage: error: invalid ELF header.

I found that the problem can be solved by replacing the following line in the Makefile

strip -v -R .rel.dyn -R .reginfo -R .note -R .comment  -o kernel.img kernel.exec.exe

by

strip -Felf32-i386 -v -R .rel.dyn -R .reginfo -R .note -R .comment  -o kernel.img kernel.exec.exe

-- lode
 		 	   		  

[-- Attachment #2: Type: text/html, Size: 1319 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-04 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4C80A902.8000003@hotmail.com>
2010-09-04 10:45 ` Wrong format of kernel.img if build on Cygwin (was: no subject) Christian Franke
2010-09-02 11:58 (no subject) lode leroy
2010-09-02 13:43 ` Wrong format of kernel.img if build on Cygwin (was: no subject) Christian Franke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.