Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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... ??
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.......
My question is:
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..
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,
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.