U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/20] binman: Enhance FIT support for firmware
@ 2024-07-20 10:49 Simon Glass
  2024-07-20 10:49 ` [PATCH 01/20] fixdep: Support VPL Simon Glass
                   ` (19 more replies)
  0 siblings, 20 replies; 47+ messages in thread
From: Simon Glass @ 2024-07-20 10:49 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Simon Glass, Alper Nebi Yasak, Andrew Davis, Bin Meng,
	Brandon Maier, Bryan Brattlof, Christian Taedcke, Dario Binacchi,
	Devarsh Thakkar, Heinrich Schuchardt, Jesse Taube, Jonas Karlman,
	Leon M. Busch-George, Lukas Funke, Marek Vasut, Masahiro Yamada,
	Massimo Pegorer, Neha Malcom Francis, Peng Fan, Philippe Reynes,
	Rasmus Villemoes, Stefan Herbrechtsmeier, Sughosh Ganu,
	Sumit Garg, Tim Harvey, Tom Rini

So far Binman's FIT support is designed for booting the OS. But FIT is
also used to hold firmware images.

One missing feature is the ability to produce the smaller FDTs used by
SPL builds.

This series adds this, running fdtgrep on each devicetree to create the
correct one for each model, for a particular boot phase. This allows,
for example, a particular SPL image + devicetree combination to be
selected during boot.


Simon Glass (20):
  fixdep: Support VPL
  binman: Correct an error in the FIT-template example
  binman: Tidy up bintool docs
  binman: Tidy up comment for Bintoolfdt_add_pubkey.run()
  binman: Move problem-checking code into a function
  binman: elf: Add more debugging to LookupAndWriteSymbols()
  binman: Write the compressed output to a file
  binman: Correct comment in blob_dtb GetFdtEtype()
  binman: Mention expanded entries in u-boot-vpl
  binman: Fix a comment typo in _DoReadFileDtb()
  binman: Correct indentation in testSplPubkeyDtb
  binman: Add a bintool for fdtgrep
  binman: Remove dependency on pylibfdt for entry-docs
  binman: Allow entry types to override FDT contents
  binman: Add support for alternative FDTs
  binman: fit: Allow providing FDT filenames in a directory
  binman: fit: Write the compatible string to configuration
  binman: fit: Allow running fdtgrep on devicetree blobs
  Makefile: Provide VPL devicetree and padding to binman
  Makefile: Pass OF_SPL_REMOVE_PROPS to binman

 Makefile                                     |   3 +
 doc/develop/spl.rst                          |   2 +
 scripts/basic/fixdep.c                       |   2 +
 tools/binman/binman.rst                      |   4 +-
 tools/binman/bintools.rst                    |  69 +++--
 tools/binman/btool/fdt_add_pubkey.py         |   4 +
 tools/binman/btool/fdtgrep.py                | 137 ++++++++++
 tools/binman/control.py                      |  77 +++---
 tools/binman/elf.py                          |   2 +-
 tools/binman/entries.rst                     |  94 ++++++-
 tools/binman/entry.py                        |  17 ++
 tools/binman/etype/alternates_fdt.py         | 132 ++++++++++
 tools/binman/etype/blob_dtb.py               |   8 +-
 tools/binman/etype/fit.py                    |  93 ++++++-
 tools/binman/etype/u_boot_spl_nodtb.py       |   2 -
 tools/binman/etype/u_boot_tpl_nodtb.py       |   2 -
 tools/binman/etype/u_boot_vpl.py             |   3 +
 tools/binman/etype/u_boot_vpl_nodtb.py       |   4 +-
 tools/binman/ftest.py                        | 255 +++++++++++++++++--
 tools/binman/image.py                        |  24 ++
 tools/binman/main.py                         |   2 +
 tools/binman/test/328_alternates_fdt.dts     |  28 ++
 tools/binman/test/329_alternates_fdtgrep.dts |  29 +++
 tools/binman/test/330_alternates_vpl.dts     |  29 +++
 tools/binman/test/331_alternates_spl.dts     |  29 +++
 tools/binman/test/332_alternates_inval.dts   |  29 +++
 tools/binman/test/333_fit_fdt_dir.dts        |  58 +++++
 tools/binman/test/334_fit_fdt_compat.dts     |  60 +++++
 tools/binman/test/335_fit_fdt_phase.dts      |  61 +++++
 tools/binman/test/alt_dts/model1.dts         |  24 ++
 tools/binman/test/alt_dts/model2.dts         |  24 ++
 31 files changed, 1208 insertions(+), 99 deletions(-)
 create mode 100644 tools/binman/btool/fdtgrep.py
 create mode 100644 tools/binman/etype/alternates_fdt.py
 create mode 100644 tools/binman/test/328_alternates_fdt.dts
 create mode 100644 tools/binman/test/329_alternates_fdtgrep.dts
 create mode 100644 tools/binman/test/330_alternates_vpl.dts
 create mode 100644 tools/binman/test/331_alternates_spl.dts
 create mode 100644 tools/binman/test/332_alternates_inval.dts
 create mode 100644 tools/binman/test/333_fit_fdt_dir.dts
 create mode 100644 tools/binman/test/334_fit_fdt_compat.dts
 create mode 100644 tools/binman/test/335_fit_fdt_phase.dts
 create mode 100644 tools/binman/test/alt_dts/model1.dts
 create mode 100644 tools/binman/test/alt_dts/model2.dts

