Page 1 of 1

vmlinux loading process

Posted: Wed Jan 25, 2017 2:41 am
by osdevxp
i had been developing my own operating system using wiki.osdev.org and due to some reasons i had to abort my os development. But now i have come back to begin it again. I have successfully booted into protected mode and now i am in the kernel land. Everything is going great.
I was just making an iso image for my beginner os when a question came to my mind.
Can anyone tell me from an operating system developer point of view that how does grub load and run vmlinux [which is the linux kernel file].
What are the different steps which are included in the process.



Thanks in Advance !!

Re: vmlinux loading process

Posted: Wed Jan 25, 2017 2:54 am
by onlyonemac
You're looking for multiboot.

Re: vmlinux loading process

Posted: Wed Jan 25, 2017 3:06 am
by osdevxp
i am not exactly finding that. I am finding the steps that include in the process of grub loading the kernel. The possibilities could be that it uses the required filesystem to read and load the kernel file from the specified disk and partition.
Please do correct me if i am wrong.
And if those are steps then how to does it do that. I mean how does it load the kernel in the RAM.

Re: vmlinux loading process

Posted: Wed Jan 25, 2017 3:46 am
by iansjack
The source code for GRUB is freely available for study.

Re: vmlinux loading process

Posted: Thu Jan 26, 2017 6:16 am
by onlyonemac
osdevxp wrote:And if those are steps then how to does it do that. I mean how does it load the kernel in the RAM.
That's an implementation detail. In simple cases you could use the BIOS. In more complex cases you might need to implement basic FDC, IDE, and SATA support.