Skip to contentSkip to conversation

GRUB2 and Multiboot?

DISCUSSION Julian Salazar 4 participants 6 messages Apr 11, 2008 – Apr 25, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

I've got some questions about GRUB2 relating to the Multiboot Draft:

It seems like GRUB2 passes the start tag with a key of 1, bootloader name with a key of 2, etc.
But the Multiboot draft says that the start tag has a key of 0, bootloader name has a key of 1, etc.
Which one is right? One or the other has to be changed...

Suggestions:
I think that the multiboot tags should be explicitly (in the multiboot spec) passed in order (i.e. that a tag with a key of 5 should always go before one with a key of 7) Maybe a bootloader should give an x86-64 kernel the option to either boot it into 32 or 64 bit mode? Or is that asking for too much?

Also, I'm really interested in the GRUB2 project, and I've noticed a staggering lack of documentation for it. I'd be perfectly willing to help write a manual of some kind for GRUB2, so how could I go about doing that?

I'd like to hear your thoughts.

Thanks,
Julian S.

#1 lore raw
Quoted 4 lines · Julian Salazar

Also, I'm really interested in the GRUB2 project, and I've noticed a staggering lack of documentation for it. I'd be perfectly willing to help write a manual of some kind for GRUB2, so how could I go about doing that?

Sorry that I can't answer about your multiboot question, hopefuly someone else can.

About the manual, we have the skeleton of it in CVS, but it's not being installed by the makefiles because it needs a lot of cleanup. There was someone else who planned to work on it, IIRC, but if you can help too that's welcome of course.

The most significant issue right now is removing or updating all parts that are specific to GRUB Legacy.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#2 lore raw
In reply to Julian Salazar
Quoted 9 lines · Julian Salazar

Hello,

I've got some questions about GRUB2 relating to the Multiboot Draft:

It seems like GRUB2 passes the start tag with a key of 1, bootloader name with a key of 2, etc.
But the Multiboot draft says that the start tag has a key of 0, bootloader name has a key of 1, etc.
Which one is right? One or the other has to be changed...

You may get a better answer if you quote the specification (and where you found it) and the piece of code that appears wrong to you.

I looked into multiboot.texi in GRUB 1 CVS, and I don't see the word "tag" there.

Quoted 5 lines

Suggestions:
I think that the multiboot tags should be explicitly (in the multiboot spec) passed in order (i.e. that a tag with a key of 5 should always go before one with a key of 7) Maybe a bootloader should give an x86-64 kernel the option to either boot it into 32 or 64 bit mode? Or is that asking for too much?

I don't think having a dual-mode kernel would be a good idea. Either it would be two kernels glued together, or it would be essentially a 32-bit kernel with option 64-bit extensions - hardly a good idea for a kernel. And in the later case, it would be better to use a parameter, like "enable-64bit".

Or maybe you mean that the kernel should tell the bootloader whether the control should be passed to it in the 64-bit mode?

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw

Sorry if I wasn't more specific, but I was talking about the multiboot draft at http://grub.enbug.org/MultibootDraft, specifically the Multiboot Information Format.

Quoted 2 lines

Or maybe you mean that the kernel should tell the bootloader whether the control should be passed to it in the 64-bit mode?

Exactly what I mean - maybe there should a flag of some kind, or a parameter...

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pavel Roskin
Sent: April-13-08 8:14 PM
To: The development of GRUB 2
Subject: Re: GRUB2 and Multiboot?

Quoted 9 lines · Julian Salazar

Hello,

I've got some questions about GRUB2 relating to the Multiboot Draft:

It seems like GRUB2 passes the start tag with a key of 1, bootloader name with a key of 2, etc.
But the Multiboot draft says that the start tag has a key of 0, bootloader name has a key of 1, etc.
Which one is right? One or the other has to be changed...

You may get a better answer if you quote the specification (and where you found it) and the piece of code that appears wrong to you.

I looked into multiboot.texi in GRUB 1 CVS, and I don't see the word "tag" there.

Quoted 2 lines

Suggestions:
I think that the multiboot tags should be explicitly (in the multiboot

spec)

Quoted 1 line

passed in order (i.e. that a tag with a key of 5 should always go before

one

Quoted 1 line

with a key of 7) Maybe a bootloader should give an x86-64 kernel the

option

Quoted 1 line

to either boot it into 32 or 64 bit mode? Or is that asking for too much?

I don't think having a dual-mode kernel would be a good idea. Either it would be two kernels glued together, or it would be essentially a 32-bit kernel with option 64-bit extensions - hardly a good idea for a kernel. And in the later case, it would be better to use a parameter, like "enable-64bit".

Or maybe you mean that the kernel should tell the bootloader whether the control should be passed to it in the 64-bit mode?

Signature · 8 lines
Regards,
Pavel Roskin


_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
#4 lore raw
Quoted 3 lines · Julian Salazar

Sorry if I wasn't more specific, but I was talking about the multiboot draft at http://grub.enbug.org/MultibootDraft, specifically the Multiboot Information Format.

Oh, I see.

It seems to me that the code implements a more thought out standard. 0 is MULTIBOOT2_TAG_RESERVED1 there.

The code was committed by Jerone Young, but I don't know who maintains the specification. It's quite possible that the code has never been tested on a real kernel.

Quoted 5 lines
Quoted 2 lines

Or maybe you mean that the kernel should tell the bootloader whether the control should be passed to it in the 64-bit mode?

Exactly what I mean - maybe there should a flag of some kind, or a parameter...

I see. Anyway, I don't feel qualified about discussing the proposed standard.

Signature · 2 lines
Regards,
Pavel Roskin
#5 lore raw
In reply to Julian Salazar
Quoted 9 lines · Julian Salazar

Sorry if I wasn't more specific, but I was talking about the multiboot draft at http://grub.enbug.org/MultibootDraft, specifically the Multiboot Information Format.

Quoted 2 lines

Or maybe you mean that the kernel should tell the bootloader whether the control should be passed to it in the 64-bit mode?

Exactly what I mean - maybe there should a flag of some kind, or a parameter...

The Multiboot Specification 2 will always pass control in 32-bit mode on x86_64. I think this was the conclusion of a past discussion...

Okuji