public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/6] mvebu: allow selection of boot device
Date: Mon, 18 Jun 2018 21:56:21 +0300	[thread overview]
Message-ID: <cover.1529328522.git.baruch@tkos.co.il> (raw)

Currently the boot device that the generated .kwb image supports is
statically set in two places. The BOOT_FROM directive in the per board
kwbimage.cfg file, and the CONFIG_SPL_BOOT_DEVICE macro in the board
config header file.

The gdsys Controlcenter DC supports build time generation of the
kwbimage.cfg file which allows build time selection of the boot device.

This series extends the idea of kwbimage.cfg generation to all 32bit
mvebu SoCs. In addition, this series makes Clearfog use the kconfig
symbols alone for boot selection, so that no code modification is
needed.

The first three patches are cleanup patches that should not change
existing behavior.

The fourth patch extends the kwbimage.cfg build time generation support
to all mvebu platforms.

The fifth patch adds support for boot from UART.

The last patch removes the static CONFIG_SPL_BOOT_DEVICE definition for
Clearfog.

I tested this series on Clearfog Base, booting from SD card, SPI flash,
and UART. I ran a number of build tests for other platforms. I would
appreciate reports of run tests on affected platforms.

Baruch Siach (6):
  mvebu: turris_omnia: use u-boot-spl-dtb.bin
  mvebu: a38x: drop duplicate platform id symbols
  mvebu: consolidate SPL boot device config symbols
  mvebu: select boot device at SoC level
  mvebu: support UART boot image
  mvebu: clearfog: use kconfig symbols to select boot device

 arch/arm/Kconfig                              |  1 -
 .../a38x => arch/arm/mach-mvebu}/.gitignore   |  0
 arch/arm/mach-mvebu/Kconfig                   | 17 +++++----
 arch/arm/mach-mvebu/Makefile                  | 33 +++++++++++++++++
 arch/arm/mach-mvebu/include/mach/config.h     |  4 +--
 .../arm/mach-mvebu}/kwbimage.cfg.in           |  0
 board/CZ.NIC/turris_omnia/kwbimage.cfg        | 12 -------
 board/Marvell/db-88f6720/kwbimage.cfg         | 12 -------
 board/Marvell/db-88f6820-amc/kwbimage.cfg     | 12 -------
 board/Marvell/db-88f6820-gp/kwbimage.cfg      | 12 -------
 board/Marvell/db-mv784mp-gp/kwbimage.cfg      | 12 -------
 board/Synology/ds414/kwbimage.cfg             | 12 -------
 board/gdsys/a38x/Kconfig                      | 36 -------------------
 board/gdsys/a38x/Makefile                     | 31 ----------------
 board/kobol/helios4/kwbimage.cfg              | 13 -------
 board/maxbcm/kwbimage.cfg                     | 12 -------
 board/solidrun/clearfog/kwbimage.cfg          | 12 -------
 board/theadorable/kwbimage.cfg                | 12 -------
 configs/clearfog_defconfig                    |  2 +-
 configs/helios4_defconfig                     |  2 +-
 include/configs/clearfog.h                    | 16 ++-------
 include/configs/turris_omnia.h                |  4 +--
 22 files changed, 51 insertions(+), 216 deletions(-)
 rename {board/gdsys/a38x => arch/arm/mach-mvebu}/.gitignore (100%)
 rename {board/gdsys/a38x => arch/arm/mach-mvebu}/kwbimage.cfg.in (100%)
 delete mode 100644 board/CZ.NIC/turris_omnia/kwbimage.cfg
 delete mode 100644 board/Marvell/db-88f6720/kwbimage.cfg
 delete mode 100644 board/Marvell/db-88f6820-amc/kwbimage.cfg
 delete mode 100644 board/Marvell/db-88f6820-gp/kwbimage.cfg
 delete mode 100644 board/Marvell/db-mv784mp-gp/kwbimage.cfg
 delete mode 100644 board/Synology/ds414/kwbimage.cfg
 delete mode 100644 board/gdsys/a38x/Kconfig
 delete mode 100644 board/kobol/helios4/kwbimage.cfg
 delete mode 100644 board/maxbcm/kwbimage.cfg
 delete mode 100644 board/solidrun/clearfog/kwbimage.cfg
 delete mode 100644 board/theadorable/kwbimage.cfg

-- 
2.17.1

             reply	other threads:[~2018-06-18 18:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-18 18:56 Baruch Siach [this message]
2018-06-18 18:56 ` [U-Boot] [PATCH 1/6] mvebu: turris_omnia: use u-boot-spl-dtb.bin Baruch Siach
2018-06-18 18:56 ` [U-Boot] [PATCH 2/6] mvebu: a38x: drop duplicate platform id symbols Baruch Siach
2018-06-18 18:56 ` [U-Boot] [PATCH 3/6] mvebu: consolidate SPL boot device config symbols Baruch Siach
2018-06-18 18:56 ` [U-Boot] [PATCH 4/6] mvebu: select boot device at SoC level Baruch Siach
2018-07-31 17:27   ` Dennis Gilmore
2018-08-06 10:12     ` Baruch Siach
2018-08-06 12:13       ` Stefan Roese
2018-08-06 20:34         ` Dennis Gilmore
2018-06-18 18:56 ` [U-Boot] [PATCH 5/6] mvebu: support UART boot image Baruch Siach
2018-06-18 18:56 ` [U-Boot] [PATCH 6/6] mvebu: clearfog: use kconfig symbols to select boot device Baruch Siach

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=cover.1529328522.git.baruch@tkos.co.il \
    --to=baruch@tkos.co.il \
    --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