-- 
2.34.1


^ permalink raw reply	[flat|nested] 47+ messages in thread

end of thread, other threads:[~2024-07-30 14:38 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-20 10:49 [PATCH 00/20] binman: Enhance FIT support for firmware Simon Glass
2024-07-20 10:49 ` [PATCH 01/20] fixdep: Support VPL Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 02/20] binman: Correct an error in the FIT-template example Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-30  4:26   ` Neha Malcom Francis
2024-07-20 10:49 ` [PATCH 03/20] binman: Tidy up bintool docs Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-30  4:27   ` Neha Malcom Francis
2024-07-20 10:49 ` [PATCH 04/20] binman: Tidy up comment for Bintoolfdt_add_pubkey.run() Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 05/20] binman: Move problem-checking code into a function Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 06/20] binman: elf: Add more debugging to LookupAndWriteSymbols() Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-30  4:31   ` Neha Malcom Francis
2024-07-20 10:49 ` [PATCH 07/20] binman: Write the compressed output to a file Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-30  4:32   ` Neha Malcom Francis
2024-07-20 10:49 ` [PATCH 08/20] binman: Correct comment in blob_dtb GetFdtEtype() Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 09/20] binman: Mention expanded entries in u-boot-vpl Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 10/20] binman: Fix a comment typo in _DoReadFileDtb() Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 11/20] binman: Correct indentation in testSplPubkeyDtb Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 12/20] binman: Add a bintool for fdtgrep Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 13/20] binman: Remove dependency on pylibfdt for entry-docs Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 14/20] binman: Allow entry types to override FDT contents Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 15/20] binman: Add support for alternative FDTs Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-30  4:44   ` Neha Malcom Francis
2024-07-30 14:38     ` Simon Glass
2024-07-20 10:49 ` [PATCH 16/20] binman: fit: Allow providing FDT filenames in a directory Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 17/20] binman: fit: Write the compatible string to configuration Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 18/20] binman: fit: Allow running fdtgrep on devicetree blobs Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 19/20] Makefile: Provide VPL devicetree and padding to binman Simon Glass
2024-07-29 16:19   ` Simon Glass
2024-07-20 10:49 ` [PATCH 20/20] Makefile: Pass OF_SPL_REMOVE_PROPS " Simon Glass
2024-07-29 16:19   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox