public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Need answers of basic questions regarding u-boot
Date: Sun, 07 Aug 2011 16:28:32 -0400	[thread overview]
Message-ID: <4E3EF570.4060209@gmail.com> (raw)
In-Reply-To: <CALrBqfb1kunoj8VBxcVMsXD8D6p4UONJrFxajUJppVRoNq_=Dw@mail.gmail.com>

On 08/07/2011 02:55 PM, Rakesh Modi wrote:
> Hi,
> I am new to linux and u-boot. Please answer my following questions.
> 1) what is u-boot? why it require?

It initializes and configures the hardware (processor, RAM, 
peripherals), it loads linux (or other OS) from storage (flash, hard 
drive, ethernet, other) into RAM and then passes control to linux.

While it isn't required, it is very convenient to have it.  The other 
features of u-boot are that u-boot can be used to load new linux images 
into your storage device.  The general principle is that u-boot is not 
often replaced on a board, but the linux image is updated and upgraded 
regularly.

> 2) why we can not load linux kernel directly without use of u-boot?

You can, but you need to do the hardware initialization and 
configuration in the linux start up code.  You will also have to create 
a method to and mechanism for linux to upgrade itself, preferably in a 
"failure resistant" way so that you don't "brick" your board 
inadvertently by having a failure when upgrading linux.

U-boot has solved these problems already for you.

> 3) How does any processor sequence starts when power is on?

That is described in the processor hardware reference manual.  It is 
different for each processor, but in general the processor starts 
fetching and executing code from a known location - sometimes from a 
fixed memory address, sometimes it fetches a pointer from a fixed memory 
address and starts executing from the address pointed to.

Best regards,
gvb

  reply	other threads:[~2011-08-07 20:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-07 18:55 [U-Boot] Need answers of basic questions regarding u-boot Rakesh Modi
2011-08-07 20:28 ` Jerry Van Baren [this message]
2011-08-08  5:54   ` Hebbar, Gururaja
2011-08-10 10:09     ` Detlev Zundel
2011-08-10 10:23       ` Hebbar, Gururaja
2011-08-10 12:19         ` Detlev Zundel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E3EF570.4060209@gmail.com \
    --to=gvb.uboot@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox