OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 8:14 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: vmlinux loading process
PostPosted: Wed Jan 25, 2017 2:41 am 
Offline

Joined: Wed Jan 25, 2017 2:32 am
Posts: 2
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 !!


Top
 Profile  
 
 Post subject: Re: vmlinux loading process
PostPosted: Wed Jan 25, 2017 2:54 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
You're looking for multiboot.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: vmlinux loading process
PostPosted: Wed Jan 25, 2017 3:06 am 
Offline

Joined: Wed Jan 25, 2017 2:32 am
Posts: 2
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.


Top
 Profile  
 
 Post subject: Re: vmlinux loading process
PostPosted: Wed Jan 25, 2017 3:46 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
The source code for GRUB is freely available for study.


Top
 Profile  
 
 Post subject: Re: vmlinux loading process
PostPosted: Thu Jan 26, 2017 6:16 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 86 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group