The ImageSig
Moderator:Moderators
-
- Posts:4
- Joined:Tue Dec 21, 2010 2:25 pm
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
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.
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.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
-
- Posts:4
- Joined:Tue Dec 21, 2010 2:25 pm
Re: The ImageSig
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
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).
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).
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
-
- Posts:4
- Joined:Tue Dec 21, 2010 2:25 pm
Re: The ImageSig
Hello,
Please see the Personal Message which I have sent to you.
Michael
Please see the Personal Message which I have sent to you.
Michael