<br><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 6, 2016, 8:10 PM Er Krishna <<a href="mailto:erkrishna@gmail.com">erkrishna@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="gmail_msg">Hi all</p>
<p dir="ltr" class="gmail_msg">I have a basic question for understanding :</p>
<p dir="ltr" class="gmail_msg">If we want to boot the Linux kernel without bootloader what needs to be done?</p>
<p dir="ltr" class="gmail_msg">In other words what all the core subsystem like memory and all<br class="gmail_msg">
needs initialisation by bootloader and if bootloader is not there then how to do it ?</p></blockquote></div>I'm also a newbie but whatever I know I tell you.<br>When you start/reset your board, there are some code in the ROM, which looks for your <div>code at a particular address in an internal RAM. The size of this RAM is limited, so this </div><div>code should initialize the regular RAM then load rest of your code and initialize other parts</div><div>of the board. I've read that previously kernel used to include a bootloader but I think after </div><div>availability of more general bootloaders, it has been removed.</div><div><br></div><div>On which board do you want to test this? You may read docs and read bootloaders code to</div><div>learn where ROM looks for your code and how to initialize RAM and load your code.</div><div><br></div><div>Last but not least you need arm-none-eabi compiler and some linker scripts to place you code </div><div>at a particular address.</div><div><br><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="gmail_msg">Thanks<br class="gmail_msg">
Krishna</p>
_______________________________________________<br class="gmail_msg">
Kernelnewbies mailing list<br class="gmail_msg">
<a href="mailto:Kernelnewbies@kernelnewbies.org" class="gmail_msg" target="_blank">Kernelnewbies@kernelnewbies.org</a><br class="gmail_msg">
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br class="gmail_msg">
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><p dir="ltr">Regards,<br>
Amit Kumar<br>
Twitter: @freeark1<br>
Only Numbers Can Command.</p>
</div>