From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] how to program a bootloader
Date: Fri, 15 Oct 2004 20:55:18 +0200 [thread overview]
Message-ID: <871xfzyfop.fsf@deepthought.outer.space.org> (raw)
In-Reply-To: <e7b30b240410140034788a83ea@mail.gmail.com> (Mildred Frisco's message of "Thu, 14 Oct 2004 15:34:59 +0800")
Hi Mildred,
> This might not be the exact list for this but hope some here would be
> able to help me. Is there a step-by-step guide on how to program a
> bootloader? The u-boot bootloader (or other linux bootloader) is a
> very big program to study. I would like to know how to program the
> basics and concepts.
> Thanks.
Well look at it this way - what does a bootloader do?
- Initialize the hardware
- Setup everything so the booted program finds what it needs
- What abilities are needed to do this in a comfortable way?
Well there's your requirements ;) Now find the relevant hardware and
software documentation to write a program doing just that.
The complexity of U-Boot is due to supporting many different
platforms. Try studing the code relevant for _one single_ board and
you have an excellent object to study.
For a somewhat more detailed specification read the docs about the
available U-Boot commands in the DULG documentation. Most commands
are there because they serve a purpose necessary for a comfortable
working of a bootloader. Read the README in the toplevel directory to
read more about the "invisible parts" of U-Boot.
But remember that studying a working fully fledged boot loader can be
somewhat irritating if you just want to see clearly the basic
concepts. On the other hand there is _nothing better_ to study than
such a Free Software project that has features needed and added by a
community much larger than most closed software development teams.
Cheers
Detlev
--
"It's amazing I won. I was running against peace, prosperity, and
incumbency."
-- George H.W. Bush, 06/14/2001, talking to Swedish prime
minister Goran Perrson, unaware that a live tv camera was still on
prev parent reply other threads:[~2004-10-15 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 7:34 [U-Boot-Users] how to program a bootloader Mildred Frisco
2004-10-14 7:53 ` Shakthi Kannan
2004-10-15 18:55 ` Detlev Zundel [this message]
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=871xfzyfop.fsf@deepthought.outer.space.org \
--to=dzu@denx.de \
--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