<br>Hi All<br><br><div class="gmail_quote">On Thu, May 12, 2011 at 9:02 AM, Vikram Narayanan <span dir="ltr"><<a href="mailto:vikram186@gmail.com">vikram186@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Thu, May 12, 2011 at 1:51 AM, Mulyadi Santosa<br>
<div class="im"><<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>> wrote:<br>
</div><div class="im">> On Thu, May 12, 2011 at 03:11, Vikram Narayanan <<a href="mailto:vikram186@gmail.com">vikram186@gmail.com</a>> wrote:<br>
>> Yes. I agree. But how who converts the ELF binary to raw binary so<br>
>> that the processor understands. Or how is it actually done?<br>
><br>
> OK I try my best to understand your question :)<br>
><br>
> i think I got it...you probably guessed that vmlinux created first,<br>
> then vmlinuz... AFAIK, it's the other way around...or more precisely,<br>
> not both.<br>
<br>
</div>I think you got it wrong. I will try to put my question more elaborately.<br>
1) The system is on and BIOS code runs. It gives the control to the<br>
boot loader, say GRUB.<br>
2) Grub picks up the kernel from the specific partition. (i.e a<br>
vmlinuz image), which denotes that it is compressed.<br>
3) There are uncompression routines in the kernel itself, If I am not<br>
wrong. So the kernel uncompresses itself.<br>
4) Now the uncompressed thing is the vmlinux image, right?<br>
5) The vmlinux is in ELF format. Correct?<br></blockquote><div> </div><div>I Guess Yes. <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
6) If the OS boots and if u try to run an ELF file, the loader knows<br>
how to load that in the RAM. (I mean it knows how to interpret the ELF<br>
format)<br></blockquote><div> </div><div>See the multi-boot specification. GRUB is a multi-boot compliant boot loader<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
7) Coming back to the vmlinux image, Who takes care of the loading activity.?<br></blockquote><div> </div><div>GRUB <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
8) Who recognizes that the image is ELF format and do the necessary<br>
things accordingly.?<br></blockquote><div> </div><div>GRUB <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hope I have my question clear now.<br>
<br>
-<br>
Thanks,<br>
<font color="#888888">Vikram<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anuj Aggarwal <br><br> .''`. <br>: :Ⓐ : # apt-get install hakuna-matata<br>`. `'` <br> `- <br>