Page 1 of 1
portable
Posted: Fri Mar 06, 2009 5:01 pm
by Gavin
If i program my operating system in nasm will it be portable if i use efi firmware? Instead of normal bios.
Re: portable
Posted: Fri Mar 06, 2009 5:12 pm
by Troy Martin
Probably not.
Re: portable
Posted: Fri Mar 06, 2009 5:15 pm
by Combuster
Homework questions:
How does EFI boot your kernel?
How does the legacy bios boot your kernel?
What are the differences?
What are the similarities?
Can you write something that deals with the differences?
Then ask yourself again:
Can I use NASM to solve this problem?
Your posting history suggests that you spend very little effort trying to figure out things for yourself. If you continue this you might get the community against you and not getting your unsolvable questions answered at all.
Re: portable
Posted: Fri Mar 06, 2009 5:17 pm
by Troy Martin
Another one to look at: does EFI switch to protected mode for you like a GRUB install or not?
Re: portable
Posted: Fri Mar 06, 2009 6:45 pm
by Gavin
Homework:
How does EFI boot your kernel?
It uses it's boot manager that is built in to the firmware to execute
the EFI boot loader. Example "\EFI\gavinos\myos.efi and would load my kernel.
How does the legacy bios boot your kernel?
It loads the mbr into ram which in turn loads the boot sector of the active partitions which has a bootloader ie ntldr which then loads the kernel.
What are the differences?
real mode restrictions are gone,
It's stored on firmware so it doesn't need a disk to load a bootloader.It uses it's own bootmanager.
It's a standard so it won't make a difference what operating system is going to be run.
What are the similarities?
Efi uses a bootloader on disk the same as the mbr scheme does to load the kernel.
Can you write something that deals with the differences?
A bootmanager right?
does EFI switch to protected mode for you like a GRUB install or not?
Efi runs in protected mode.
EFI supports boot devices; uses a flat memory model; and hides platform and firmware details from the OS.