* Re: Wrong format of kernel.img if build on Cygwin (was: no subject)
[not found] <4C80A902.8000003@hotmail.com>
@ 2010-09-04 10:45 ` Christian Franke
0 siblings, 0 replies; 2+ messages in thread
From: Christian Franke @ 2010-09-04 10:45 UTC (permalink / raw)
To: grub-devel
Lode Leroy wrote:
>
>
>> Did the core.img actually work as expected then?
>
> unfortunately no, it doesn't boot.
> booting the iso from grub-mkrescue in qemu I get the following message :
>
> Booting from CD-Rom...
> 1MB medium detected
> rub_env_seteub_exitub_fatal
> =========== (these letters in reverse video)
>
This is possibly the problem that libbfd cannot not convert PE to ELF
properly.
Unfortunately the grub-pe2elf tool does support pe-i386 but not pei-i386.
I will try to fix this next week.
--
Regards,
Christian Franke
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Wrong format of kernel.img if build on Cygwin (was: no subject)
2010-09-02 11:58 (no subject) lode leroy
@ 2010-09-02 13:43 ` Christian Franke
0 siblings, 0 replies; 2+ messages in thread
From: Christian Franke @ 2010-09-02 13:43 UTC (permalink / raw)
To: The development of GNU GRUB
lode leroy wrote:
> 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 ./kernel.img.
> ../grub-mkimage: error: invalid ELF header.
>
In the past (1.98), kernel.img was a raw binary. Now it is an ELF file
which requires extra conversion if build on Cygwin.
I will provide a patch to fix Cygwin build for 1.99.
> 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
>
Did the core.img actually work as expected then?
Thanks for the problem report.
--
Regards,
Christian Franke
^ 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.