On 25.06.2011 05:35, Graeme Russ wrote:
> Hi Vladimir,
>
> On 25/06/11 13:23, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>> This is perfectly accomodated by multiboot specification. Just add a
>> small structure somewhere in the first 8K of the file and your image is
>> multiboot-compliant.
> Thanks for the advice, but I have a few questions (please excuse any that
> appear really 'newby')
>
>  - What GRUB command(s) would I use to load & run the image
multiboot+boot
>  - How do I specify where in memory the file is loaded?
It's part of this structure.
>  - Is there a 'quick and dirty' document on how to create a multiboot
>    header which GRUB can load?
>
http://bzr.savannah.gnu.org/lh/grub/trunk/multiboot/annotate/head:/doc/multiboot.texi

"Multiboot header must be contained completely within the first 8192
bytes of the OS image, and must be longword (32-bit) aligned."
In short your header should be (little-endian uint32_t):

/* magic */ 0x1BADB002,

/* flags */ 0x00010000,

/* checksum */ 0xe4514ffe,

header_offset+load_addr,
load_addr,
0,
0,
entry_addr


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to