<br>Hi All<br><br><div class="gmail_quote">On Thu, May 12, 2011 at 9:02 AM, Vikram Narayanan <span dir="ltr">&lt;<a href="mailto:vikram186@gmail.com">vikram186@gmail.com</a>&gt;</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">&lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt; wrote:<br>
</div><div class="im">&gt; On Thu, May 12, 2011 at 03:11, Vikram Narayanan &lt;<a href="mailto:vikram186@gmail.com">vikram186@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Yes. I agree. But how who converts the ELF binary to raw binary so<br>
&gt;&gt; that the processor understands. Or how is it actually done?<br>
&gt;<br>
&gt; OK I try my best to understand your question :)<br>
&gt;<br>
&gt; i think I got it...you probably guessed that vmlinux created first,<br>
&gt; then vmlinuz... AFAIK, it&#39;s the other way around...or more precisely,<br>
&gt; 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> .&#39;&#39;`. <br>: :Ⓐ :   # apt-get install hakuna-matata<br>`. `&#39;` <br>   `-   <br>