Grub Boot Loader

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Guest

Grub Boot Loader

Post by Guest »


when grub hand conrol over to ur kernel, is it in real mode or protected mode?
I means does grub switch to protected mode or is dat left for us to do?
Slasher

Re:Grub Boot Loader

Post by Slasher »

change the COLOR OF YOUR POST!!!! HURTS THE EYES!!! >:(
Guest

Re:Grub Boot Loader

Post by Guest »

Below is da above with a change of color:

when grub hand conrol over to ur kernel, is it in real mode or protected mode?
I means does grub switch to protected mode or is dat left for us to do?
DarylD

Re:Grub Boot Loader

Post by DarylD »

Dis is a question dat I know de answer for.

Why do people write like that????

When grub switches to your kernel, it is in protected mode with all segment registers set to 4GB flat, but you will still need to create your own GDT and reload the selectors.
Whatever5k

Re:Grub Boot Loader

Post by Whatever5k »

DaryID is right, you are in Protected Mode, but the GDT is only set up temporarily, so you'll have to build your own one and load it with lgdt.
Ozguxxx

Re:Grub Boot Loader

Post by Ozguxxx »

Hi people I am sorry to mess this thread up but question is related to it. ;D
I want to know what I might be faced with in future if I do not use grub. I mean currently I am using a bootlader that I wrote from very scratch and it's not talented, in fact it is very poor I think. Anyway... I want to take your ideas on what difficulties I might be faced with. Thanx...
K.J.

Re:Grub Boot Loader

Post by K.J. »

I want to know what I might be faced with in future if I do not use grub.
Most likely nothing, but it really just depends on your OS.

K.J.
DarylD

Re:Grub Boot Loader

Post by DarylD »

Grub just makes life easy. As follows:

1. It makes the switch to protected mode
2. Will boot of floppy or hard drive
3. Will use whatever bios functions it needs to give you a memory map
4. Will load modules
5. It gives a pretty boot screen!
6. Makes life easy, did I already say that?!!!

If you want in the future, its would be possible to write your own bootloader that performs al these functions and get rid of grub, thats your choice.
Post Reply