From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Separately compile Master boot loader
Date: Tue, 9 Jul 2013 14:01:12 +0200 [thread overview]
Message-ID: <20130709140112.6a15c636@lilith> (raw)
In-Reply-To: <CAONsvZWjHg2_GZbYWkA0FRHzCWq1-ES5PSq8s841vY3=qnn8ww@mail.gmail.com>
Hi Rajdeep,
On Tue, 9 Jul 2013 16:12:14 +0530, Rajdeep Vaghasia
<rajdeep.vaghasia@gmail.com> wrote:
> Hi
> I am working on one board with an arm11 based cpu, NOR flash and DDR2 SDRAM.
> When I compile u-boot source code, I get u-boot.bin image generated.
> This image has primary(second stage) and secondary(third stage) bootloader
> combined.
>
> I have following queries:
> 1) The question that still eats me everyday is, How can I compile
> primary(Master) boot loader and secondary boot loader separately?
> 2) I want to Flash only initial 4kb of code (Master boot loader or second
> stage). The remaining code I want to keep at another partition in the
> Flash. How can I achieve this?
> 3) Is there any separate code available for Master boot loader, which
> copies the third stage bootloader to SDRAM and then transfers control to
> that third stage boot loader(u-boot)?
>
> I am unable to find a way to do this.
>
> Can anyone help me please?
Since you do not indicate exactly which target you're building, I'll
assume it is one with SPL (what you describe as master or second stage,
with third stage being u-boot itself).
I don't know of a way to build SPL alone.
As for building separate U-Boot and SPL, you'll find them in ELF format
in file ./u-boot and ./spl/u-boot-spl. You can then use
$(CROSS_COMPILE)objcopy to convert from ELF to .bin.
Note that your target may need a specific format different from the
pure binary that objcopy can produce.
Can you tell us more about your target?
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-07-09 12:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 10:42 [U-Boot] Separately compile Master boot loader Rajdeep Vaghasia
2013-07-09 12:01 ` Albert ARIBAUD [this message]
2013-07-10 9:34 ` Rajdeep Vaghasia
2013-07-10 12:23 ` Albert ARIBAUD
2013-07-11 5:27 ` Rajdeep Vaghasia
2013-07-11 8:35 ` Albert ARIBAUD
2013-07-11 9:11 ` [U-Boot] [RFC] Multiple binaries per U-Boot target (was: Separately compile Master boot loader) Albert ARIBAUD
2013-07-19 15:27 ` [U-Boot] [RFC] Multiple binaries per U-Boot target Sascha Silbe
2013-07-19 16:53 ` Simon Glass
2013-07-19 18:12 ` Albert ARIBAUD
2013-07-19 18:14 ` Simon Glass
2013-07-19 19:27 ` Wolfgang Denk
2013-07-19 21:09 ` Albert ARIBAUD
2013-07-19 22:32 ` Wolfgang Denk
2013-07-20 7:15 ` Albert ARIBAUD
2013-07-19 19:26 ` Wolfgang Denk
2013-07-11 10:08 ` [U-Boot] Separately compile Master boot loader Wolfgang Denk
2013-07-11 10:25 ` Albert ARIBAUD
2013-07-11 9:58 ` Wolfgang Denk
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=20130709140112.6a15c636@lilith \
--to=albert.u.boot@aribaud.net \
--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