Study about Kernel bootup..
hi..
I want to know the complete boot process of linux kernel after the step of bringing the kernel image into the RAM. . . I mean, I have studied about first stage/middilestage and second stage boot loaders... but what happens inside the RAM with kernel image.. who starts the kernel?? I came to know that init/main.c is the source for it.. . . Can I get some links to study about it... ?? Thanks Maddy |
Google is your friend:
http://www.google.com/search?q=linux...ient=firefox-a short answer: kernel is loaded into RAM and de-compressed, then the boot loader transfers control to the kernel. The kernel then calls "init" |
Quote:
|
???
the kernel issues the "init" command, and the init program starts running. It uses /etc/inittab to set specific configurations. Or maybe I don't understand your question....... |
Quote:
my second stage boot loadar fetches the kernel and put it into RAM, Now very first task that happens is start_kernel(). That is available in kernel/init/main.c .... I want to understand the working of the start_kernel()... I think it will be clear to you now.. . |
OK---it seems that you are reading the source code. (You have more patience than I do....)
I will GUESS that the function "start_kernel()" will either call "init"--or it will call some other function which in turn calls init. Have you read any of the links that Google found? If the answer is not there, then your options include: ---read the source code ---buy a book on the kernel---eg this one: http://www.google.com/url?sa=t&rct=j...PTDaEA&cad=rja |
Quote:
you are right about involking init through start_kernel().. but starting init is the last step of start_kernel().. What happens before that..?? No one is helping me... . . Even books are not defining it. every place is providing the code of internal functions but not the theortical functionality of those functions. well, thanks again. |
If it's not in the books, then you may just have to hunker down and read the code. Without really knowing anything about the kernel, I'll guess that the early stages are all about detecting hardware, setting up drivers, and initializing data structures in RAM. I would be surprised if a good book on the kernel did not give some flow charts to show what is happening.
|
All times are GMT -5. The time now is 01:20 PM. |