All of lore.kernel.org
 help / color / mirror / Atom feed
* Test GRUB2 compiled by MingW
@ 2005-04-01  7:03 Hanzac Chen
  2005-04-01 16:49 ` Marco Gerards
  0 siblings, 1 reply; 6+ messages in thread
From: Hanzac Chen @ 2005-04-01  7:03 UTC (permalink / raw)
  To: grub-devel

Hi,

After I get the GRUB2 successfully compiled by MingW (since it now can
handle binary output with its latest version of binutils), I can't boot
it after making the image according to the README.

1. boot it with QEMU, got "GRUB loading kernel..." then it seemed to be
dead.
2. boot it with Bochs, got a little bit further and displayed "no upper
memory".

BTW: When generate the kernel_syms.lst, every symbol should have a
underline at the beginning when compiling with some kind of compiler
like MingW.

Bye,
Hanzac




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

* Re: Test GRUB2 compiled by MingW
  2005-04-01  7:03 Test GRUB2 compiled by MingW Hanzac Chen
@ 2005-04-01 16:49 ` Marco Gerards
  2005-04-01 17:51   ` Yoshinori K. Okuji
  2005-04-01 23:19   ` Hanzac Chen
  0 siblings, 2 replies; 6+ messages in thread
From: Marco Gerards @ 2005-04-01 16:49 UTC (permalink / raw)
  To: The development of GRUB 2

Hanzac Chen <hanzac@gmail.com> writes:

Hi Hanzac,

> After I get the GRUB2 successfully compiled by MingW (since it now can
> handle binary output with its latest version of binutils), I can't boot
> it after making the image according to the README.
>
> 1. boot it with QEMU, got "GRUB loading kernel..." then it seemed to be
> dead.
> 2. boot it with Bochs, got a little bit further and displayed "no upper
> memory".

This is not normal.  Perhaps there is still a problem with the
compiler or linker or so.  MingW is just a modified gcc, right?

> BTW: When generate the kernel_syms.lst, every symbol should have a
> underline at the beginning when compiling with some kind of compiler
> like MingW.

Is there a way to fix this so everything remains working on the
supported OS'es and making things work on MingW as well?

--
Marco




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

* Re: Test GRUB2 compiled by MingW
  2005-04-01 16:49 ` Marco Gerards
@ 2005-04-01 17:51   ` Yoshinori K. Okuji
  2005-04-01 22:51     ` Hanzac Chen
  2005-04-01 23:19   ` Hanzac Chen
  1 sibling, 1 reply; 6+ messages in thread
From: Yoshinori K. Okuji @ 2005-04-01 17:51 UTC (permalink / raw)
  To: The development of GRUB 2

On Friday 01 April 2005 06:49 pm, Marco Gerards wrote:
> This is not normal.  Perhaps there is still a problem with the
> compiler or linker or so.  MingW is just a modified gcc, right?

I think this is normal. IIRC, Windows does not use ELF, while GRUB 2 depends 
on ELF.

Okuji



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

* Re: Test GRUB2 compiled by MingW
  2005-04-01 17:51   ` Yoshinori K. Okuji
@ 2005-04-01 22:51     ` Hanzac Chen
  2005-04-02 11:24       ` Marco Gerards
  0 siblings, 1 reply; 6+ messages in thread
From: Hanzac Chen @ 2005-04-01 22:51 UTC (permalink / raw)
  To: The development of GRUB 2

Hi,

Yoshinori K. Okuji wrote:
> On Friday 01 April 2005 06:49 pm, Marco Gerards wrote:
> 
>>This is not normal.  Perhaps there is still a problem with the
>>compiler or linker or so.  MingW is just a modified gcc, right?
> 
> 
> I think this is normal. IIRC, Windows does not use ELF, while GRUB 2 depends 
> on ELF.

Yes, MingW generates COFF and if using COFF, the GCC/binutils can't use
some of GAS's directive, like section switch. (I found GRUB using that
in its module loading mechanism.)

Maybe I still don't understand it well.

How much else does GRUB 2 depend on ELF?

BYE,
Hanzac



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

* Re: Test GRUB2 compiled by MingW
  2005-04-01 16:49 ` Marco Gerards
  2005-04-01 17:51   ` Yoshinori K. Okuji
@ 2005-04-01 23:19   ` Hanzac Chen
  1 sibling, 0 replies; 6+ messages in thread
From: Hanzac Chen @ 2005-04-01 23:19 UTC (permalink / raw)
  To: The development of GRUB 2

Hi,

Marco Gerards wrote:
> 
> This is not normal.  Perhaps there is still a problem with the
> compiler or linker or so.  MingW is just a modified gcc, right?
OK, I see, next time I'll compile it under Linux GCC, to compare that.

I need to know if the problem is caused by the kernel unable to load its
modules. I'm trying to understand how GRUB loads its modules.

BTW: MingW uses PECOFF object format, so it may have some limitations.
>>BTW: When generate the kernel_syms.lst, every symbol should have a
>>underline at the beginning when compiling with some kind of compiler
>>like MingW.
> 
> 
> Is there a way to fix this so everything remains working on the
> supported OS'es and making things work on MingW as well?
Modifying genkernsyms.sh is enough, I think.
Anyway, this is not a big problem.

BYE,
Hanzac



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

* Re: Test GRUB2 compiled by MingW
  2005-04-01 22:51     ` Hanzac Chen
@ 2005-04-02 11:24       ` Marco Gerards
  0 siblings, 0 replies; 6+ messages in thread
From: Marco Gerards @ 2005-04-02 11:24 UTC (permalink / raw)
  To: The development of GRUB 2

Hanzac Chen <hanzac@gmail.com> writes:

> Yes, MingW generates COFF and if using COFF, the GCC/binutils can't use
> some of GAS's directive, like section switch. (I found GRUB using that
> in its module loading mechanism.)
>
> Maybe I still don't understand it well.
>
> How much else does GRUB 2 depend on ELF?

A lot.  The modules are all ELF files and the core image has an ELF
loader.  It would be the best if you could somehow produce ELF
executables.

Otherwise another module loader should be implemented for COFF.

Thanks,
Marco




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

end of thread, other threads:[~2005-04-02 11:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-01  7:03 Test GRUB2 compiled by MingW Hanzac Chen
2005-04-01 16:49 ` Marco Gerards
2005-04-01 17:51   ` Yoshinori K. Okuji
2005-04-01 22:51     ` Hanzac Chen
2005-04-02 11:24       ` Marco Gerards
2005-04-01 23:19   ` Hanzac Chen

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.