Skip to content

SPL: FIT: Bring the SPL_LOAD_FIT path in line with documentation

Alexandru Gagniuc u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v17 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Replace NULL with 0 in comment for spl_load_fit_image().
- Updated Kconfig description for SPL_LOAD_FIT (add "property" word)
- Remove middle printf in warn_deprecated()
- Add newline before return in spl_fit_upload_fpga()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7spl: fit: Don't overwrite previous loadable if "load" is missingcommon/spl/spl_fit.c+9 -21 reply
2/7doc: FIT image: Introduce "u-boot, fpga-legacy" propertydoc/uImage.FIT/source_file_format.txt+1 -01 reply
3/7spl: fit: Move FPGA loading code to separate functionscommon/spl/spl_fit.c+45 -251 reply
4/7spl: fit: Warn if FIT contains "fpga" property in config nodecommon/spl/spl_fit.c+8 -01 reply
5/7spl: fit: Support loading FPGA images from list of "loadables"common/spl/spl_fit.c+24 -01 reply
6/7Kconfig: Document the limitations of the simple SPL_LOAD_FIT pathcommon/Kconfig.boot+10 -01 reply
7/7doc: FIT image: Update FPGA example to make use of "loadables"doc/uImage.FIT/multi-with-fpga.its+2 -11 reply

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/7R-b
2/7
3/7R-b
4/7
5/7
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] SPL: FIT: Bring the SPL_LOAD_FIT path in line with documentation

When I wrote commit 4afc4f37c70e ("doc: FIT image: Clarify format and simplify syntax"), I did not expect it to go through without objection. I didn't also write the code to go along with it. This series fixes that by updating one of the three FIT code paths to be compliant.

There are three code paths that deal with loading a FIT:
* ( )'bootm' command
* (x) SPL_LOAD_FIT
* ( ) SPL_LOAD_FIT_FULL

This series deals with SPL_LOAD_FIT.

I chose not to fix every nook and cranny because nobody is using those corner cases -- as evidenced by the lack of support. Known limitations are documented and clearly visible in the Kconfig menu.

Changes since v1:
- Replace NULL with 0 in comment for spl_load_fit_image().
- Updated Kconfig description for SPL_LOAD_FIT (add "property" word)
- Remove middle printf in warn_deprecated()
- Add newline before return in spl_fit_upload_fpga()

Alexandru Gagniuc (7):
spl: fit: Don't overwrite previous loadable if "load" is missing
doc: FIT image: Introduce "u-boot,fpga-legacy" property
spl: fit: Move FPGA loading code to separate functions
spl: fit: Warn if FIT contains "fpga" property in config node
spl: fit: Support loading FPGA images from list of "loadables"
Kconfig: Document the limitations of the simple SPL_LOAD_FIT path
doc: FIT image: Update FPGA example to make use of "loadables"

 common/Kconfig.boot                   |  10 +++
 common/spl/spl_fit.c                  | 113 ++++++++++++++++++++------
 doc/uImage.FIT/multi-with-fpga.its    |   3 +-
 doc/uImage.FIT/source_file_format.txt |   1 +
 4 files changed, 99 insertions(+), 28 deletions(-)

--
2.26.3