RFC Add support for applications of overlays in SPL
Get series with b4
b4 am 20190328074523.170bf983@jawaVersions newest first
- v1 RFC Latest0 of 9 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 9 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [RFC PATCH v1 0/9] Add support for applications of overlays in SPL
Quoted 58 lines · On Wed, 27 Mar 2019 18:41:08 +0100 Jean-Jacques Hiblot <[email protected]> wrote:
Quoted 57 lines · Lukasz Majewski
Hi Jean-Jacques,
Quoted 55 lines
The purpose of this series is to provide the SPL with ability to apply overlays for u-boot. this is only a RFC so far, to get a feedback on the approach.
Our use-case is the support of the daughter boards of the AM65x EVM. In Linux, each board is supported by a unique overlay. The presence of the boards is detected at runtime, and some useful features (like USB) are implemented on those daughter boards. Instead of providing multiple dtbs and fall in a combinatorial pit, we propose to use DT overlays.
The first 4 patches are small fixes/improvement related to the build. Patch #5 may be a bit controversial. It basically replaces u-boot.img with a symlink to u-boot.itb in case we use a "complex" FIT (ie: if
SPL_FIT_SOURCEorSPL_FIT_GENERATORare set)Patch #6 and #7 are the core support for DTB application in the SPL. Based on a patch posted by Michal Simek a few weeks ago. The list of overlays is read from the "fdt" of the configuration chosen in the ITB (same property as for the DTB):
configurations { default = "conf-1"; conf-1 { description = "dra76-evm"; firmware = "firmware-1"; fdt = "fdt-1", "overlay-1"; }; }Patch #8 adds a way to dynamically select the DT overlays. That is were we would use HW detection to select the required overlays. In that case, the board-level code tells what overlay it needs (it gives the name of the node).
Patch #9 is not required, but demonstrates on a DRA76-evm how this series can be used.
Jean-Jacques Hiblot (8):
dtbo: also generate dtbo from dtso
Makefile.lib: include /__symbols__ in dtb ifOF_LIBFDT_OVERLAY
is enabled
Makefile: Fix u-boot.itb generation when building outside the
source tree
Makefile: Pass the board name to the FIT generator scripts
Makefile: use custom ITS to build u-boot.img ifSPL_FIT_SOURCE
orSPL_FIT_GENERATORare set
spl: fit: Allow callingspl_load_fit_image()to only get the
image size
sp: fit: Allow the board to dynamically select the DTB overlays
it needs.
!!! TEMP !!! For demonstration only !!! DRA76: Usage of
overlays in SPL
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Michal Simek (1):
spl: fit: Add support for applying DT overlayJust out of curiosity - what is the difference in SPL footprint when with and without this feature?
For the dra76-evm, the diff in SPL size is 3.3kB
And the increase in percentage? (What is the dra76-evm size?)
Quoted 37 lines
JJ
Quoted 33 lines
Quoted 16 lines
Makefile | 20 ++- arch/arm/dts/Makefile | 2 +- arch/arm/dts/dra76-evm-dummy.dtso | 14 +++ arch/arm/dts/dra76-evm-dummy2.dtso | 15 +++ arch/arm/mach-imx/mkimage_fit_atf.sh | 3 +- arch/arm/mach-rockchip/make_fit_atf.py | 5 +- .../lion_rk3368/fit_spl_atf.its | 6 +- .../puma_rk3399/fit_spl_atf.its | 8 +- board/ti/dra7xx/evm.c | 30 +++++ board/ti/dra7xx/evm.its | 48 ++++++++ common/spl/spl_fit.c | 114 +++++++++++++++++- configs/dra7xx_evm_defconfig | 2 + include/spl.h | 20 +++ scripts/Makefile.lib | 7 ++ 14 files changed, 273 insertions(+), 21 deletions(-)Quoted 4 lines
create mode 100644
arch/arm/dts/dra76-evm-dummy.dtsocreate mode 100644arch/arm/dts/dra76-evm-dummy2.dtsocreate mode 100644 board/ti/dra7xx/evm.itsBest regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang
Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
lukma at denx.de
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190328/85ba6fcc/attachment.sig>