[U-Boot] [PATCH 0/6] mvebu: allow selection of boot device

Baruch Siach baruch at tkos.co.il
Mon Jun 18 18:56:21 UTC 2018


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



More information about the U-Boot mailing list