Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pieter Smith <pieter@boesman.nl>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/4] Supporting a second Barebox build to build the MLO/SPL
Date: Mon, 26 Oct 2015 22:27:26 +0100	[thread overview]
Message-ID: <20151026212726.GA9761@smipidev> (raw)
In-Reply-To: <20151026045735.52c0f9e5@free-electrons.com>

Hi Thomas,

On Mon, Oct 26, 2015 at 04:57:35AM +0100, Thomas Petazzoni wrote:
> Dear Pieter Smith,
> 
> On Sun, 25 Oct 2015 20:33:52 +0100, Pieter Smith wrote:
> 
> > Pieter Smith (4):
> >   barebox: prepare for x-loader build
> >   barebox: adds option to build x-loader
> >   barebox: user selection of build output images
> >   beaglebone: adds barebox bootloader defconfig
> > 
> >  boot/barebox/Config.in                        | 92 +++++++++++++++++++++++++++
> >  boot/barebox/barebox-boot/barebox-boot.hash   |  1 +
> >  boot/barebox/barebox-boot/barebox-boot.mk     | 89 ++++++++++++++++++++++++++
> >  boot/barebox/barebox-xload/barebox-xload.hash |  1 +
> >  boot/barebox/barebox-xload/barebox-xload.mk   | 51 +++++++++++++++
> >  boot/barebox/barebox.mk                       | 60 +----------------
> >  configs/beaglebone_barebox_defconfig          | 38 +++++++++++
> 
> I believe "xload" is really a term tied to the OMAP platforms, but
> Barebox can have this dual configuration situation for other platforms
> as well (ex: Atmel). Some other platforms use the term "SPL".
> 
> Can we find some better name ?

Yes please, but selecting a use-case agnostic name might be tricky:

U-Boot uses SPL (Secondary Program Loader) to describe a "run from internal
SRAM" build as opposed to TPL (Tertiary Program Loader) for the normal "run
from external RAM" build. This terminology however is U-Boot specific.

From a pure barebox perspective, there is nothing distinctive about the second
build. It is just another defconfig, so there does not seem to be barebox
terminology to differentiate between these types of builds. (Barebox even
leaves the naming as a configuration option)

From an OMAP perspective, the second build is used to generate the X-loader
when booting from NAND or MLO when booting from MMC.

I would have loved to just stick with the boot stage naming, but the stage is
very much architecture dependent:
For BBB for example:
1. First-stage bootloader runs from internal hard-coded ROM
2. Second-stage bootloader runs from the internal SRAM (TI MLO) and is
   generated with a trimmed down configuration.
3. Third-stage bootloader runs from the external RAM and is generated with a
   full configuration.
But for the QCA4531 and family:
1. First-stage bootloader runs from external serial NOR flash and is generated
   with a full-blown configuration.

IMHO, let's just go with the suggested U-Boot naming (SPL) and if no barebox
developers complain, stick to that.

Agreed?

> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

  reply	other threads:[~2015-10-26 21:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-25 19:33 [Buildroot] [PATCH 0/4] Supporting a second Barebox build to build the MLO/SPL Pieter Smith
2015-10-25 19:33 ` [Buildroot] [PATCH 1/4] barebox: prepare for x-loader build Pieter Smith
2015-10-25 19:33 ` [Buildroot] [PATCH 2/4] barebox: adds option to build x-loader Pieter Smith
2015-10-25 19:33 ` [Buildroot] [PATCH 3/4] barebox: user selection of build output images Pieter Smith
2015-10-25 19:33 ` [Buildroot] [PATCH 4/4] beaglebone: adds barebox bootloader defconfig Pieter Smith
2015-10-26  3:57 ` [Buildroot] [PATCH 0/4] Supporting a second Barebox build to build the MLO/SPL Thomas Petazzoni
2015-10-26 21:27   ` Pieter Smith [this message]
2015-10-27 17:21     ` Pieter Smith
2015-10-27 20:18       ` Arnout Vandecappelle
2015-11-02 21:38         ` Pieter Smith

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=20151026212726.GA9761@smipidev \
    --to=pieter@boesman.nl \
    --cc=buildroot@busybox.net \
    /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