Page 1 of 1

The ImageSig

Posted: Sun Mar 06, 2011 2:48 pm
by MichaelSammels
In the Stage2.asm file, the "ImageSig db 'PE'" is present. Is it possible to change this signature so I can use this bootloader with a kernel written also in ASM? Or do I need to create an EXE/C based kernel with this bootloader?

Re: The ImageSig

Posted: Mon Mar 07, 2011 4:02 pm
by Mike
Hello,

The signature is specific to PE executables. If you would like to use a PE executable written in assembly language or C the signature must match. If you want to use a custom image format or a non-PE image then it is indeed not required.

The boot loader was designed to parse PE executables so you will need to modify it slightly in order to parse non-PE images. Alternative bootloaders that support MultiBoot can also provide a solution.

Re: The ImageSig

Posted: Mon Mar 14, 2011 1:06 am
by MichaelSammels
Hello Mike, thank you for your response. Would you be able to provide me with an example of a bootloader (not GRUB, LILO or other such ones, more custom like yours), or a modification of your own bootloader which would load flat-binaries?

Re: The ImageSig

Posted: Mon Mar 14, 2011 5:06 am
by Mike
Hello,

Our in-house bootloader can load and execute flat binaries that are multiboot compliant. An example from the bootloader will not help however.

What I personally recommend is to try it yourself first: Decide on a standard to use and the goals for the bootloader and kernel relationship, if any. Then implement the standard. The standard can be complex or as simple as the bootloader checking for a specific magic number at offset 3 in the kernel.

If you still request an example, please let me know if you would like it as a modification of the series bootloader or our routine in our in-house loader (in C).

Re: The ImageSig

Posted: Wed Mar 16, 2011 12:50 pm
by MichaelSammels
Hello,

Please see the Personal Message which I have sent to you.

Michael